/*
Theme Name: Panevis — پانویس
Theme URI: https://fpazooki.ir
Author: مهدی رحمانی
Description: قالب اختصاصی سایت شخصی دکتر فاطمه پازوکی. هر نوشته مثل یک رکورد کتابخانه فهرست می‌شود: نقشه‌ی تعاملی کارها، برگه‌دان با صافی چندوجهی، صفحه‌ی خواندن با رکورد و استناد، و بخش «از من بپرس» که فقط از متن نوشته‌ها پاسخ می‌دهد. فونت‌ها داخل قالب هستند و به گوگل وابسته نیست.
Version: 1.0.1
Requires at least: 5.5
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: panevis
Tags: rtl-language-support, dark, custom-menu, translation-ready
*/

:root {
	--bg: #0E0F12;
	--panel: #111317;
	--panel-2: #16181D;
	--line: #24262B;
	--line-2: #2E3036;
	--line-3: #3A3D44;
	--text: #EDEAE3;
	--text-2: #CFCBC2;
	--muted: #A9ACB2;
	--dim: #8A8D94;
	--faint: #5D6067;
	--accent: #FF5B2E;
	--accent-ink: #0E0F12;
	--paper: #EDE7DA;
	--paper-ink: #1B1D21;
	--paper-muted: #5E5A52;
	--kufi: "Noto Kufi Arabic", "Vazirmatn", Tahoma, sans-serif;
	--sans: "Vazirmatn", Tahoma, sans-serif;
	--serif: "Markazi Text", "Vazirmatn", serif;
	--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--gutter: clamp(16px, 3vw, 40px);
	--max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.9;
	direction: rtl;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); font-weight: 800; }
