div#fancy_overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 30;
}

div#fancy_loading {
	position: absolute;
	height: 40px;
	width: 40px;
	cursor: pointer;
	display: none;
	overflow: hidden;
	background: transparent;
	z-index: 100;
}

div#fancy_loading div {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 480px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_progress.png) no-repeat;
}

div#fancy_outer {
	position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
    padding: 20px 20px 40px 20px;
    margin: 0;
    background: transparent;
    display: none;
}

div#fancy_inner {
	position: relative;
	width:100%;
	height:100%;
	background: #FFF;
}

div#fancy_content {
	margin: 0;
	z-index: 100;
	position: absolute;
}

div#fancy_div {
	background: #000;
	color: #FFF;
	height: 100%;
	width: 100%;
	z-index: 100;
}

img#fancy_img {
	position: absolute;
	top: 0;
	left: 0;
	border:0; 
	padding: 0; 
	margin: 0;
	z-index: 100;
	width: 100%;
	height: 100%;
}

div#fancy_close {
	position: absolute;
	top: -12px;
	right: -15px;
	height: 30px;
	width: 30px;
	background: url(/s/img/wp-content/plugins/fancy-box/fancy_closebox.png) top left no-repeat;
	cursor: pointer;
	z-index: 181;
	display: none;
}

#fancy_frame {
	position: relative;
	width: 100%;
	height: 100%;
	display: none;
}

#fancy_ajax {
	width: 100%;
	height: 100%;
	overflow: auto;
}

a#fancy_left, a#fancy_right {
	position: absolute; 
	bottom: 0px; 
	height: 100%; 
	width: 35%; 
	cursor: pointer;
	z-index: 111; 
	display: none;
	background-image: url(data:image/gif;base64,AAAA);
	outline: none;
	overflow: hidden;
}

a#fancy_left {
	left: 0px; 
}

a#fancy_right {
	right: 0px; 
}

span.fancy_ico {
	position: absolute; 
	top: 50%;
	margin-top: -15px;
	width: 30px;
	height: 30px;
	z-index: 112; 
	cursor: pointer;
	display: block;
}

span#fancy_left_ico {
	left: -9999px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_left.png) no-repeat;
}

span#fancy_right_ico {
	right: -9999px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_right.png) no-repeat;
}

a#fancy_left:hover, a#fancy_right:hover {
	visibility: visible;
	background-color: transparent;
}

a#fancy_left:hover span {
	left: 20px; 
}

a#fancy_right:hover span {
	right: 20px; 
}

#fancy_bigIframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
}

div#fancy_bg {
	position: absolute;
	top: 0; left: 0;
	width: 100%;
	height: 100%;
	z-index: 70;
	border: 0;
	padding: 0;
	margin: 0;
}
	
div.fancy_bg {
	position: absolute;
	display: block;
	z-index: 70;
	border: 0;
	padding: 0;
	margin: 0;
}

div#fancy_bg_n {
	top: -20px;
	left: 0;
	width: 100%;
	height: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_n.png) repeat-x;
}

div#fancy_bg_ne {
	top: -20px;
	right: -20px;
	width: 20px;
	height: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_ne.png) no-repeat;
}

div#fancy_bg_e {
	right: -20px;
	height: 100%;
	width: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_e.png) repeat-y;
}

div#fancy_bg_se {
	bottom: -20px;
	right: -20px;
	width: 20px;
	height: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_se.png) no-repeat;
}

div#fancy_bg_s {
	bottom: -20px;
	left: 0;
	width: 100%;
	height: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_s.png) repeat-x;
}

div#fancy_bg_sw {
	bottom: -20px;
	left: -20px;
	width: 20px;
	height: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_sw.png) no-repeat;
}

div#fancy_bg_w {
	left: -20px;
	height: 100%;
	width: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_w.png) repeat-y;
}

