/*
Theme Name: Zaaer
Theme URI: https://zaaer.ir
Author: ستاد زیارت
Description: قالب اختصاصی، سبک و راست‌به‌چپ ستاد زیارت وزارت علوم، تحقیقات و فناوری. بدون صفحه‌ساز و بدون وابستگی به افزونه‌های تجاری.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: zaaer
License: GPL-2.0-or-later
*/

/* ---------- font ---------- */
@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/Vazirmatn-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- tokens ---------- */
:root {
	--zr-teal: #0f6b6b;
	--zr-teal-2: #15827f;
	--zr-deep: #0a4a4d;
	--zr-ink: #0b2e31;
	--zr-gold: #b98d2f;
	--zr-gold-2: #e3c377;
	--zr-ivory: #faf7f0;
	--zr-ivory-2: #f2ecdf;
	--zr-paper: #ffffff;
	--zr-line: #e5ddca;
	--zr-text: #1c2a2b;
	--zr-muted: #5a6a69;
	--zr-radius: 14px;
	--zr-radius-sm: 9px;
	--zr-shadow: 0 1px 2px rgba(11, 46, 49, .05), 0 8px 24px rgba(11, 46, 49, .07);
	--zr-shadow-lg: 0 2px 4px rgba(11, 46, 49, .06), 0 18px 44px rgba(11, 46, 49, .14);
	--zr-wrap: 1180px;
	/* eight-pointed star lattice */
	--zr-girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1.2'%3E%3Cpath d='M48 12l10.5 25.500L84 48 58.500 58.500 48 84 37.500 58.500 12 48l25.500-10.500z'/%3E%3Cpath d='M22.500 22.500h51v51h-51z'/%3E%3Cpath d='M0 0l22.500 22.500M96 0L73.500 22.500M0 96l22.500-22.500M96 96L73.500 73.500'/%3E%3C/g%3E%3C/svg%3E");
	--zr-girih-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230f6b6b' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M48 12l10.500 25.500L84 48 58.500 58.500 48 84 37.500 58.500 12 48l25.500-10.500z'/%3E%3Cpath d='M22.500 22.500h51v51h-51z'/%3E%3Cpath d='M0 0l22.500 22.500M96 0L73.500 22.500M0 96l22.500-22.500M96 96L73.500 73.500'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
	font-size: 16.5px;
	line-height: 1.95;
	color: var(--zr-text);
	background: var(--zr-ivory);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; border: 0; }