.thin { font-weight: 100; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; top: -60px; right: 16px; z-index: 50; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; }
.skip:focus { top: 12px; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.tag-line { margin: 0 0 14px; font-size: 12px; color: var(--dim); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--kufi); font-weight: 800; font-size: 19px; }
.brand-host { font-size: 11px; color: var(--dim); direction: ltr; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; counter-reset: nav; font-size: 14px; }
.nav-list li { counter-increment: nav; }
.nav-list a { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0; }
.nav-list a::before { content: "0" counter(nav); font-family: var(--mono); font-size: 10px; color: var(--accent); }
.nav-list a::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after, .nav-list .current_page_item > a::after { transform: scaleX(1); }
.header-tools { display: flex; gap: 8px; }
.search-toggle { display: inline-flex; align-items: center; justify-content: center; }
.search-toggle, .menu-toggle {
	min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px;
	background: transparent; cursor: pointer; color: var(--text); font-size: 18px;
	transition: border-color .3s, background .3s;
}
.search-toggle:hover, .menu-toggle:hover { border-color: var(--accent); }
.menu-toggle { display: none; }
.menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: currentColor; position: relative; transition: transform .4s var(--ease); }
.menu-toggle-bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
.site-search { width: 100%; display: flex; gap: 8px; padding-top: 8px; }
.site-search[hidden] { display: none; }
.site-search input, .inline-search input {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--line-3); background: var(--panel);
}
.site-search button, .inline-search button, .ask-form button {
	min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--accent); color: var(--accent-ink); font-weight: 500;
	transition: transform .3s var(--ease), background .3s;
}
.site-search button:hover, .inline-search button:hover, .ask-form button:hover { transform: translateY(-2px); background: #ff734d; }

/* ---------- Reveal motion ---------- */
@keyframes pv-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes pv-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pv-scan { from { transform: translateX(120%); } to { transform: translateX(-220%); } }
@keyframes pv-pop { from { opacity: 0; transform: translate(50%, -50%) scale(0); } to { opacity: 1; transform: translate(50%, -50%) scale(1); } }
@keyframes pv-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pv-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span { display: inline-block; animation: pv-up 1.3s var(--ease) both; }
.mask-2 > span { animation-delay: .14s; }
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.cursor { color: var(--accent); animation: pv-blink 1s steps(1) infinite; }
.rule { height: 1px; background: var(--accent); transform-origin: right; animation: pv-draw 1.4s .4s var(--ease-io) both; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 40px; }
.marc { margin: 0 0 18px; font-size: 12px; color: var(--dim); direction: rtl; }
.marc b { font-weight: 400; color: var(--text); }
.hero-name { margin: 0; font-family: var(--kufi); font-weight: 900; font-size: clamp(54px, 11.5vw, 176px); line-height: 1.12; letter-spacing: -1px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; justify-content: space-between; margin-top: 24px; }
.hero-tagline { flex: 999 1 520px; min-width: 0; margin: 0; font-family: var(--kufi); font-weight: 100; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.6; }
.hero-intro { flex: 1 1 340px; display: flex; gap: 20px; align-items: center; }
.hero-intro p { margin: 0; font-size: 15px; line-height: 2; color: var(--muted); }
.portrait { width: 96px; height: 96px; flex: none; border-radius: 50%; object-fit: cover; padding: 4px; border: 1px solid var(--line-3); filter: grayscale(1) contrast(1.15); transition: filter .8s; }
.hero-intro:hover .portrait { filter: grayscale(0); }

/* ---------- Section heads ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.h-tag { margin: 0; display: flex; align-items: baseline; gap: 14px; font-family: var(--kufi); font-weight: 500; font-size: 26px; }
.more { font-size: 14px; color: var(--muted); }

/* ---------- Segmented buttons ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg-btn { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; transition: background .35s, color .35s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on { background: var(--text); color: var(--bg); font-weight: 500; }

/* ---------- Knowledge map ---------- */
.map-section { border-top: 1px solid var(--line); padding: 36px 0 12px; }
.map-wrap { display: flex; flex-wrap: wrap; gap: 24px; }
.map { position: relative; flex: 999 1 640px; min-width: 0; height: 560px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.map-scan { position: absolute; top: 0; bottom: 0; right: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 91, 46, .05), transparent); animation: pv-scan 7s linear infinite; pointer-events: none; }
.map-axes span { position: absolute; transform: translate(50%, -50%); font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; transition: opacity .6s; }
.node {
	position: absolute; transform: translate(50%, -50%);
	display: flex; align-items: center; gap: 8px; padding: 6px;
	background: none; border: 0; cursor: pointer; color: var(--text); white-space: nowrap;
	transition: right 1.1s var(--ease-io), top 1.1s var(--ease-io);
	animation: pv-pop .8s var(--ease) both;
}
.node-dot { display: block; border-radius: 50%; transition: transform .4s var(--ease), box-shadow .4s; }
.node-label { position: absolute; top: 50%; right: calc(100% + 2px); font-size: 13px; opacity: 0; transform: translate(6px, -50%); transition: opacity .35s, transform .35s; pointer-events: none; background: rgba(14, 15, 18, .88); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.node.flip .node-label { right: auto; left: calc(100% + 2px); transform: translate(-6px, -50%); }
.node:hover { z-index: 3; }
.node:hover .node-dot, .node:focus-visible .node-dot { transform: scale(1.6); }
.node:hover .node-label, .node:focus-visible .node-label, .node.is-sel .node-label { opacity: 1; transform: translate(0, -50%); }
.node.is-sel { z-index: 2; }
.node.is-sel .node-dot { box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px var(--accent); }
.t-thesis .node-dot { width: 16px; height: 16px; background: var(--accent); }
.t-article .node-dot { width: 12px; height: 12px; background: var(--text); }
.t-essay .node-dot { width: 9px; height: 9px; background: var(--muted); }
.t-editing .node-dot, .t-talk .node-dot { width: 10px; height: 10px; background: var(--panel); box-shadow: 0 0 0 1.5px var(--accent); }
.map-legend { position: absolute; left: 16px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--dim); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; border-radius: 50%; }
.lg-thesis { width: 12px; height: 12px; background: var(--accent); }
.lg-article { width: 10px; height: 10px; background: var(--text); }
.lg-essay { width: 8px; height: 8px; background: var(--muted); }
.lg-other { width: 9px; height: 9px; border: 1.5px solid var(--accent); }
.hint { margin: 12px 0 0; font-size: 12px; color: var(--dim); }
.noscript-list { columns: 2; }