div#fancy_bg_nw {
	top: -20px;
	left: -20px;
	width: 20px;
	height: 20px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_shadow_nw.png) no-repeat;
}

div#fancy_title {
	position: absolute;
	z-index: 100;
	display: none;
}

div#fancy_title div {
	color: #FFF;
	font: bold 12px Arial;
	padding-bottom: 3px;
	white-space: nowrap;
}

div#fancy_title table {
	margin: 0 auto;
}

div#fancy_title table td {
	padding: 0;
	vertical-align: middle;
}

td#fancy_title_left {
	height: 32px;
	width: 15px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_title_left.png) repeat-x;
}

td#fancy_title_main {
	height: 32px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_title_main.png) repeat-x;
}

td#fancy_title_right {
	height: 32px;
	width: 15px;
	background: transparent url(/s/img/wp-content/plugins/fancy-box/fancy_title_right.png) repeat-x;
}/*
Theme Name: Virus Proch Catalog
Theme URI: https://virus-proch.ru
Author: Custom for virus-proch.ru
Author URI: https://virus-proch.ru
Description: Редакционный каталог вирусных заболеваний. Дизайн в стиле научного справочника: тёмный header, тёплая бумага, терракотовые акценты, моноширинные коды, анимированная «пластина» морфологии. Полностью адаптивный.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: virus-proch
Tags: blog, medical, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ink: #131829;
  --ink-soft: #252c42;
  --paper: #E9E8DF;
  --paper-card: #F5F4EC;
  --text: #1B2029;
  --text-soft: #5B5F6B;
  --brick: #AD3A2C;
  --sage: #4F6E5C;
  --amber: #B9832F;
  --line: #C9C6B6;
  --line-dark: #3A4258;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce){*, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--ink);
  color: #EDEBE0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #F4F2E8;
}

.logo-sub {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8990A8;
}

.primary-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 13.5px;
  color: #C7CAD8;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: #F4F2E8;
  border-color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #454C68;
  color: #EDEBE0;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: #EDEBE0;
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 14ch;
  color: #F6F4EA;
}

.hero h1 em {
  font-style: italic;
  color: var(--brick);
  background: linear-gradient(180deg, transparent 62%, rgba(173, 58, 44, 0.28) 62%);
}

.hero-lead {
  margin-top: 22px;
  font-size: 16.5px;
  color: #B6BACB;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 2px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--brick);
  color: #F6F4EA;
}

.btn-primary:hover {
  background: #c44634;
  transform: translateY(-1px);
  color: #F6F4EA;
}

.btn-ghost {
  border: 1px solid #454C68;
  color: #D6D9E4;
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* Plate (animated SVG) */
.plate {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-left: auto;
}

.plate-frame {
  position: absolute;
  inset: 0;
  border: 1px solid #3A4258;
  border-radius: 2px;
  pointer-events: none;
}

.plate-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  color: #7E85A0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid #333a54;
  padding-top: 10px;
}

.plate svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plate-path {
  stroke: #8FA3D6;
  stroke-width: 1.1;
  fill: none;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s ease forwards 0.3s;
}

.plate-path.b {
  stroke: var(--amber);
  animation-delay: 0.6s;
}

.plate-path.c {
  stroke: var(--brick);
  animation-delay: 0.9s;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.plate-dot {
  fill: #EDEBE0;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 2.2s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ============================================================
   TICKER STRIP
   ============================================================ */
.strip {
  background: var(--sage);
  color: #F1F2EA;
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid #3d5748;
  border-bottom: 1px solid #3d5748;
}

.strip-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.strip-track span { opacity: 0.85; }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head .kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--ink);
}

.section-head p {
  color: var(--text-soft);
  font-size: 14.5px;
  max-width: 38ch;
}

/* ============================================================
   CATALOG
   ============================================================ */
.catalog {
  padding: 80px 0 40px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 26px 22px 22px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
  display: block;
}

.cat-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.cat-code {
  font-size: 10.5px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: block;
}