svg { flex-shrink: 0; }
a { color: var(--zr-teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--zr-gold); }
h1, h2, h3, h4 { color: var(--zr-ink); line-height: 1.6; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.2rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.03rem; }
p { margin: 0 0 1.15em; }
:focus-visible { outline: 3px solid var(--zr-gold-2); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.zr-skip:focus {
	clip: auto; clip-path: none; height: auto; width: auto; position: fixed; inset-block-start: 10px; inset-inline-start: 10px;
	z-index: 1000; background: var(--zr-ink); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.zr-wrap { width: 100%; max-width: var(--zr-wrap); margin-inline: auto; padding-inline: 22px; }
.zr-narrow { max-width: 880px; }
.zr-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- top bar ---------- */
.zr-topbar { background: var(--zr-ink); color: rgba(255, 255, 255, .78); font-size: .8rem; }
.zr-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.zr-topbar b { color: var(--zr-gold-2); font-weight: 600; }
.zr-topbar__dhikr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- header ---------- */
.zr-header {
	position: sticky; inset-block-start: 0; z-index: 60;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: saturate(1.4) blur(10px);
	border-block-end: 1px solid var(--zr-line);
}
.zr-header__in { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.zr-brand { display: flex; align-items: center; gap: 12px; color: var(--zr-ink); flex-shrink: 0; }
.zr-brand:hover { color: var(--zr-ink); }
.zr-brand__t { display: flex; flex-direction: column; line-height: 1.4; }
.zr-brand__name { font-weight: 900; font-size: 1.28rem; letter-spacing: -.2px; }
.zr-brand__sub { font-size: .74rem; color: var(--zr-muted); font-weight: 500; }
.zr-brand--light, .zr-brand--light:hover { color: #fff; }
.zr-brand--light .zr-brand__sub { color: rgba(255, 255, 255, .66); }
.zr-nav { margin-inline-start: auto; }
.zr-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.zr-nav li { position: relative; }
.zr-nav a {
	display: block; padding: 9px 13px; border-radius: 9px; color: var(--zr-ink);
	font-weight: 600; font-size: .94rem; white-space: nowrap;
}
.zr-nav a:hover, .zr-nav .current-menu-item > a, .zr-nav .current-menu-parent > a, .zr-nav .current-page-ancestor > a, .zr-nav .current_page_parent > a {
	background: var(--zr-ivory-2); color: var(--zr-teal);
}
.zr-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px; vertical-align: 3px;
	border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.zr-nav .sub-menu {
	display: none; position: absolute; inset-block-start: 100%; inset-inline-start: 0; min-width: 215px;
	background: #fff; border: 1px solid var(--zr-line); border-radius: 12px; box-shadow: var(--zr-shadow-lg);
	padding: 8px; flex-direction: column; align-items: stretch; gap: 0;
}
.zr-nav li:hover > .sub-menu, .zr-nav li:focus-within > .sub-menu { display: flex; }
.zr-iconbtn {
	border: 1px solid var(--zr-line); background: #fff; width: 42px; height: 42px; border-radius: 11px;
	display: grid; place-items: center; cursor: pointer; color: var(--zr-ink); flex-shrink: 0;
}
.zr-iconbtn:hover { border-color: var(--zr-teal); color: var(--zr-teal); }
.zr-burger { display: none; }
.zr-searchbar { display: none; border-block-start: 1px solid var(--zr-line); background: #fff; padding-block: 14px; }
.zr-searchbar.is-open { display: block; }

/* ---------- buttons / forms ---------- */
.zr-search { display: flex; gap: 8px; }
.zr-search input[type="search"], .zr-form input[type="text"], .zr-form input[type="email"], .zr-form input[type="tel"], .zr-form select, .zr-form textarea {
	flex: 1; min-width: 0; width: 100%; font: inherit; padding: 11px 16px; border: 1.5px solid var(--zr-line);
	border-radius: 11px; background: #fff; color: var(--zr-text);
}
.zr-search input[type="search"]:focus, .zr-form input:focus, .zr-form select:focus, .zr-form textarea:focus {
	border-color: var(--zr-teal); outline: none; box-shadow: 0 0 0 4px rgba(15, 107, 107, .14);
}
.zr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700;
	padding: 11px 24px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
	background: var(--zr-teal); color: #fff; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.zr-btn:hover { background: var(--zr-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 107, 107, .26); }
.zr-btn--gold { background: var(--zr-gold-2); color: var(--zr-ink); }
.zr-btn--gold:hover { background: #efd596; color: var(--zr-ink); box-shadow: 0 8px 22px rgba(227, 195, 119, .3); }
.zr-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.zr-btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.zr-btn--line { background: #fff; border-color: var(--zr-line); color: var(--zr-ink); }
.zr-btn--line:hover { background: var(--zr-ivory-2); color: var(--zr-teal); box-shadow: none; }

/* ---------- hero ---------- */
.zr-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(900px 480px at 8% -10%, rgba(227, 195, 119, .22), transparent 62%),
		radial-gradient(900px 520px at 100% 110%, rgba(21, 130, 127, .75), transparent 62%),
		linear-gradient(135deg, #072f32 0%, var(--zr-deep) 48%, #0d5b5c 100%);
}
.zr-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--zr-girih); background-size: 96px 96px; }
.zr-hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding-block: clamp(46px, 6.500vw, 86px); }
.zr-hero__kicker {
	display: inline-flex; align-items: center; gap: 8px; padding: 5px 15px; border-radius: 99px; font-size: .86rem; font-weight: 600;
	background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: var(--zr-gold-2); margin-block-end: 16px;
}
.zr-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.3rem + 4vw, 4rem); font-weight: 900; line-height: 1.3; margin-block-end: 14px; letter-spacing: -.5px; }
.zr-hero__lead { font-size: 1.1rem; color: rgba(255, 255, 255, .84); max-width: 56ch; margin-block-end: 28px; }
.zr-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.zr-hero__art { position: relative; height: 400px; justify-self: center; width: min(100%, 380px); }
.zr-arch { position: absolute; overflow: hidden; border-radius: 999px 999px 16px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); background: var(--zr-ink); }
.zr-arch::after { content: ""; position: absolute; inset: 7px; border: 1.5px solid rgba(227, 195, 119, .75); border-radius: inherit; pointer-events: none; }
.zr-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zr-arch--lg { inset-block-start: 0; inset-inline-end: 0; width: 270px; height: 380px; }
.zr-arch--sm { inset-block-end: 0; inset-inline-start: 0; width: 170px; height: 225px; border: 5px solid var(--zr-deep); }
.zr-arch--sm::after { inset: 5px; }

/* ---------- sections ---------- */
.zr-section { padding-block: clamp(40px, 5.500vw, 68px); }
.zr-section--tint { background: var(--zr-ivory-2) var(--zr-girih-ink); background-size: 96px 96px; }
.zr-section--ink { background: var(--zr-ink) var(--zr-girih); background-size: 96px 96px; color: rgba(255, 255, 255, .82); }
.zr-section--ink h2 { color: #fff; }
.zr-section--ink .zr-sechead p { color: rgba(255, 255, 255, .66); }
.zr-section--ink .zr-link { color: var(--zr-gold-2); }
.zr-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-block-end: 26px; }
.zr-sechead h2 { margin: 0; position: relative; padding-inline-start: 18px; }
.zr-sechead h2::before {
	content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .62em; width: 9px; height: 9px;
	background: var(--zr-gold-2); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(227, 195, 119, .25);
}
.zr-sechead p { margin: 2px 0 0; color: var(--zr-muted); font-size: .93rem; }
.zr-link { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.zr-link::after { content: " ←"; }

/* destinations */
.zr-dest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zr-dest__i {
	display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 20px;
	background: var(--zr-paper); border: 1px solid var(--zr-line); border-radius: var(--zr-radius); color: var(--zr-text);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.zr-dest__i:hover { transform: translateY(-3px); box-shadow: var(--zr-shadow-lg); border-color: var(--zr-gold-2); color: var(--zr-text); }
.zr-dest__ico {
	grid-row: span 2; width: 58px; height: 58px; display: grid; place-items: center; color: var(--zr-teal);
	background: var(--zr-ivory-2); border-radius: 999px 999px 12px 12px;
}
.zr-dest__i:hover .zr-dest__ico { background: var(--zr-teal); color: #fff; }
.zr-dest__t { font-weight: 800; font-size: 1.1rem; color: var(--zr-ink); }
.zr-dest__d { font-size: .86rem; color: var(--zr-muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zr-dest--page { margin-block-start: 8px; }

/* news rows */
.zr-newsgrid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.zr-rows { display: grid; gap: 14px; }
.zr-row {
	display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px;
	background: var(--zr-paper); border: 1px solid var(--zr-line); border-radius: var(--zr-radius);
	transition: box-shadow .18s ease, border-color .18s ease;
}
.zr-row:hover { box-shadow: var(--zr-shadow); border-color: #d9cfb6; }
.zr-row__media { display: block; aspect-ratio: 3 / 2; border-radius: var(--zr-radius-sm); overflow: hidden; background: var(--zr-ivory-2); }
.zr-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zr-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--zr-ivory-2) var(--zr-girih-ink); background-size: 48px 48px; }
.zr-ph svg { opacity: .55; }
.zr-row__t { font-size: 1.06rem; margin: 2px 0 4px; font-weight: 800; line-height: 1.75; }
.zr-row__t a, .zr-card__t a { color: var(--zr-ink); }
.zr-row__t a:hover, .zr-card__t a:hover { color: var(--zr-teal); }
.zr-row__ex { margin: 0; color: var(--zr-muted); font-size: .9rem; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; color: var(--zr-muted); }
.zr-badge {
	display: inline-block; padding: 1px 11px; border-radius: 99px; font-size: .76rem; font-weight: 700; line-height: 1.9;
	background: rgba(15, 107, 107, .09); color: var(--zr-teal);
}
.zr-badge:hover { background: var(--zr-teal); color: #fff; }
.zr-badge--line { background: transparent; border: 1px solid var(--zr-line); color: var(--zr-muted); font-weight: 600; }

/* side panel */
.zr-panel { background: var(--zr-paper); border: 1px solid var(--zr-line); border-radius: var(--zr-radius); padding: 22px; border-block-start: 4px solid var(--zr-teal); }
.zr-panel h2 { font-size: 1.12rem; margin-block-end: 10px; }
.zr-list { list-style: none; margin: 0 0 14px; padding: 0; }
.zr-list li { padding-block: 11px; border-block-end: 1px dashed var(--zr-line); }
.zr-list li:last-child { border: 0; }
.zr-list a { display: block; color: var(--zr-ink); font-weight: 600; font-size: .93rem; line-height: 1.8; }
.zr-list a:hover { color: var(--zr-teal); }
.zr-list time { font-size: .76rem; color: var(--zr-muted); }

/* text cards */
.zr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.zr-card {
	position: relative; display: flex; flex-direction: column; padding: 22px; background: var(--zr-paper);
	border: 1px solid var(--zr-line); border-radius: var(--zr-radius); transition: transform .18s ease, box-shadow .18s ease;
}
.zr-card:hover { transform: translateY(-3px); box-shadow: var(--zr-shadow-lg); }
.zr-card__t { font-size: 1.05rem; margin: 6px 0 6px; line-height: 1.75; }
.zr-card__t a::after { content: ""; position: absolute; inset: 0; }
.zr-card__ex { color: var(--zr-muted); font-size: .89rem; line-height: 1.9; margin: 0 0 12px; flex: 1; }
.zr-more { font-size: .86rem; font-weight: 700; }
.zr-more::after { content: " ←"; }

/* book shelf */
.zr-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px 18px; }
.zr-books li { margin: 0; }
.zr-books a { display: flex; flex-direction: column; gap: 10px; color: var(--zr-ink); font-weight: 700; font-size: .9rem; line-height: 1.7; text-align: center; }
.zr-books img {
	width: 100%; aspect-ratio: 13 / 24; object-fit: cover; border-radius: 6px; display: block;
	box-shadow: 0 2px 4px rgba(11, 46, 49, .12), 0 12px 26px rgba(11, 46, 49, .16); transition: transform .18s ease;
}
.entry-content .zr-books a { text-decoration: none; }
.zr-books a:hover img { transform: translateY(-4px) rotate(-1deg); }
.zr-books small { display: block; font-weight: 500; color: var(--zr-muted); font-size: .76rem; }
.zr-shelf { overflow-x: auto; padding-block: 6px 16px; scrollbar-width: thin; }
.zr-shelf .zr-books { grid-template-columns: repeat(10, minmax(128px, 1fr)); }

/* gallery strip + galleries */
.zr-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.zr-strip a, .gallery-item a { display: block; border-radius: var(--zr-radius-sm); overflow: hidden; }
.zr-strip img, .gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .3s ease; }
.zr-strip a:hover img, .gallery-item a:hover img { transform: scale(1.06); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-block: 1.2em 2em; }
.gallery-item { margin: 0; }
.gallery br { display: none; }

/* call to action */
.zr-cta-sec { padding-block-start: 0; }
.zr-section--ink + .zr-cta-sec { padding-block-start: clamp(40px, 5.500vw, 68px); }
.zr-cta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.zr-cta__i {
	display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--zr-radius); color: var(--zr-muted);
	background: var(--zr-paper); border: 1px solid var(--zr-line); font-size: .88rem; line-height: 1.85;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.zr-cta__i:hover { border-color: var(--zr-teal); box-shadow: var(--zr-shadow); color: var(--zr-muted); }
.zr-cta__i svg { color: var(--zr-gold); margin-block-start: 4px; }
.zr-cta__i b { display: block; color: var(--zr-ink); font-size: 1.02rem; font-weight: 800; }

/* ---------- page head ---------- */
.zr-pagehead {
	position: relative; color: #fff; padding-block: clamp(30px, 4.500vw, 52px);
	background: linear-gradient(135deg, #072f32 0%, var(--zr-deep) 55%, #0d5b5c 100%);
}
.zr-pagehead::before { content: ""; position: absolute; inset: 0; background-image: var(--zr-girih); background-size: 96px 96px; }
.zr-pagehead > * { position: relative; }
.zr-pagehead h1 { color: #fff; margin: 6px 0 4px; }
.zr-pagehead h1 small { font-size: .55em; font-weight: 500; opacity: .75; }
.zr-pagehead p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 70ch; }
.zr-pagehead .zr-meta { color: rgba(255, 255, 255, .78); margin-block-start: 8px; }
.zr-pagehead .zr-badge { background: rgba(255, 255, 255, .13); color: var(--zr-gold-2); }
.zr-pagehead .zr-badge:hover { background: var(--zr-gold-2); color: var(--zr-ink); }
.zr-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255, 255, 255, .66); }
.zr-crumbs a { color: rgba(255, 255, 255, .85); }
.zr-crumbs a:hover { color: var(--zr-gold-2); }
.zr-crumbs span:last-child { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.zr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.zr-tabs a { padding: 6px 18px; border-radius: 99px; border: 1.5px solid var(--zr-line); background: #fff; color: var(--zr-ink); font-weight: 700; font-size: .9rem; }
.zr-tabs a:hover { border-color: var(--zr-teal); color: var(--zr-teal); }
.zr-tabs a.is-on { background: var(--zr-teal); border-color: var(--zr-teal); color: #fff; }

/* ---------- article ---------- */
.zr-article { background: var(--zr-paper); border: 1px solid var(--zr-line); border-radius: var(--zr-radius); padding: clamp(20px, 4vw, 44px); }
.zr-article::after { content: ""; display: table; clear: both; }
.zr-article__fig { margin: 0 0 1.4em; }
.zr-article__fig img { display: block; width: 100%; border-radius: var(--zr-radius-sm); }
.zr-article__fig--side { float: inline-start; width: auto; max-width: 42%; margin: 6px 0 14px; margin-inline-end: 24px; }
.zr-article__fig--side img { width: auto; min-width: 150px; max-width: 100%; border: 4px solid #fff; box-shadow: var(--zr-shadow); }
.entry-content { font-size: 1.04rem; line-height: 2.15; overflow-wrap: break-word; }
.entry-content > :last-child { margin-block-end: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-block: 1.6em .5em; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(15, 107, 107, .35); text-underline-offset: 5px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content img { border-radius: var(--zr-radius-sm); }
.entry-content p > img:only-child { display: block; margin-inline: auto; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.5em; margin: 0 0 1.2em; }
.entry-content li { margin-block-end: .35em; }
.entry-content blockquote { margin: 1.4em 0; padding: 14px 22px; background: var(--zr-ivory); border-inline-start: 4px solid var(--zr-gold-2); border-radius: 0 var(--zr-radius-sm) var(--zr-radius-sm) 0; }
.entry-content hr { border: 0; height: 1px; background: var(--zr-line); margin-block: 2em; }
.entry-content sup { font-size: .68em; line-height: 0; }
.has-text-align-center { text-align: center; }
[dir="ltr"] { text-align: left; }
.wp-block-table { margin: 1.4em 0; overflow-x: auto; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .93rem; line-height: 1.9; }
.entry-content th, .entry-content td { border: 1px solid var(--zr-line); padding: 8px 12px; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--zr-ivory-2); font-weight: 700; }
.entry-content tbody tr:nth-child(even) td { background: #fcfaf5; }
.zr-note { margin: 1.5em 0 0; padding: 12px 18px; border-radius: var(--zr-radius-sm); background: var(--zr-ivory); border: 1px dashed var(--zr-line); color: var(--zr-muted); font-size: .88rem; }
.zr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 26px; padding-block-start: 18px; border-block-start: 1px solid var(--zr-line); font-size: .85rem; color: var(--zr-muted); clear: both; }
.zr-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 20px; }
.zr-postnav a { display: block; padding: 14px 18px; background: var(--zr-paper); border: 1px solid var(--zr-line); border-radius: var(--zr-radius); color: var(--zr-ink); font-weight: 700; font-size: .92rem; line-height: 1.8; }
.zr-postnav a:hover { border-color: var(--zr-teal); color: var(--zr-teal); }
.zr-postnav small { display: block; color: var(--zr-muted); font-weight: 500; font-size: .78rem; }
.zr-postnav .is-next { text-align: end; }

/* archived questions and answers */
.zr-comments { margin-block-start: 20px; background: var(--zr-paper); border: 1px solid var(--zr-line); border-radius: var(--zr-radius); padding: clamp(18px, 3vw, 30px); }
.zr-comments h2 { font-size: 1.15rem; }
.zr-comments h2 small { font-weight: 500; color: var(--zr-muted); }
.zr-comments ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zr-comments li { padding: 12px 16px; border-radius: var(--zr-radius-sm); background: var(--zr-ivory); font-size: .93rem; }
.zr-comments li.is-staff { background: rgba(15, 107, 107, .07); border-inline-start: 3px solid var(--zr-teal); margin-inline-start: 22px; }
.zr-comments__h { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--zr-muted); }
.zr-comments__h b { color: var(--zr-ink); }
.zr-comments__b p { margin: 4px 0 0; }

/* page with side menu */
.zr-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; align-items: start; }
.zr-side { position: sticky; inset-block-start: 100px; }
.zr-sidenav { list-style: none; margin: 0; padding: 0; }
.zr-sidenav a { display: block; padding: 8px 14px; border-radius: 9px; color: var(--zr-ink); font-weight: 600; font-size: .95rem; }
.zr-sidenav a:hover { background: var(--zr-ivory-2); color: var(--zr-teal); }
.zr-sidenav a.is-on { background: var(--zr-teal); color: #fff; }

/* contact */
.zr-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.zr-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.85; }
.zr-contact svg { color: var(--zr-gold); margin-block-start: 3px; width: 24px; height: 24px; }
.zr-contact b { display: block; font-size: .78rem; color: var(--zr-muted); font-weight: 600; }
.zr-contactbox { background: var(--zr-ivory); border: 1px solid var(--zr-line); border-radius: var(--zr-radius-sm); padding: 20px 22px; margin-block-end: 26px; }
.zr-contactbox .zr-contact { grid-template-columns: 1fr 1fr; }
.zr-contactbox .zr-contact li:first-child { grid-column: 1 / -1; }

/* forms */
.zr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 1.4em 0; }
.zr-form label { display: block; font-weight: 700; font-size: .88rem; color: var(--zr-ink); margin-block-end: 4px; }
.zr-form label i { color: #b3261e; font-style: normal; }
.zr-form .zr-form__full { grid-column: 1 / -1; }
.zr-form textarea { min-height: 150px; resize: vertical; line-height: 1.9; }
.zr-form__hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.zr-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.zr-form__foot small { color: var(--zr-muted); }
.zr-alert { padding: 12px 18px; border-radius: var(--zr-radius-sm); font-weight: 600; margin-block: 1em; }
.zr-alert--ok { background: #e7f4ee; color: #17603c; border: 1px solid #bfe1cf; }
.zr-alert--err { background: #fdeceb; color: #9c2219; border: 1px solid #f3c7c3; }

/* link directory + document lists */
.zr-links { list-style: none; margin: 0 0 1.6em !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zr-links li { margin: 0; }
.zr-links a {
	display: block; padding: 9px 14px; border-radius: 10px; background: var(--zr-ivory); border: 1px solid var(--zr-line);
	color: var(--zr-ink); font-weight: 600; font-size: .9rem; text-decoration: none; line-height: 1.8;
}
.zr-links a:hover { border-color: var(--zr-teal); color: var(--zr-teal); background: #fff; }
.zr-docs { list-style: none; margin: 0 0 1.4em !important; padding: 0 !important; display: grid; gap: 10px; }
.zr-docs li { margin: 0; }
.zr-docs a {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 18px; border-radius: 10px;
	background: var(--zr-ivory); border: 1px solid var(--zr-line); color: var(--zr-ink); font-weight: 700; text-decoration: none;
}
.zr-docs a:hover { border-color: var(--zr-teal); color: var(--zr-teal); background: #fff; }
.zr-docs small { font-weight: 500; color: var(--zr-muted); }

/* ---------- pager, empty, 404 ---------- */
.zr-pager { margin-block-start: 30px; }
.zr-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.zr-pager .page-numbers {
	min-width: 42px; height: 42px; padding-inline: 12px; display: grid; place-items: center; border-radius: 11px;
	background: #fff; border: 1px solid var(--zr-line); color: var(--zr-ink); font-weight: 700; font-size: .92rem;
}
.zr-pager a.page-numbers:hover { border-color: var(--zr-teal); color: var(--zr-teal); }
.zr-pager .page-numbers.current { background: var(--zr-teal); border-color: var(--zr-teal); color: #fff; }
.zr-pager .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }
.zr-empty { padding: 30px; text-align: center; background: var(--zr-paper); border: 1px dashed var(--zr-line); border-radius: var(--zr-radius); color: var(--zr-muted); }
.zr-rows--search { margin-block-start: 22px; }
.zr-404 { text-align: center; }
.zr-404__n { font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; line-height: 1; color: var(--zr-gold-2); margin: 0 0 10px; }
.zr-404 .zr-search { max-width: 520px; margin: 18px auto; }
.zr-404__links { display: flex; justify-content: center; gap: 10px; margin-block-start: 20px; }

/* ---------- footer ---------- */
.zr-footer { background: var(--zr-ink) var(--zr-girih); background-size: 96px 96px; color: rgba(255, 255, 255, .74); font-size: .9rem; margin-block-start: 10px; }
.zr-footer__in { display: grid; grid-template-columns: 1.45fr .8fr .8fr 1.25fr; gap: 34px; padding-block: 50px 36px; }
.zr-footer__about p { margin: 16px 0 0; line-height: 2; max-width: 44ch; }
.zr-footer h2 { color: #fff; font-size: 1rem; margin-block-end: 12px; }
.zr-footer ul { list-style: none; margin: 0; padding: 0; }
.zr-footer__col li { margin-block-end: 6px; }
.zr-footer a { color: rgba(255, 255, 255, .8); }
.zr-footer a:hover { color: var(--zr-gold-2); }
.zr-footer .zr-contact { gap: 8px; }
.zr-footer .zr-contact b { color: rgba(255, 255, 255, .5); font-size: .74rem; }
.zr-footer__bar { border-block-start: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.zr-footer__bar .zr-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 14px; }
.zr-footer__credit { opacity: .85; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.zr-nav a { padding-inline: 9px; font-size: .9rem; }
	.zr-brand__sub { display: none; }
	.zr-footer__in { grid-template-columns: 1fr 1fr; }
	.zr-strip { grid-template-columns: repeat(3, 1fr); }
	.zr-books { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 920px) {
	.zr-burger { display: grid; }
	.zr-nav {
		display: none; position: absolute; inset-inline: 0; inset-block-start: 100%; background: #fff; margin: 0;
		border-block-end: 1px solid var(--zr-line); box-shadow: var(--zr-shadow-lg); padding: 10px 16px 18px; max-height: 76vh; overflow-y: auto;
	}
	.zr-nav.is-open { display: block; }
	.zr-nav ul { flex-direction: column; align-items: stretch; }
	.zr-nav a { padding: 11px 12px; font-size: 1rem; white-space: normal; }
	.zr-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0; padding-inline-start: 16px; min-width: 0; }
	.zr-nav .menu-item-has-children > a::after { display: none; }
	.zr-search-btn { margin-inline-start: auto; }
	.zr-brand__sub { display: block; }
	.zr-hero__in { grid-template-columns: 1fr; }
	.zr-hero__art { display: none; }
	.zr-newsgrid, .zr-with-side { grid-template-columns: 1fr; }
	.zr-side { position: static; }
	.zr-dest, .zr-cards, .zr-cta { grid-template-columns: 1fr 1fr; }
	.zr-links { grid-template-columns: 1fr 1fr; }
	.gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
	body { font-size: 15.5px; }
	.zr-wrap { padding-inline: 16px; }
	.zr-topbar__date { display: none; }
	.zr-header__in { min-height: 66px; gap: 10px; }
	.zr-brand__name { font-size: 1.1rem; }
	.zr-brand__sub { font-size: .68rem; max-width: 22ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.zr-brand .zr-emblem { width: 44px; height: 44px; }
	.zr-dest, .zr-cards, .zr-cta, .zr-links, .zr-form, .zr-contactbox .zr-contact { grid-template-columns: 1fr; }
	.zr-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px; }
	.zr-row__ex { display: none; }
	.zr-row__t { font-size: .98rem; }
	.zr-sechead { align-items: flex-start; flex-direction: column; gap: 8px; }
	.zr-books { grid-template-columns: repeat(2, 1fr); }
	.zr-strip, .gallery { grid-template-columns: repeat(2, 1fr); }
	.zr-article__fig--side { float: none; max-width: 100%; margin: 0 0 1.2em; }
	.zr-postnav { grid-template-columns: 1fr; }
	.zr-postnav .is-next { text-align: start; }
	.zr-footer__in { grid-template-columns: 1fr; gap: 26px; padding-block: 36px 26px; }
	.zr-comments li.is-staff { margin-inline-start: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.zr-topbar, .zr-header, .zr-footer, .zr-postnav, .zr-tabs, .zr-pager, .zr-side, .zr-cta-sec { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.zr-pagehead { background: none; color: #000; padding: 0 0 10px; }
	.zr-pagehead::before { display: none; }
	.zr-pagehead h1 { color: #000; }
	.zr-article { border: 0; padding: 0; }
}