/* ---------- Record panel ---------- */
.record { flex: 1 1 300px; display: flex; flex-direction: column; gap: 2px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 14px; }
.record-no { margin: 0 0 12px; font-size: 12px; color: var(--dim); }
.field { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.field:last-of-type { border-bottom: 1px solid var(--line); }
.f-title { font-family: var(--kufi); font-size: 19px; line-height: 1.7; color: var(--text); }
.f-note { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: var(--text-2); }
.record [data-f] { transition: opacity .3s; }
.record.is-swapping [data-f] { opacity: 0; }
.record-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
	border-radius: 999px; border: 1px solid var(--line-3); background: transparent; color: var(--text);
	cursor: pointer; font-size: 14px; transition: gap .4s var(--ease), border-color .3s, background .3s, color .3s;
}
.btn:hover { gap: 16px; border-color: var(--text); color: var(--text); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.btn-accent:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn.is-done { border-color: var(--accent); color: var(--accent); }

/* ---------- Entrances ---------- */
.entrances { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); margin-top: 56px; }
.entrance { display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 36px 28px 40px; border-left: 1px solid var(--line); transition: background .5s; }
.entrance:first-child { padding-right: 0; }
.entrance:last-child { border-left: 0; }
.entrance:hover { background: var(--panel); color: var(--text); }
.entrance-title { font-family: var(--kufi); font-weight: 300; font-size: 30px; line-height: 1.5; transition: transform .6s var(--ease); }
.entrance:hover .entrance-title { transform: translateX(-8px); }
.entrance .muted { font-size: 14px; }

/* ---------- Catalogue cards ---------- */
.latest { border-top: 1px solid var(--line); padding: 72px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { position: relative; }
.card-link {
	position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 260px;
	padding: 22px 24px 34px; border-radius: 4px; background: var(--paper); color: var(--paper-ink);
	transition: transform .6s var(--ease), box-shadow .6s;
}
.card-link:hover { color: var(--paper-ink); transform: translateY(-10px) rotate(-.8deg); box-shadow: 0 28px 50px rgba(0, 0, 0, .45); }
.card-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--paper-muted); border-bottom: 1px solid #CBC2B1; padding-bottom: 10px; }
.card-title { margin: 0; font-family: var(--kufi); font-weight: 500; font-size: 21px; line-height: 1.7; }
.card-note { margin: 0; flex-grow: 1; font-size: 14px; line-height: 1.9; color: #45423C; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.card-foot .muted { color: var(--paper-muted); }
.card-arrow { color: #B23A17; transition: transform .4s var(--ease); }
.card-link:hover .card-arrow { transform: translateX(-6px); }
.card-hole { position: absolute; bottom: 10px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); }
.card.is-hidden { display: none; }

/* ---------- Ask ---------- */
.ask { display: flex; flex-wrap: wrap; gap: 48px; border-top: 1px solid var(--line); padding: 88px 0 72px; }
.ask-intro { flex: 1 1 320px; }
.ask-intro .muted { font-size: 16px; line-height: 2; }
.ask-title { margin: 0 0 20px; font-family: var(--kufi); font-weight: 800; font-size: clamp(40px, 5vw, 72px); line-height: 1.25; }
.ask-box { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); background: transparent; color: var(--text-2); cursor: pointer; font-size: 13px; transition: border-color .3s, color .3s; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.ask-log { min-height: 190px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.ask-empty { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.8; color: var(--faint); }
.ask-q { align-self: flex-start; max-width: 85%; margin: 0; padding: 10px 16px; border-radius: 14px 14px 14px 4px; background: var(--line); font-size: 14px; animation: pv-fade .5s var(--ease) both; }
.ask-thinking { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.ask-thinking::after { content: " ▍"; animation: pv-blink 1s steps(1) infinite; }
.ask-a { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.8; color: var(--text); animation: pv-fade .7s var(--ease) both; }
.ask-src { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); animation: pv-fade .9s var(--ease) both; }
.ask-src a { color: var(--accent); }
.ask-form { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--bg); }
.ask-error { width: 100%; margin: 0 16px 0 0; font-size: 13px; color: #FF8A6B; }

/* ---------- Elsewhere ---------- */
.elsewhere { border-top: 1px solid var(--line); padding: 72px 0; }
.else-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.else-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .4s, transform .6s var(--ease); }
a.else-card:hover { border-color: var(--accent); transform: translateY(-6px); color: var(--text); }
.else-label { font-size: 12px; color: var(--dim); }
.else-value { font-family: var(--kufi); font-weight: 300; font-size: 22px; overflow-wrap: anywhere; }
.else-insta { grid-row: span 2; justify-content: flex-end; min-height: 320px; background: var(--panel-2); }
.else-insta .else-label { margin-bottom: auto; }
.else-handle { font-family: var(--kufi); font-weight: 800; font-size: clamp(26px, 3vw, 40px); direction: ltr; text-align: right; overflow-wrap: anywhere; }
.else-cta { font-size: 14px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 12px; transition: border-color .3s; }
.pill:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.credit strong, .credit a { color: var(--text); font-weight: 400; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---------- Page heads, catalogue ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 32px; }
.page-title { margin: 0; font-family: var(--kufi); font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: 1.3; }
.page-lead { max-width: 720px; margin-top: 16px; color: var(--muted); }
.facets { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 18px 0 28px; border-top: 1px solid var(--line); margin-bottom: 12px; }
.facet-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.facet-fields select, .facet-fields input {
	min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--panel);
}
.facet-count { margin: 0; font-size: 12px; color: var(--dim); }
.empty-note { color: var(--muted); padding: 32px 0; }
.pager { margin: 48px 0; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.pager .current { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Single ---------- */
.single-head { padding: clamp(40px, 6vw, 80px) 0 28px; }
.single-title { margin: 0 0 18px; max-width: 18ch; font-family: var(--kufi); font-weight: 800; font-size: clamp(36px, 5.6vw, 80px); line-height: 1.35; }
.single-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 32px; font-size: 14px; color: var(--muted); }
.single-figure { margin: 0 0 48px; border-radius: 6px; overflow: hidden; }
.single-figure img { width: 100%; filter: grayscale(.25); }
.single-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; font-size: 18px; line-height: 2.15; color: var(--text-2); }
.prose-page { margin-bottom: 80px; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--kufi); color: var(--text); line-height: 1.6; margin: 2em 0 .6em; }
.prose h2 { font-size: 28px; font-weight: 500; }
.prose h3 { font-size: 22px; font-weight: 500; }
.prose a { color: var(--text); border-bottom: 1px solid var(--accent); }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 2em 0; padding: 0 24px 0 0; border-right: 2px solid var(--accent); font-family: var(--serif); font-size: 26px; line-height: 1.75; color: var(--text); }
.prose blockquote p { margin: 0; }
.prose sup, .prose sup a { color: var(--accent); font-family: var(--mono); font-size: 12px; border: 0; }
.prose ol, .prose ul { padding-right: 1.4em; }
.prose img { border-radius: 4px; }
.prose figure { margin: 2em 0; }
.prose figcaption, .wp-element-caption { font-size: 13px; color: var(--dim); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line-2); text-align: right; }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--panel-2); padding: 2px 6px; border-radius: 4px; }
.prose .footnotes, .prose .wp-block-footnotes { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line-2); font-size: 14px; line-height: 2; color: var(--muted); }
.record-single { position: sticky; top: 24px; flex: 1 1 280px; }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 80px 0; }
.pn { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .4s; }
.pn:hover { border-color: var(--accent); color: var(--text); }
.pn .mono { font-size: 11px; color: var(--dim); }
.pn span:last-child { font-family: var(--kufi); font-size: 18px; }
.pn-prev { text-align: left; }
.comments-wrap { max-width: 760px; padding-bottom: 80px; }
.comments-wrap textarea, .comments-wrap input[type="text"], .comments-wrap input[type="email"], .comments-wrap input[type="url"] { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--panel); }
.comments-wrap input[type="submit"] { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }

.notfound .inline-search { display: flex; gap: 8px; max-width: 560px; margin: 24px 0; }

/* WordPress core alignment helpers */
.alignwide { margin-left: calc(-1 * min(8vw, 120px)); margin-right: 0; }
.alignfull { width: 100vw; position: relative; right: 50%; margin-right: -50vw; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; order: 3; }
	.header-tools { order: 2; margin-right: auto; }
	.site-nav { order: 4; width: 100%; display: none; }
	.site-nav.is-open { display: block; animation: pv-fade .5s var(--ease) both; }
	.nav-list { flex-direction: column; gap: 0; font-size: 20px; padding: 8px 0 12px; }
	.nav-list a { padding: 12px 0; font-family: var(--kufi); }
	.map { height: 460px; }
	.entrance { border-left: 0; border-bottom: 1px solid var(--line); padding: 28px 0; }
	.record-single { position: static; }
	.alignwide { margin-left: 0; }
}
@media (max-width: 520px) {
	.brand-host { display: none; }
	.map { height: 440px; padding-bottom: 40px; }
	.node-label { font-size: 12px; white-space: normal; width: max-content; max-width: 150px; }
	.map-legend { right: 12px; left: 12px; bottom: 8px; gap: 4px 10px; font-size: 11px; padding-top: 6px; border-top: 1px solid var(--line); background: var(--panel); z-index: 5; }
	.else-insta { min-height: 220px; }
	.prose { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js .rv { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
