/* Libron Web Font Declarations */
@font-face {
  font-family: 'Libron';
  src: url('/assets/fonts/Libron-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libron';
  src: url('/assets/fonts/Libron-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Libron';
  src: url('/assets/fonts/Libron-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libron';
  src: url('/assets/fonts/Libron-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

input, textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* --- THE CORNER SQUIRCLE SITE LOGO NAVIGATION --- */
#nav-toggle-btn,
#nav-toggle-btn.nav-squircle-btn {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 99990;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 22px; /* Super rounded circle-like squircle */
  background: rgba(18, 15, 12, 0.88);
  border: 1.5px solid rgba(184, 159, 128, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

#nav-toggle-btn:hover,
#nav-toggle-btn.nav-squircle-btn:hover {
  border-color: #c9b097;
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 176, 151, 0.35), 0 4px 15px rgba(0, 0, 0, 0.6);
}

#nav-toggle-btn:active,
#nav-toggle-btn.nav-squircle-btn:active {
  transform: scale(0.95);
}

/* Intro loading state - hides navigation trigger until intro sequence completes */
body.has-intro-loader #nav-toggle-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.65) translateY(-6px) !important;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

body.has-intro-loader.intro-completed #nav-toggle-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: scale(1) translateY(0) !important;
  visibility: visible;
}

/* When drawer is open, smoothly hide the floating squircle button completely */
#nav-toggle-btn.open,
#nav-toggle-btn.nav-squircle-btn.open,
body.modal-open #nav-toggle-btn,
html.modal-open #nav-toggle-btn {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) rotate(-10deg) !important;
  visibility: hidden;
}

.squircle-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.3s ease;
}

#nav-toggle-btn:hover .squircle-logo-img {
  transform: scale(1.08);
}

.squircle-glyph-fallback {
  font-size: 20px;
  color: #c9b097;
  font-family: serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-favicon-glyph {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.15);
  vertical-align: middle;
  transition: opacity 0.25s ease;
  display: inline-block;
  opacity: 0.6;
}

.nav-favicon-glyph:hover {
  opacity: 1;
}

#drawer-site-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.1);
  border: 1.5px solid rgba(139, 115, 85, 0.5);
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  background: #0c0a08;
}

/* Navigation Overlay Drawer */
#nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 8, 7, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden !important;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s;
}

#nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  width: 100%;
  max-width: 340px;
  height: 100%;
  height: var(--dynamic-drawer-height, 100dvh);
  max-height: var(--dynamic-drawer-height, 100dvh);
  box-sizing: border-box;
  background: linear-gradient(180deg, #fdfbf7 0%, #f6f0e2 100%);
  color: #2b1f16;
  padding: clamp(8px, 1.4vh, 14px) clamp(10px, 1.8vw, 16px) max(6px, env(safe-area-inset-bottom, 6px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -20px 0 55px rgba(0, 0, 0, 0.75);
  border-left: 1px solid rgba(139, 115, 85, 0.35);
  transform: translateX(100%);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.68s ease;
  overflow: hidden !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.nav-drawer::-webkit-scrollbar,
.nav-links::-webkit-scrollbar,
#nav-overlay::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Theme Awareness for Navigation Drawer */
[data-theme="paper"] .nav-drawer,
body.theme-paper .nav-drawer {
  background: linear-gradient(180deg, #fdfbf7 0%, #f6f0e2 100%);
  color: #2b1f16;
  border-left: 1px solid rgba(139, 115, 85, 0.35);
}

[data-theme="dark"] .nav-drawer,
body.theme-dark .nav-drawer {
  background-color: rgba(18, 15, 12, 0.98);
  background-image: radial-gradient(circle at 10% 10%, rgba(184, 159, 128, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 90% 90%, rgba(158, 55, 42, 0.06) 0%, transparent 60%);
  color: #eae4d9;
  border-left-color: rgba(184, 159, 128, 0.25);
}

[data-theme="light"] .nav-drawer,
body.theme-light .nav-drawer {
  background-color: #ffffff;
  color: #1e293b;
  border-left-color: rgba(203, 213, 225, 0.8);
}

#nav-overlay.open .nav-drawer {
  transform: translateX(0);
}

/* Header Section */
.nav-drawer-header {
  border-bottom: 1px dashed rgba(139, 115, 85, 0.4);
  padding-bottom: clamp(4px, 0.8vh, 8px);
  margin-bottom: clamp(4px, 0.8vh, 8px);
  flex-shrink: 0;
}

[data-theme="dark"] .nav-drawer-header,
body.theme-dark .nav-drawer-header {
  border-bottom-color: rgba(184, 159, 128, 0.25);
}

[data-theme="light"] .nav-drawer-header,
body.theme-light .nav-drawer-header {
  border-bottom-color: rgba(203, 213, 225, 0.8);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #c9b097;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  background: #080706;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.header-titles h2 {
  margin: 0;
  font-family: 'Cinzel Decorative', 'Libron', Georgia, serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 1.2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8a2a1e;
}

[data-theme="dark"] .header-titles h2,
body.theme-dark .header-titles h2 {
  color: #e6c8a0;
}

[data-theme="light"] .header-titles h2,
body.theme-light .header-titles h2 {
  color: #991b1b;
}

.drawer-header-subtitle {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5c4a3d;
  font-weight: 600;
  margin-top: 1px;
}

[data-theme="dark"] .drawer-header-subtitle,
body.theme-dark .drawer-header-subtitle {
  color: #b8a898;
}

[data-theme="light"] .drawer-header-subtitle,
body.theme-light .drawer-header-subtitle {
  color: #64748b;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.drawer-close-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
  transform: rotate(90deg);
}

[data-theme="dark"] .drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Drawer Account Card */
.drawer-account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(184, 159, 128, 0.08);
  border: 1px solid rgba(184, 159, 128, 0.25);
  border-radius: 8px;
  margin-bottom: clamp(4px, 0.8vh, 8px);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="paper"] .drawer-account-card,
body.theme-paper .drawer-account-card {
  background: rgba(139, 115, 85, 0.08);
  border-color: rgba(139, 115, 85, 0.3);
}

[data-theme="light"] .drawer-account-card,
body.theme-light .drawer-account-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.drawer-account-card:hover {
  background: rgba(201, 176, 151, 0.16);
  border-color: #c9b097;
  transform: translateY(-1px);
}

[data-theme="paper"] .drawer-account-card:hover,
body.theme-paper .drawer-account-card:hover {
  background: rgba(139, 115, 85, 0.15);
  border-color: #9e372a;
}

[data-theme="light"] .drawer-account-card:hover,
body.theme-light .drawer-account-card:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.drawer-account-avatar {
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 176, 151, 0.15);
  border: 1px solid #c9b097;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-account-info {
  flex: 1;
  min-width: 0;
}

.drawer-account-name {
  font-family: 'Libron', Georgia, serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #8a2a1e;
  text-transform: none !important;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .drawer-account-name,
body.theme-dark .drawer-account-name {
  color: #e6c8a0;
}

[data-theme="light"] .drawer-account-name,
body.theme-light .drawer-account-name {
  color: #991b1b;
}

.drawer-account-sub {
  font-size: 10.5px;
  color: #5c4a3d;
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .drawer-account-sub,
body.theme-dark .drawer-account-sub {
  color: #b8a898;
}

[data-theme="light"] .drawer-account-sub,
body.theme-light .drawer-account-sub {
  color: #475569;
}

.drawer-account-card.logged-in {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.drawer-account-card.logged-in .drawer-account-name {
  color: #059669;
}

[data-theme="dark"] .drawer-account-card.logged-in .drawer-account-name {
  color: #10b981;
}

/* Links Section */
.nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--dynamic-nav-gap, clamp(2px, 0.8vh, 6px));
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-evenly;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden !important;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#nav-overlay .nav-links a.nav-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  padding: var(--dynamic-nav-pad-y, clamp(3px, 0.7vh, 6px)) 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #2b1f16;
  font-size: var(--dynamic-nav-font-size, 14.5px);
  font-family: 'Libron', serif;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  opacity: 0;
  transform: translateX(18px);
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] #nav-overlay .nav-links a.nav-item,
body.theme-dark #nav-overlay .nav-links a.nav-item {
  color: #eae4d9;
  font-weight: 500;
}

[data-theme="light"] #nav-overlay .nav-links a.nav-item,
body.theme-light #nav-overlay .nav-links a.nav-item {
  color: #1e293b;
  font-weight: 600;
}

#nav-overlay.open .nav-links a.nav-item {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition-delay: calc(var(--i, 1) * 45ms + 100ms);
}

#nav-overlay .nav-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  font-size: 18px !important;
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0 !important;
}

#nav-overlay .nav-label {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-weight: inherit;
  color: inherit;
  transition: transform 0.25s ease;
}