.cat-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--brick);
}

.cat-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.cat-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

.cat-arrow {
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: 14px;
  color: var(--line);
  transition: transform .2s ease, color .2s ease;
}

.cat-card:hover .cat-arrow {
  transform: translate(3px, -3px);
  color: var(--brick);
}

/* ============================================================
   INDEX / POSTS GRID
   ============================================================ */
.index-section {
  padding: 60px 0 90px;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 20px;
}

.index-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s ease forwards;
}

.index-card:nth-child(1) { animation-delay: 0.05s; }
.index-card:nth-child(2) { animation-delay: 0.12s; }
.index-card:nth-child(3) { animation-delay: 0.19s; }
.index-card:nth-child(4) { animation-delay: 0.26s; }
.index-card:nth-child(5) { animation-delay: 0.33s; }
.index-card:nth-child(6) { animation-delay: 0.40s; }
.index-card:nth-child(7) { animation-delay: 0.47s; }
.index-card:nth-child(8) { animation-delay: 0.54s; }
.index-card:nth-child(9) { animation-delay: 0.61s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.index-media {
  aspect-ratio: 16 / 10;
  background: #DEDCCF;
  position: relative;
  overflow: hidden;
  border-bottom: 1px dashed var(--line);
}

.index-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.02);
  transition: filter 0.3s ease;
}

.index-card:hover .index-media img {
  filter: grayscale(0%) contrast(1.05);
}

.index-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #EDEBE0;
  padding: 5px 9px;
  z-index: 1;
}

.index-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.index-code {
  font-size: 10.5px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
}

.index-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.3;
}

.index-body h3 a {
  transition: color 0.15s ease;
}

.index-body h3 a:hover {
  color: var(--brick);
}

.index-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #9EA3B8;
  padding: 56px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #2B3350;
}

.footer-grid h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7290;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.footer-grid a {
  font-size: 13.5px;
  color: #C7CAD8;
}

.footer-grid a:hover {
  color: var(--amber);
}

.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  color: #F4F2E8;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  max-width: 32ch;
  color: #8990A8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 11.5px;
  flex-wrap: wrap;
  gap: 12px;
}

.disclaimer {
  font-size: 10.5px;
  color: #6B7290;
  max-width: 60ch;
}

/* ============================================================
   SINGLE / ARCHIVE / DOSSIER
   ============================================================ */
.content-area {
  padding-bottom: 80px;
}

.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--ink);
}

/* Archive header + description */
.archive-header {
  padding: 56px 0 40px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.archive-header .kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.archive-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0;
}

.archive-description {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
}

.archive-description p {
  margin-bottom: 0.9em;
}

.archive-description p:last-child {
  margin-bottom: 0;
}

.archive-empty {
  color: var(--text-soft);
  padding: 40px 0 80px;
}

/* Load more */
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 14px;
  margin-top: 64px;
  padding: 8px 0 32px;
  clear: both;
  text-align: center;
}

.btn-load-more {
  font-size: 13.5px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: #F6F4EA;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
  min-width: 200px;
  margin: 0 auto;
}

.btn-load-more:hover:not(:disabled) {
  background: var(--brick);
  border-color: var(--brick);
  transform: translateY(-1px);
}

.btn-load-more:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-load-more[hidden] {
  display: none;
}

.load-more-status {
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  min-height: 1.2em;
}

.index-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #DEDCCF;
}

/* --- Single post (картотечный вид) --- */
.dossier {
  padding-top: 40px;
}

.dossier-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  transition: color .15s ease;
}

.dossier-back:hover {
  color: var(--brick);
}

.dossier-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 18px;
}

.dossier-stamp .stamp-code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: #EDEBE0;
  padding: 6px 12px;
}

.dossier-stamp .stamp-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.dossier-stamp .stamp-cat {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--line);
  padding: 5px 10px;
  background: var(--paper-card);
}

.dossier-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 28ch;
  margin-bottom: 20px;
}