#nav-overlay .nav-links a.nav-item:hover {
  background: rgba(158, 55, 42, 0.08);
  transform: translateX(4px);
  color: #8a2a1e;
}

[data-theme="dark"] #nav-overlay .nav-links a.nav-item:hover,
body.theme-dark #nav-overlay .nav-links a.nav-item:hover {
  background: rgba(201, 176, 151, 0.1);
  color: #ffffff;
}

[data-theme="light"] #nav-overlay .nav-links a.nav-item:hover,
body.theme-light #nav-overlay .nav-links a.nav-item:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

#nav-overlay .nav-links a.nav-item.active {
  background: rgba(158, 55, 42, 0.12);
  color: #8a2a1e;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #8a2a1e;
}

[data-theme="dark"] #nav-overlay .nav-links a.nav-item.active,
body.theme-dark #nav-overlay .nav-links a.nav-item.active {
  background: rgba(201, 176, 151, 0.15);
  color: #f5eedf;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #c9b097, 0 0 20px rgba(201, 176, 151, 0.1);
}

[data-theme="light"] #nav-overlay .nav-links a.nav-item.active,
body.theme-light #nav-overlay .nav-links a.nav-item.active {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #dc2626;
}

#nav-overlay .nav-links a.nav-item:hover .nav-icon,
#nav-overlay .nav-links a.nav-item.active .nav-icon {
  transform: scale(1.15);
}

/* Footer Section */
.nav-drawer-footer {
  margin-top: auto;
  padding-top: clamp(6px, 1.2vh, 10px);
  padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
  border-top: 1px dashed rgba(139, 115, 85, 0.35);
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vh, 8px);
  flex-shrink: 0;
}

[data-theme="dark"] .nav-drawer-footer,
body.theme-dark .nav-drawer-footer {
  border-top-color: rgba(184, 159, 128, 0.2);
}

[data-theme="light"] .nav-drawer-footer,
body.theme-light .nav-drawer-footer {
  border-top-color: rgba(203, 213, 225, 0.8);
}

.theme-switch-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.08);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(139, 115, 85, 0.25);
}

[data-theme="dark"] .theme-switch-group,
body.theme-dark .theme-switch-group {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(184, 159, 128, 0.2);
}

[data-theme="light"] .theme-switch-group,
body.theme-light .theme-switch-group {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.theme-btn {
  background: transparent;
  border: none;
  color: #5c4a3d;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.85;
  font-weight: 600;
  font-family: inherit;
}

[data-theme="dark"] .theme-btn,
body.theme-dark .theme-btn {
  color: #b8a898;
}

[data-theme="light"] .theme-btn,
body.theme-light .theme-btn {
  color: #475569;
}

.theme-btn:hover {
  opacity: 1;
}

.theme-btn.active {
  background: #c9b097;
  color: #100e0b;
  opacity: 1;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

[data-theme="paper"] .theme-btn.active,
body.theme-paper .theme-btn.active {
  background: #8a2a1e;
  color: #ffffff;
}

[data-theme="light"] .theme-btn.active,
body.theme-light .theme-btn.active {
  background: #1e293b;
  color: #ffffff;
}

.footer-glyph-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sanskrit-mantra {
  font-family: 'Tiro Bangla', 'Libron', serif;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  color: #5c4a3d;
  opacity: 0.85;
}

[data-theme="dark"] .sanskrit-mantra,
body.theme-dark .sanskrit-mantra {
  color: #c9b097;
  opacity: 0.85;
}

[data-theme="light"] .sanskrit-mantra,
body.theme-light .sanskrit-mantra {
  color: #475569;
  opacity: 0.85;
}

.footer-copy {
  font-size: 10.5px;
  color: #5c4a3d;
  opacity: 0.8;
}

[data-theme="dark"] .footer-copy,
body.theme-dark .footer-copy {
  color: #a89887;
  opacity: 0.8;
}

[data-theme="light"] .footer-copy,
body.theme-light .footer-copy {
  color: #64748b;
  opacity: 0.8;
}

.secret-trigger {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.35;
  transition: all 0.2s ease;
}

.secret-trigger:hover {
  opacity: 0.9;
  color: #c9b097;
  transform: scale(1.2);
}

/* Mobile & Landscape Ergonomics */
@media (max-width: 600px) {
  #nav-toggle-btn,
  #nav-toggle-btn.nav-squircle-btn {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 19px;
    padding: 0;
  }
  #nav-toggle-btn.nav-squircle-btn .squircle-logo-img {
    border-radius: 17px;
  }
  .nav-drawer {
    max-width: 84%;
    width: 290px;
    padding: clamp(10px, 1.8vh, 16px) clamp(12px, 2.5vw, 18px) max(6px, env(safe-area-inset-bottom, 6px));
  }
  .nav-drawer-header {
    margin-bottom: 6px;
    padding-bottom: 6px;
    flex-shrink: 0;
  }
  .nav-links {
    gap: var(--dynamic-nav-gap, clamp(2px, 1vh, 6px));
    justify-content: flex-start;
    margin: 2px 0;
  }
  .nav-links a.nav-item {
    font-size: var(--dynamic-nav-font-size, 14.5px);
    padding: var(--dynamic-nav-pad-y, clamp(4px, 1vh, 7px)) 8px;
    gap: 10px;
  }
  .nav-icon {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }
  .header-titles h2 {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .drawer-logo {
    width: 32px;
    height: 32px;
  }
  .nav-drawer-footer {
    margin-top: auto;
    padding-top: 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
    gap: 5px;
    flex-shrink: 0;
  }
}

/* Landscape orientation optimization */
@media (max-height: 540px) {
  .nav-drawer {
    padding: 16px 20px 14px;
    max-width: 360px;
  }
  .nav-drawer-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .drawer-logo {
    width: 32px;
    height: 32px;
  }
  .header-titles h2 {
    font-size: 16px;
  }
  .nav-links {
    gap: 6px;
  }
  .nav-links a.nav-item {
    font-size: 15px;
    padding: 6px 10px;
  }
  .nav-icon {
    width: 22px;
    height: 22px;
  }
  .nav-drawer-footer {
    margin-top: 12px;
    padding-top: 10px;
    gap: 8px;
  }
  .theme-btn {
    padding: 3px 8px;
    font-size: 11px;
  }
}

/* =========================================================
   LITERARY FORMATTING & HIGHLIGHTS
   ========================================================= */
.literary-line-wrap {
  text-align: center;
  margin: 32px 0;
  clear: both;
}
.literary-line {
  border: none;
  border-top: 1px solid rgba(139, 115, 85, 0.45);
  width: 45%;
  max-width: 260px;
  margin: 0 auto;
  display: block;
}
mark, .styled-highlight {
  background-color: #fae8c8;
  color: inherit;
  padding: 2px 4px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
[data-theme="dark"] mark, [data-theme="dark"] .styled-highlight {
  background-color: rgba(212, 196, 168, 0.25);
  color: inherit;
}

/* Headings & Typographic Hierarchy */
h1, .tag-h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; margin: 24px 0 12px; line-height: 1.3; color: inherit; }
h2, .tag-h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 20px 0 10px; line-height: 1.35; color: inherit; }
h3, .tag-h3 { font-size: clamp(17px, 2.2vw, 21px); font-weight: 600; margin: 16px 0 8px; line-height: 1.4; color: inherit; }
h4, .tag-h4 { font-size: clamp(15px, 1.8vw, 18px); font-weight: 600; font-style: italic; margin: 14px 0 6px; line-height: 1.45; color: inherit; }
blockquote { 
  border-left: 2.5px solid rgba(139, 115, 85, 0.5); 
  padding: 2px 0 2px 16px; 
  margin: 14px 0 14px 16px; 
  font-style: italic; 
  opacity: 0.95; 
}

blockquote > :first-child,
.tag-bar > :first-child,
.tag-dot > :first-child,
.tag-hl > :first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

blockquote > :last-child,
.tag-bar > :last-child,
.tag-dot > :last-child,
.tag-hl > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

blockquote p,
.tag-bar p,
.tag-dot p {
  margin-top: 3px;
  margin-bottom: 3px;
}

.tag-hl { background: rgba(201,176,151,0.2); border-left: 3px solid #b89f80; padding: 6px 14px; margin: 12px 0; border-radius: 0 4px 4px 0; }
.tag-in { padding-left: 26px; }
.tag-ce { text-align: center; }
.tag-bar { border-left: 2.5px solid currentColor; padding: 2px 0 2px 14px; margin: 12px 0 12px 14px; }
.tag-dot { border-left: 2px dotted currentColor; padding: 2px 0 2px 14px; margin: 12px 0 12px 14px; }
.tag-ast { text-align: center; letter-spacing: 6px; margin: 16px 0; opacity: 0.6; }
.tag-hr { border-bottom: 1px solid currentColor; opacity: 0.3; margin: 18px 0; }