.dossier-lead {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 58ch;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Article + right sidebar */
.dossier-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
  max-width: 100%;
  margin: 0;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  max-width: 720px;
}

.dossier-side {
  position: sticky;
  top: 88px;
}

.dossier-side-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 20px 18px;
  margin-bottom: 28px;
}

.dossier-side-card:last-child {
  margin-bottom: 0;
}

.dossier-side-card h4 {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.dossier-side-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
  font-size: 13px;
}

.dossier-side-row:last-child {
  margin-bottom: 0;
}

.dossier-side-row .label {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-family: 'IBM Plex Mono', monospace;
}

.dossier-side-row .value {
  color: var(--ink);
}

.dossier-side-row a {
  color: var(--brick);
}

.dossier-side-row a:hover {
  text-decoration: underline;
}

.dossier-side-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dossier-side-related li a {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  transition: color .15s ease;
}

.dossier-side-related li a:hover {
  color: var(--brick);
}

.dossier-side-related .rel-meta {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--text-soft);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px){.dossier-body {
    grid-template-columns: 1fr;
  }
  .dossier-side {
    position: static;
    order: -1;
  }
  .dossier-side-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px 20px;
  }
  .dossier-side-card h4 {
    grid-column: 1 / -1;
  }
  .dossier-side-related-wrap {
    display: none; /* on mobile related block below is enough */
  }}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 1.85em 0 0.6em;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 600;
}

.entry-content h2 { font-size: 1.4em; }
.entry-content h3 { font-size: 1.22em; }
.entry-content h4 { font-size: 1.08em; }

.entry-content p {
  margin-bottom: 1.35em;
}

.entry-content a {
  color: var(--brick);
  border-bottom: 1px solid rgba(173, 58, 44, 0.35);
  transition: border-color .15s ease;
}

.entry-content a:hover {
  border-bottom-color: var(--brick);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border: 1px solid var(--line);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.entry-content th {
  background: var(--paper-card);
  font-weight: 600;
}

.entry-content pre,
.entry-content code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9em;
}

.entry-content pre {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 16px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25em 1.3em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content blockquote {
  border-left: 3px solid var(--brick);
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  color: var(--text-soft);
  font-style: italic;
}

.entry-content figure {
  margin: 1.8em 0;
}

.entry-content figcaption {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
}

/* Related catalog cards */
.dossier-related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.dossier-related .section-head {
  margin-bottom: 28px;
}

.dossier-nav {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dossier-nav a {
  display: block;
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 18px 20px;
  transition: border-color .2s ease, transform .2s ease;
}

.dossier-nav a:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.dossier-nav .nav-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-family: 'IBM Plex Mono', monospace;
}

.dossier-nav .nav-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.dossier-nav .nav-next {
  text-align: right;
}

@media (max-width: 560px){.dossier-nav {
    grid-template-columns: 1fr;
  }
  .dossier-nav .nav-next {
    text-align: left;
  }}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px){.primary-nav { display: none; }
  .nav-toggle { display: block; }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 20px 32px 28px;
    border-bottom: 1px solid var(--line-dark);
    gap: 16px;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .plate { max-width: 280px; margin: 32px auto 0; }

  .catalog-grid,
  .index-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }}

@media (max-width: 560px){.wrap { padding: 0 20px; }

  .catalog-grid,
  .index-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero { padding: 48px 0 64px; }
  .catalog { padding: 56px 0 24px; }
  .index-section { padding: 40px 0 64px; }}html.slb_overlay object,html.slb_overlay embed,html.slb_overlay iframe{visibility:hidden}html.slb_overlay #slb_viewer_wrap object,html.slb_overlay #slb_viewer_wrap embed,html.slb_overlay #slb_viewer_wrap iframe{visibility:visible}.pseudo-clearfy-link { color: #008acf; cursor: pointer;}.pseudo-clearfy-link:hover { text-decoration: none;}