/*
Theme Name: Nezamat
Theme URI: https://nezamat.ir/
Author: Mohammad Mahdi Aghakhani
Author URI: https://therealememay.ir/
Description: قالب ساده و مینیمال فارسی برای سایت نظامات؛ قوانین، مقررات و مقالات حقوقی.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: nezamat
*/

@font-face {
    font-family: 'IRANSansX';
    src: url('/fonts/woff2/IRANSansXFaNum-Regular.woff2') format('woff2'),
         url('/fonts/woff/IRANSansXFaNum-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

html,
body,
body *,
button,
input,
textarea,
select,
option,
optgroup,
label,
table,
th,
td,
a,
p,
span,
div,
section,
article,
aside,
header,
footer,
nav,
main,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li {
    font-family: 'IRANSansX', sans-serif !important;
}

:root {
    --nz-bg: #f4f3f1;
    --nz-surface: #ffffff;
    --nz-surface-soft: #faf9f7;
    --nz-text: #222222;
    --nz-text-soft: #686868;
    --nz-border: #e8e5e0;
    --nz-border-strong: #d9d5cf;
    --nz-accent: #9a7433;
    --nz-accent-dark: #29743B;
    --nz-header: #232323;
    --nz-radius: 16px;
    --nz-radius-sm: 11px;
    --nz-shadow: 0 12px 34px rgba(24, 24, 24, .06);
    --nz-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--nz-bg);
    color: var(--nz-text);
    font-family: 'IRANSansX', sans-serif;
    font-size: 15px;
    line-height: 2;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: #29743B; }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(calc(100% - 36px), var(--nz-container)); margin-inline: auto; }

.skip-link {
    position: fixed; inset-inline-start: 16px; top: -60px; z-index: 9999;
    background: var(--nz-header); color: #fff; padding: 9px 14px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
    position: relative;
    background: var(--nz-header);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; max-width: 150px; }
.custom-logo { max-height: 52px; width: auto; display: block; }
.brand-mark {
    width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px;
    display: grid; place-items: center; flex: 0 0 auto; color: #e0bd79; font-weight: 700;
    position: relative;
}
.brand-mark::before {
    content: "ن"; font-size: 20px; transform: translateY(-1px);
}
.brand-copy { min-width: 0; }
.brand-title { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.25px; }
.brand-tagline { display: block; color: #aaa; font-size: 11px; line-height: 1.5; margin-top: -3px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav a {
    display: block; padding: 8px 12px; color: #ddd; border-radius: 9px; font-size: 13px;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a {
    background: rgba(255,255,255,.08); color: #fff;
}
.nav-toggle {
    display: none; border: 1px solid rgba(255,255,255,.15); background: transparent; color: #fff;
    width: 42px; height: 42px; border-radius: 10px; font-size: 20px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-search-link, .theme-link {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    color: #ddd; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04);
}
.header-search-link:hover, .theme-link:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Main */
.site-main { flex: 1; padding: 46px 0 72px; }
.hero { text-align: center; padding: 26px 0 32px; }
.eyebrow { color: var(--nz-accent-dark); font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.hero h1 {
    max-width: 720px; margin: 0 auto 8px; font-size: clamp(27px, 3vw, 38px); line-height: 1.5; letter-spacing: -.8px;
}
.hero p { max-width: 670px; margin: 0 auto; color: var(--nz-text-soft); font-size: 14px; }

.search-box {
    width: min(720px, 100%); margin: 25px auto 0; display: flex; gap: 8px;
    background: var(--nz-surface); border: 1px solid var(--nz-border); padding: 7px; border-radius: 14px; box-shadow: var(--nz-shadow);
}
.search-box input[type="search"] {
    min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; padding: 11px 13px; color: var(--nz-text);
}
.search-box button {
    border: 0; background: var(--nz-header); color: #fff; padding: 0 17px; border-radius: 10px; font-size: 13px; font-weight: 700;
}
.search-box button:hover { background: #000; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-title { margin: 0; font-size: 17px; }
.section-more { color: var(--nz-text-soft); font-size: 12px; }

.category-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.category-card {
    background: var(--nz-surface); border: 1px solid var(--nz-border); border-radius: var(--nz-radius);
    padding: 18px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: var(--nz-border-strong); box-shadow: var(--nz-shadow); }
.category-card strong { display: block; font-size: 14px; }
.category-card span { color: var(--nz-text-soft); font-size: 11px; }
.category-icon {
    width: 34px; height: 34px; border-radius: 9px; background: #f0ece5; color: var(--nz-accent-dark);
    display: grid; place-items: center; margin-bottom: 12px; font-size: 15px;
}

.content-surface {
    background: var(--nz-surface); border: 1px solid var(--nz-border); border-radius: var(--nz-radius); box-shadow: var(--nz-shadow);
}
.post-list { overflow: hidden; }
.post-item {
    padding: 22px 24px; border-bottom: 1px solid var(--nz-border); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start;
}
.post-item:last-child { border-bottom: 0; }
.post-item h2, .post-item h3 { margin: 0 0 7px; font-size: 14px; line-height: 1.8; }
.post-excerpt { margin: 0; color: var(--nz-text-soft); font-size: 12px; line-height: 2; }
.post-meta { color: #8a8a8a; font-size: 11px; white-space: nowrap; padding-top: 3px; }
.post-meta a { color: var(--nz-accent-dark); }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.badge {
    display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px;
    background: var(--nz-surface-soft); border: 1px solid var(--nz-border); border-radius: 999px; color: #777; font-size: 10px;
}

/* Archive / search */
.page-head { padding: 4px 0 24px; }
.page-head .breadcrumbs { color: #8a8a8a; font-size: 11px; margin-bottom: 7px; }
.page-head h1 { margin: 0; font-size: clamp(22px, 2.55vw, 29px); line-height: 1.6; }
.page-head p { margin: 4px 0 0; color: var(--nz-text-soft); font-size: 13px; }
.archive-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: var(--nz-surface); border: 1px solid var(--nz-border); border-radius: var(--nz-radius-sm); padding: 10px 13px; margin-bottom: 14px;
}
.archive-toolbar form { flex: 1; min-width: 260px; display: flex; gap: 7px; }
.archive-toolbar input, .archive-toolbar select {
    width: 100%; border: 1px solid var(--nz-border); background: var(--nz-surface-soft); border-radius: 9px; padding: 9px 11px; outline: none;
}
.archive-toolbar input:focus, .archive-toolbar select:focus { border-color: #c9bdab; }
.archive-toolbar button { border: 0; background: var(--nz-header); color: #fff; padding: 9px 14px; border-radius: 9px; }
.result-count { font-size: 11px; color: #8b8b8b; }

/* Single / Page */
.entry-wrap { width: min(920px, 100%); margin-inline: auto; }
.entry-card { padding: clamp(22px, 4vw, 42px); }
.entry-header { padding-bottom: 24px; margin-bottom: 24px; }
.entry-title { margin: 0 0 10px; font-size: clamp(17px, 0.45vw, 23px); line-height: 1.62; }
.entry-subtitle { margin: 0; color: var(--nz-text-soft); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; color: #8a8a8a; font-size: 11px; }
.entry-content { font-size: 15px; line-height: 2.35; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 22px; line-height: 1.7; margin: 35px 0 13px; }
.entry-content h3 { font-size: 18px; line-height: 1.7; margin: 30px 0 10px; }
.entry-content h4 { font-size: 16px; margin: 24px 0 9px; }
.entry-content p { margin: 0 0 20px; }
.entry-content ul, .entry-content ol { padding-inline-start: 24px; margin: 0 0 20px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--nz-accent-dark); }
.entry-content blockquote {
    margin: 25px 0; padding: 14px 18px; border-inline-start: 4px solid var(--nz-accent);
    background: #fbf8f3; border-radius: 0 10px 10px 0; color: #5d584f;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 13px; }
.entry-content th, .entry-content td { border: 1px solid var(--nz-border); padding: 9px 11px; text-align: right; }
.entry-content th { background: var(--nz-surface-soft); }
.entry-content pre { direction: ltr; overflow: auto; background: #202020; color: #eee; padding: 16px; border-radius: 10px; }
.entry-content code { font-family: monospace; background: #f1efeb; padding: 1px 5px; border-radius: 5px; }
.entry-content pre code { background: transparent; padding: 0; }

.featured-image { margin: 0 0 25px; overflow: hidden; border-radius: 14px; background: #eee; }
.featured-image img { display: block; width: 100%; height: auto; }

.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.nav-box { border: 1px solid var(--nz-border); background: var(--nz-surface); border-radius: 12px; padding: 13px 15px; }
.nav-box small { color: #999; display: block; margin-bottom: 4px; font-size: 10px; }
.nav-box a { font-size: 12px; line-height: 1.8; }

/* Footer */
.site-footer { margin-top: auto; background: #1f1f1f; color: #ddd; }
.footer-inner { padding: 34px 0 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand p { margin: 8px 0 0; color: #999; font-size: 12px; line-height: 2; max-width: 450px; }
.footer-title { margin: 0 0 9px; font-size: 13px; color: #fff; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 2px; }
.footer-nav a { color: #aaa; font-size: 11px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 13px 0 16px; color: #898989; font-size: 10px; }
.footer-bottom-inner { display: flex; align-items: center; gap: 15px; }

/* Utility */
.pagination { padding: 18px 22px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 9px; border: 1px solid var(--nz-border); background: var(--nz-surface); border-radius: 9px; font-size: 11px; }
.pagination .current { background: var(--nz-header); color: #fff; border-color: var(--nz-header); }
.empty-state { padding: 44px 24px; text-align: center; }
.empty-state h2 { margin: 0 0 6px; font-size: 20px; }
.empty-state p { margin: 0; color: var(--nz-text-soft); font-size: 12px; }

.go-top {
    position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 30; width: 40px; height: 40px; border: 1px solid var(--nz-border);
    border-radius: 50%; background: rgba(255,255,255,.94); color: #555; box-shadow: var(--nz-shadow); display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.go-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; color: #888; font-size: 11px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item { margin: 0; }

/* Responsive */
@media (max-width: 980px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .container { width: min(calc(100% - 24px), var(--nz-container)); }
    .site-main { padding-top: 26px; }
    .header-inner { min-height: 68px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; inset-inline: 12px; top: calc(100% + 8px); z-index: 50; display: none; padding: 7px;
        background: #262626; border: 1px solid rgba(255,255,255,.10); border-radius: 13px; box-shadow: 0 18px 35px rgba(0,0,0,.2);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { display: block; }
    .main-nav a { padding: 10px 12px; }
    .header-actions { margin-inline-start: auto; }
    .category-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
    .category-card { padding: 14px; }
    .post-item { display: block; padding: 19px 18px; }
    .post-meta { margin-top: 8px; white-space: normal; }
    .search-box button { padding: 0 12px; }
    .entry-card { padding: 20px 17px; }
    .post-navigation { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
    .brand-title { font-size: 18px; }
    .brand-tagline { display: none; }
    .header-search-link, .theme-link { display: none; }
    .category-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 25px; }
    .search-box { padding: 5px; }
    .search-box input[type="search"] { padding: 9px 8px; }
    .search-box button { padding: 0 9px; }
}

/* Consolidated Nezamat v1.2 component layer */

body {
    font-family: "IRANSansX", "IRANSans", Tahoma, Arial, sans-serif;
    direction: rtl;
}

.site-header { direction: rtl; }
.header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}
.header-inner .brand { justify-self: start; }
.main-nav { justify-self: center; min-width: 0; }
.main-nav ul { justify-content: center; }
.header-actions { justify-self: end; }
.header-action {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
    color: #ddd;
    font-size: 10px;
    transition: .18s ease;
}
.header-action:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.header-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle { font-family: inherit; }
.theme-icon-light { display: none; }
body.nz-dark .theme-icon-dark { display: none; }
body.nz-dark .theme-icon-light { display: block; }
.nav-toggle { position: relative; }
.nav-toggle .close-icon { display: none; }
.nav-toggle[aria-expanded="true"] .hamburger-icon { display: none; }
.nav-toggle[aria-expanded="true"] .close-icon { display: block; }

/* Home search */
.hero-home { padding-top: 10px; }
.hero-count {
    margin: 0 auto;
    color: var(--nz-text-soft);
    font-size: 15px;
}
.hero-count strong {
    color: #838383;
    font-size: 23px;
    font-weight: 800;
}
.advanced-search {
    width: min(900px, 100%);
    margin: 28px auto 0;
    background: var(--nz-surface);
    border: 1px solid var(--nz-border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(30,30,30,.08);
    overflow: hidden;
    text-align: right;
}
.advanced-search-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 7px;
}
.advanced-search-icon { width: 18px; height: 18px; flex: 0 0 auto; margin-inline: 11px 4px 0; fill: none; stroke: #989898; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.advanced-search-main > input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nz-text);
    padding: 12px 4px;
    font-size: 14px;
}
.advanced-search-main > input::placeholder { color: #999; }
.advanced-search-submit, .advanced-search-filter-toggle {
    min-height: 44px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--nz-border);
    font-family: inherit;
}
.advanced-search-submit {
    min-width: 44px;
    border-color: var(--nz-header);
    background: var(--nz-header);
    color: #fff;
}
.advanced-search-submit:hover { background: #000; }
.advanced-search-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--nz-input);
    color: var(--nz-text-soft);
}
.advanced-search-filter-toggle:hover { border-color: var(--nz-border-strong); color: var(--nz-text); }
.advanced-search-filter-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.advanced-search-panel { border-top: 1px solid var(--nz-border); padding: 18px; background: var(--nz-surface-soft); }
.advanced-search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.filter-field { min-width: 0; }
.filter-field > label { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 700; color: #666; }
.filter-field select, .filter-field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--nz-border);
    border-radius: 10px;
    outline: none;
    background: var(--nz-surface);
    color: var(--nz-text);
    padding: 0 11px;
    font-size: 11px;
}
.filter-field select:focus, .filter-field input:focus { border-color: #c7b89e; box-shadow: 0 0 0 3px rgba(171,137,81,.09); }
.filter-date-field { grid-column: span 1; }
.date-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.nz-persian-date { cursor: pointer; }
.nz-persian-date::placeholder { opacity: .82; }
.nz-persian-date[data-nz-persian-date="1"] { background-image: linear-gradient(transparent, transparent); }
.date-range span { font-size: 10px; color: #888; }
.advanced-search-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; color: #888; font-size: 10px; }
.advanced-search-footer a { color: var(--nz-accent-dark); }
.advanced-search-footer a:hover { text-decoration: underline; }

/* Search results */
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.active-filters span { padding: 5px 9px; border: 1px solid var(--nz-border); background: var(--nz-surface-soft); border-radius: 999px; color: #777; font-size: 10px; }
.archive-toolbar { justify-content: space-between; }
.toolbar-link { color: var(--nz-accent-dark); font-size: 11px; }

/* Single post custom fields */
.entry-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}
.entry-field {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--nz-border);
    border-radius: 10px;
    background: var(--nz-surface-soft);
}
.entry-field-label { display: block; color: #8a8a8a; font-size: 9px; margin-bottom: 2px; }
.entry-field-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }

/* Simple About / Contact - no sidebar */
.simple-page-card {
    background: var(--nz-surface);
    border: 1px solid var(--nz-border);
    border-radius: 18px;
    box-shadow: var(--nz-shadow);
    padding: clamp(24px, 5vw, 48px);
}
.simple-page-card > .breadcrumbs { margin-bottom: 18px; }
.simple-page-card .page-kicker { margin-bottom: 4px; }
.simple-page-card .page-modern-title { margin-top: 7px; margin-bottom: 18px; }
.page-modern-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.65; }
.page-about .page-modern-content { max-width: 820px; }
.page-about .page-modern-content.entry-content { font-size: 14px; line-height: 2.45; }
.about-signature { margin-top: 28px !important; font-size: 17px; }
.about-license {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--nz-border);
    border-radius: 14px;
    background: var(--nz-surface-soft);
}
.license-logo { display: flex; align-items: center; justify-content: center; min-width: 52px; }
.license-logo img { width: 52px; height: auto; display: block; }
.about-license strong, .about-license span { display: block; }
.about-license strong { font-size: 12px; margin-bottom: 1px; }
.about-license span { color: #888; font-size: 10px; }

.page-contact .page-modern-lead { margin-bottom: 20px; }
.contact-simple-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.contact-simple-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--nz-border);
    border-radius: 13px;
    background: var(--nz-surface-soft);
    transition: .18s ease;
}
.contact-simple-card:hover { transform: translateY(-2px); border-color: #d5c5ac; box-shadow: 0 12px 28px rgba(30,30,30,.06); }
.contact-simple-card .contact-card-icon { width: 34px; height: 34px; flex: 0 0 auto; }
.contact-simple-card .contact-card-icon svg { width: 15px; height: 15px; }
.contact-simple-card strong, .contact-simple-card small { display: block; }
.contact-simple-card strong { font-size: 10px; }
.contact-simple-card small { color: #888; font-size: 10px; margin-top: 1px; overflow-wrap: anywhere; }
.contact-person {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--nz-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.contact-person h2 { margin: 0; font-size: 18px; }
.contact-person p { margin: 3px 0 0; color: var(--nz-text-soft); font-size: 11px; line-height: 1.9; }
.contact-person p span { color: #999; }
.contact-socials { display: flex; gap: 7px; }
.contact-socials a {
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 1px solid var(--nz-border); border-radius: 10px;
    background: var(--nz-surface-soft); color: #777;
}
.contact-socials a:hover { color: var(--nz-accent-dark); border-color: #d5c5ac; }
.contact-socials svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-socials svg path:last-child { fill: currentColor; stroke: none; }

/* Dark mode */
body.nz-dark {
    --nz-bg: #111111;
    --nz-surface: #1b1b1b;
    --nz-surface-soft: #202020;
    --nz-input: #202020;
    --nz-text: #eceae7;
    --nz-text-soft: #aaa6a0;
    --nz-border: #303030;
    --nz-border-strong: #444;
    --nz-accent: #cda35b;
    --nz-accent-dark: #d8b573;
    --nz-header: #0d0d0d;
    --nz-header-2: #151515;
    --nz-accent-soft: #30281d;
    --nz-shadow: 0 14px 35px rgba(0,0,0,.25);
}
body.nz-dark .site-header { border-bottom-color: #292929; }
body.nz-dark .advanced-search-panel { background: #171717; }
body.nz-dark .entry-content blockquote { background: #24211d; color: #c6c0b6; }
body.nz-dark .entry-content code { background: #2a2a2a; }
body.nz-dark .contact-simple-card:hover, body.nz-dark .contact-socials a:hover { border-color: #5c4d35; }
body.nz-dark .about-license { background: #171717; }
body.nz-dark .go-top { background: rgba(27,27,27,.95); color: #ddd; }
body.nz-dark .category-icon, body.nz-dark .page-kicker-icon, body.nz-dark .contact-card-icon { background: #2d271f; }

.go-top svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; display: none; width: 100%; justify-self: stretch; }
    .main-nav.is-open { display: block; }
    .main-nav ul { justify-content: flex-start; }
    .advanced-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-simple-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .header-inner { min-height: 68px; display: flex; }
    .header-inner .brand { order: 1; }
    .header-actions { order: 2; margin-inline-start: auto; }
    .main-nav {
        position: absolute;
        inset-inline: 10px;
        top: calc(100% + 8px);
        width: auto;
        padding: 8px;
        background: #1f1f1f;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 16px;
        box-shadow: 0 22px 45px rgba(0,0,0,.25);
    }
    .main-nav ul { display: block; }
    .main-nav li + li { border-top: 1px solid rgba(255,255,255,.06); }
    .main-nav a { padding: 11px 12px; border-radius: 10px; font-size: 12px; }
    .header-action { width: 40px; padding: 0; }
    .header-action span:not(.screen-reader-text) { display: none; }
    .advanced-search-main { flex-wrap: wrap; padding: 6px; }
    .advanced-search-icon { margin-inline: 9px 2px; }
    .advanced-search-main > input { min-width: calc(100% - 44px); flex-basis: calc(100% - 44px); order: 1; }
    .advanced-search-icon { order: 0; }
    .advanced-search-filter-toggle { margin-inline-start: auto; order: 2; }
    .advanced-search-submit { order: 3; }
    .advanced-search-panel { padding: 14px; }
    .advanced-search-grid { grid-template-columns: 1fr; }
    .advanced-search-footer { flex-direction: column; align-items: flex-start; }
    .entry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .simple-page-card { padding: 23px 17px; }
    .contact-person { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
    .hero-count { font-size: 13px; }
    .hero-count strong { font-size: 20px; }
    .entry-fields { grid-template-columns: 1fr 1fr; }
    .date-range { grid-template-columns: 1fr; }
    .date-range span { display: none; }
}

/* =========================================================
   Nezamat v1.3 requested layout overrides
   ========================================================= */


/* Consolidated final feature layer */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    color: #202020;
    border-bottom: 1px solid #ebe8e3;
    box-shadow: 0 3px 18px rgba(30,30,30,.035);
}
.header-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}
.site-logo {
    width: auto;
    height: 37px;
    max-width: 92px;
    object-fit: contain;
    display: block;
}
.main-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    display: block;
    padding: 6px 10px;
    color: #555;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
    transition: background .16s ease, color .16s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
    background: #f5f2ed;
    color: #222;
}
.nav-toggle {
    display: none;
    border: 1px solid #e5e1db;
    background: #fff;
    color: #222;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    padding: 0;
}
.nav-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-toggle .close-icon { display: none; }
.nav-toggle[aria-expanded="true"] .hamburger-icon { display: none; }
.nav-toggle[aria-expanded="true"] .close-icon { display: inline; }
.nav-toggle {
    display: none;
    border: 1px solid #e5e1db;
    background: #fff;
    color: #222;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    padding: 0;
}

.nav-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #222;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-toggle .close-icon {
    display: none;
}

.nav-toggle[aria-expanded="true"] .hamburger-icon {
    display: none;
}

.nav-toggle[aria-expanded="true"] .close-icon {
    display: inline;
    stroke: #222;
}

/* Dark mode */
body.nz-dark .nav-toggle {
    background: #222;
    border-color: #444;
    color: #fff;
}

body.nz-dark .nav-toggle svg,
body.nz-dark .nav-toggle[aria-expanded="true"] .close-icon {
    stroke: #fff;
}
nav#primary-navigation {
    text-align: center;
}
.site-main {
    padding-top: 38px;
}
.post-list {
    overflow: hidden;
}
.post-item {
    display: block;
    padding: 22px 25px 24px;
    border-bottom: 1px solid var(--nz-border);
    transition: background .16s ease;
}
.post-item:hover {
    background: #fcfbf9;
}
.post-item:last-child { border-bottom: 0; }
.post-item h2,
.post-item h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.95;
    font-weight: 800;
    letter-spacing: -.15px;
}

.post-excerpt {
    margin: 0;
    color: #6b6b6b;
    font-size: 12.5px;
    line-height: 2.05;
}
.post-card-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e6e2dc;
}
.post-card-field {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 0;
    color: #4e4e4e;
    font-size: 11px;
    line-height: 1.9;
}
.post-card-field + .post-card-field::before {
    content: "·";
    color: #b0aaa2;
    margin-inline-end: 8px;
}
.post-card-field-label {
    color: #7e7b76;
    font-weight: 500;
}
.post-card-field-value {
    font-weight: 800;
}
.post-card-field-link {
    color: #8c6a30;
}
.post-card-category-link.is-invalid,
.entry-category-link.is-invalid {
    color: #c62828 !important;
}

.post-card-field-link:hover {
    text-underline-offset: 3px;
}
.section-note {
    color: #9a968f;
    font-size: 10px;
}

/* Homepage latest-content controls */
.latest-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.latest-filter-form {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1 1 auto;
}
.latest-filter-field {
    min-width: 170px;
}
.latest-filter-field label {
    display: block;
    margin: 0 0 4px;
    color: #777;
    font-size: 10px;
    font-weight: 700;
}
.latest-filter-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--nz-border);
    border-radius: 9px;
    background: var(--nz-surface);
    color: var(--nz-text);
    padding: 0 10px;
    font-size: 11px;
    outline: 0;
}
.latest-filter-submit {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: var(--nz-header);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.latest-filter-submit:hover { background: #111; }
.latest-filter-reset {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 5px;
    color: var(--nz-accent-dark);
    font-size: 10px;
}

/* Pagination */
.pagination {
    padding: 15px 18px;
    border-top: 1px solid var(--nz-border);
    background: var(--nz-surface-soft);
}
.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pagination a,
.pagination span {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--nz-border);
    border-radius: 8px;
    background: var(--nz-surface);
    color: #6d6a66;
    font-size: 10px;
}
.pagination .current {
    background: var(--nz-header);
    border-color: var(--nz-header);
    color: #fff;
}
.pagination a:hover {
    border-color: #d4ccbF;
    color: var(--nz-accent-dark);
}

/* Single-post random links */
.entry-lead {
    margin: -1px 0 12px;
    color: var(--nz-text-soft);
    font-size: 13px;
    line-height: 2.1;
}
.random-posts-panel {
    margin-top: 22px;
    padding: 19px 20px 12px;
}
.random-posts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--nz-border);
}
.random-posts-kicker {
    display: block;
    color: var(--nz-accent-dark);
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 1px;
}
.random-posts-head h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}
.random-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--nz-border);
    border-radius: 9px;
    background: var(--nz-surface-soft);
    color: var(--nz-text);
    font-size: 10px;
    font-weight: 700;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.random-refresh:hover { border-color: var(--nz-border-strong); transform: translateY(-1px); }
.random-refresh:disabled { opacity: .6; cursor: wait; transform: none; }
.random-refresh svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.random-refresh.is-loading svg { animation: nz-spin .75s linear infinite; }
.random-posts-content { transition: opacity .16s ease, transform .16s ease; }
.random-posts-content.is-refreshing { opacity: .35; transform: translateY(3px); }
.random-post-list { display: grid; }
.random-post-link {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--nz-border);
}
.random-post-link:last-child { border-bottom: 0; }
.random-post-title { font-size: 11px; line-height: 1.9; font-weight: 700; }
.random-post-meta { color: #8a8883; font-size: 9px; line-height: 1.8; }
.random-post-link:hover .random-post-title { color: var(--nz-accent-dark); }
.random-post-empty { margin: 12px 0; color: var(--nz-text-soft); font-size: 11px; }
@keyframes nz-spin { to { transform: rotate(360deg); } }

/* Tight mobile navigation: animated open/close instead of display toggling */
@media (max-width: 980px) {
    .header-inner {
        gap: 15px;
        min-height: 58px;
    }
    .nav-toggle {
        display: grid;
        place-items: center;
        margin-inline-start: auto;
        flex: 0 0 auto;
    }
    .main-nav {
        position: absolute;
        inset-inline: 12px;
        top: calc(100% + 7px);
        width: auto;
        display: block;
        padding: 7px;
        background: #fff;
        border: 1px solid #e6e1da;
        border-radius: 14px;
        box-shadow: 0 20px 44px rgba(25,25,25,.13);
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-6px) scale(.985);
        transform-origin: top center;
        transition: max-height .25s ease, opacity .2s ease, transform .25s ease, visibility .25s ease;
    }
    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        max-height: min(70vh, 540px);
        transform: translateY(0) scale(1);
        overflow: auto;
    }
    .main-nav ul {
        display: block;
    }
    .main-nav li + li {
        border-top: 1px solid #f0ede8;
    }
    .main-nav a {
        padding: 10px 11px;
        font-size: 11px;
    }
    .main-nav a:hover,
    .main-nav .current-menu-item > a,
    .main-nav .current-menu-ancestor > a {
        background: #f6f3ee;
    }
    
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 24px), var(--nz-container)); }
    .site-main { padding: 26px 0 55px; }
    .site-logo { height: 33px; max-width: 86px; }
    .post-item { padding: 18px 16px 20px; }
    .post-item h2,
    .post-item h3 { font-size: 15px; line-height: 1.95; }
    .post-excerpt { font-size: 12px; line-height: 2.05; }
    .post-card-fields { gap: 4px 8px; padding-top: 10px; margin-top: 12px; }
    .post-card-field { font-size: 10px; }
    .post-card-field + .post-card-field::before { margin-inline-end: 6px; }
    .latest-toolbar { align-items: stretch; }
    .latest-filter-form { display: grid; grid-template-columns: 1fr 1fr; align-items: end; width: 100%; }
    .latest-filter-field { min-width: 0; }
    .latest-filter-submit { width: 100%; }
    .latest-filter-reset { justify-content: center; }
    .latest-toolbar > .result-count { width: 100%; }
    .random-posts-head { align-items: flex-start; flex-direction: column; }
    .random-refresh { width: 100%; justify-content: center; }
}

@media (max-width: 430px) {
    .latest-filter-form { grid-template-columns: 1fr; }
    .latest-filter-reset { justify-content: flex-start; }
    .post-card-fields { display: grid; grid-template-columns: 1fr 1fr; }
    .post-card-field + .post-card-field::before { content: none; }
}



/* Header theme control */
.theme-toggle {
    border: 1px solid #e5e1db;
    background: #fff;
    color: #454545;
}
.theme-toggle:hover {
    color: var(--nz-accent-dark);
    border-color: #d7cbb9;
    background: #faf8f4;
}

/* Static law links on the homepage */
.static-laws-section {
    margin-top: 30px;
}
.section-subtitle {
    margin: 2px 0 0;
    color: var(--nz-text-soft);
    font-size: 10px;
    line-height: 1.9;
}
.static-laws-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.static-law-link {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid var(--nz-border);
    border-radius: 13px;
    background: var(--nz-surface);
    color: var(--nz-text);
    box-shadow: 0 8px 24px rgba(24,24,24,.035);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.static-law-link:hover {
    transform: translateY(-2px);
    border-color: #d7c9b3;
    box-shadow: 0 14px 32px rgba(24,24,24,.07);
    background: #fffdfa;
}
.static-law-index {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f4eee5;
    color: var(--nz-accent-dark);
    font-size: 9px;
    font-weight: 800;
    direction: ltr;
}
.static-law-title {
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
}
.static-law-arrow {
    color: #aaa39a;
    font-size: 16px;
    transition: transform .18s ease, color .18s ease;
}
.static-law-link:hover .static-law-arrow {
    color: var(--nz-accent-dark);
    transform: translateX(-2px);
}

/* Helpful / not-helpful feedback */
.nezamat-feedback {
    border: 1px solid var(--nz-border);
    background: var(--nz-surface-soft);
    border-radius: 13px;
}
.nezamat-feedback-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding: 9px 10px;
}
.nezamat-feedback-copy {
    min-width: 0;
}
.nezamat-feedback-copy strong,
.nezamat-feedback-copy span {
    display: block;
}
.nezamat-feedback-copy strong {
    font-size: 10px;
    font-weight: 800;
}
.nezamat-feedback-copy span {
    margin-top: 1px;
    color: var(--nz-text-soft);
    font-size: 9px;
    line-height: 1.8;
}
.nezamat-feedback-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}
.feedback-button {
    min-width: 104px;
    min-height: 36px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--nz-border);
    border-radius: 10px;
    background: var(--nz-surface);
    color: #5c5a56;
    font-size: 9px;
    font-weight: 700;
    font-family: inherit;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.feedback-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #cdbb9f;
    color: var(--nz-accent-dark);
    box-shadow: 0 8px 18px rgba(40,32,20,.06);
}
.feedback-button:focus-visible {
    outline: 3px solid rgba(167,123,50,.16);
    outline-offset: 2px;
}
.feedback-button:disabled {
    opacity: .68;
    cursor: wait;
}
.feedback-icon {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #f4efe6;
    color: var(--nz-accent-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.feedback-count {
    min-width: 18px;
    color: #8a8782;
    font-size: 9px;
}
.feedback-button.is-selected {
    border-color: #c8ae83;
    background: #fbf6ec;
    color: var(--nz-accent-dark);
    box-shadow: inset 0 0 0 1px rgba(167,123,50,.08);
}
.feedback-button.is-selected .feedback-icon {
    background: #eadcc3;
    color: #694a18;
}
.nezamat-feedback-entry {
    margin: 40px 40px !important;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nezamat-feedback-entry .nezamat-feedback-copy strong {
    font-size: 13px;
}
.nezamat-feedback-entry .feedback-button {
    min-width: 128px;
    min-height: 42px;
    font-size: 10px;
}
.nezamat-feedback-entry .feedback-icon {
    width: 23px;
    height: 23px;
}
.nezamat-feedback-entry .feedback-count {
    font-size: 10px;
}

/* Make same-site links and emphasis pop inside the single-post content */
.entry-content a.nz-internal-link {
    font-weight: 700;

}


/* Comments */
.comments-area {
    margin-top: 22px;
    overflow: hidden;
}
.comments-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--nz-border);
}
.comments-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--nz-accent-dark);
    font-size: 9px;
    font-weight: 800;
}
.comments-header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.8;
}
.comments-header h2 span {
    color: #99938a;
    font-size: 11px;
    font-weight: 600;
}
.comments-note {
    color: var(--nz-text-soft);
    font-size: 9px;
}
.comment-list-wrap {
    padding: 0 22px;
}
.comment-list {
    padding: 18px 0;
}
.comment-list > .comment {
    margin: 0;
}
.nezamat-comment {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px 0;
    border-bottom: 1px solid var(--nz-border);
}
.nezamat-comment .nezamat-comment {
    margin-top: 14px;
    padding: 13px 0 0;
    border-top: 1px dashed var(--nz-border);
    border-bottom: 0;
}
.comment-avatar {
    flex: 0 0 auto;
}
.comment-avatar .avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: block;
}
.comment-main {
    min-width: 0;
    flex: 1;
}
.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.comment-author {
    font-size: 11px;
    font-weight: 800;
}
.comment-author a {
    color: inherit;
}
.comment-head time {
    flex: 0 0 auto;
    color: #99948d;
    font-size: 9px;
    direction: ltr;
}
.comment-body {
    margin-top: 6px;
    color: #55514b;
    font-size: 11px;
    line-height: 2.05;
}
.comment-body > :last-child {
    margin-bottom: 0;
}
.comment-actions {
    margin-top: 7px;
}
.comment-actions a {
    color: var(--nz-accent-dark);
    font-size: 9px;
    font-weight: 700;
}
.comments-empty {
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 30px 22px 25px;
    border-bottom: 1px solid var(--nz-border);
    text-align: center;
}
.comments-empty-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-bottom: 2px;
    border-radius: 11px;
    background: #f3ece1;
    color: var(--nz-accent-dark);
    font-weight: 800;
}
.comments-empty strong {
    font-size: 11px;
}
.comments-empty span {
    color: var(--nz-text-soft);
    font-size: 9px;
}
.comment-form-wrap {
    padding: 22px;
    background: var(--nz-surface-soft);
}
.comment-form-wrap .comment-respond {
    margin: 0;
}
.comment-form-wrap .comment-reply-title {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.8;
}
.comment-form-wrap .comment-reply-title small {
    font-size: 9px;
    margin-inline-start: 8px;
}
.comment-form-wrap .comment-reply-title small a {
    color: var(--nz-accent-dark);
}
.comment-form-note {
    margin: 0 0 14px;
    color: var(--nz-text-soft);
    font-size: 9px;
    line-height: 1.9;
}
.comment-form {
    margin: 0;
}
.comment-form .comment-form-comment {
    margin: 0 0 12px;
}
.comment-form-fields,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    margin: 0;
}
.comment-form > .comment-form-author,
.comment-form > .comment-form-email,
.comment-form > .comment-form-url {
    display: inline-flex;
    flex-direction: column;
    width: calc(33.333% - 8px);
    vertical-align: top;
    margin-inline-start: 10px;
    margin-bottom: 11px;
}
.comment-form > .comment-form-author {
    margin-inline-start: 0;
}
.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: #625e57;
    font-size: 9px;
    font-weight: 800;
}
.comment-form .required {
    color: #b14d3c;
}
.comment-form .optional {
    color: #a7a29a;
    font-weight: 500;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--nz-border);
    border-radius: 10px;
    background: var(--nz-surface);
    color: var(--nz-text);
    outline: none;
    font-size: 11px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form input {
    height: 42px;
    padding: 0 11px;
}
.comment-form textarea {
    min-height: 145px;
    padding: 11px;
    resize: vertical;
    line-height: 2;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #c5ac83;
    box-shadow: 0 0 0 3px rgba(167,123,50,.08);
}
.comment-form .form-submit {
    margin: 0;
}
.comment-submit {
    min-width: 125px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #866126, #b0833e);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    font-family: inherit;
    box-shadow: 0 10px 22px rgba(125,90,34,.18);
    transition: transform .16s ease, box-shadow .16s ease;
}
.comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(125,90,34,.22);
}
.comment-form-cookies-consent {
    margin: 0 0 12px;
    color: var(--nz-text-soft);
    font-size: 9px;
}
.comment-form-cookies-consent label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}
.comment-form-cookies-consent input {
    width: auto;
    height: auto;
}
.comments-area .comment-navigation,
.comments-area .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.comments-area .comment-navigation {
    padding: 0 0 18px;
}
.comments-area .nav-links a,
.comments-area .nav-links span {
    min-height: 31px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--nz-border);
    border-radius: 8px;
    background: var(--nz-surface);
    color: var(--nz-text-soft);
    font-size: 9px;
}
.comments-area .nav-links .current {
    color: #fff;
    background: var(--nz-header);
    border-color: var(--nz-header);
}

/* Dark mode must come after the v1.3 white header overrides. */
body.nz-dark .site-header {
    background: #101010;
    color: #fff;
    border-bottom-color: #2a2a2a;
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
body.nz-dark .main-nav a {
    color: #7a7875;
}
body.nz-dark .main-nav a:hover,
body.nz-dark .main-nav .current-menu-item > a,
body.nz-dark .main-nav .current-menu-ancestor > a {
    background: #222;
    color: #fff;
}
body.nz-dark .theme-toggle,
body.nz-dark .nav-toggle {
    border-color: #393939;
    background: #181818;
    color: #ddd;
}
body.nz-dark .theme-toggle:hover,
body.nz-dark .nav-toggle:hover {
    background: #222;
}
body.nz-dark .post-item:hover {
    background: #1f1f1f;
}
body.nz-dark .static-law-link:hover {
    background: #202020;
    border-color: #4d4333;
}
body.nz-dark .static-law-index {
    background: #2e281f;
}
body.nz-dark .feedback-icon {
    background: #30291f;
}
body.nz-dark .feedback-button.is-selected {
    background: #2c261e;
    border-color: #665337;
}


body.nz-dark .comment-body {
    color: #c6c1ba;
}
body.nz-dark .comment-form label {
    color: #c7c2bb;
}
body.nz-dark .comments-empty-icon {
    background: #2e281f;
}
body.nz-dark .static-law-link:hover .static-law-arrow,
body.nz-dark .feedback-button:hover:not(:disabled) {
    color: #dfbd7c;
}
body.nz-dark .entry-content blockquote {
    background: #24211d;
}
body.nz-dark .comment-form input,
body.nz-dark .comment-form textarea {
    background: #181818;
}
body.nz-dark .comment-form-wrap {
    background: #171717;
}

/* Mobile */
@media (max-width: 720px) {
    .static-laws-grid {
        grid-template-columns: 1fr;
    }
    .nezamat-feedback-card,
    .nezamat-feedback-entry {
        align-items: stretch;
        flex-direction: column;
    }
    .nezamat-feedback-actions {
        width: 100%;
    }
    .nezamat-feedback-card .feedback-button {
        flex: 1;
        min-width: 0;
    }
    .nezamat-feedback-entry .feedback-button {
        flex: 1;
        min-width: 0;
    }
    .comments-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
    .comment-list-wrap {
        padding: 0 17px;
    }
    .comment-form-wrap {
        padding: 18px;
    }
    .comment-form > .comment-form-author,
    .comment-form > .comment-form-email,
    .comment-form > .comment-form-url {
        display: flex;
        width: 100%;
        margin-inline-start: 0;
    }
}

@media (max-width: 430px) {
    .nezamat-feedback-actions {
        flex-direction: column;
    }
    .feedback-button {
        width: 100%;
    }
}


/* =========================================================
   Nezamat 1.4 employer-requested final layer
   ========================================================= */
:root {
    --nz-font: "IRANSansX", "IRANSans", Tahoma, Arial, sans-serif;
}
html, body, button, input, select, textarea {
    font-family: var(--nz-font);
}
body {
    font-size: 14px;
}
.header-inner {
    min-height: 54px;
    gap: 22px;
}
.site-logo {
    height: 36px;
    max-width: 96px;
}
.main-nav a {
    font-size: 11px;
}
.header-actions {
    margin-inline-start: auto;
}
.nav-toggle {
    display: none !important;
}
.hero-home {
    padding-top: 18px;
    padding-bottom: 24px;
}
.hero-home h1 {
    font-size: 18px;
    margin-bottom: 5px;
}
.hero-count {
    font-size: 16px !important;
}
.hero-count strong {
    font-size: 16px !important;
}
.hero .eyebrow {
    display: none;
}

/* Live search dropdown */
.advanced-search-main {
    position: relative;
}
.live-search-panel {
    position: absolute;
    top: calc(100% + 7px);
    inset-inline: 0;
    z-index: 1200;
    max-height: min(58vh, 420px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--nz-surface);
    border: 1px solid var(--nz-border);
    border-radius: 13px;
    box-shadow: 0 18px 44px rgba(24,24,24,.12);
    text-align: right;
}

.live-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--nz-border);
    transition: background .15s ease;
}
.live-search-result:last-child { border-bottom: 0; }
.live-search-result:hover,
.live-search-result:focus-visible { background: var(--nz-surface-soft); }
.live-search-result-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.live-search-result strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
}
.live-search-result-main small,
.live-search-result-date {
    color: var(--nz-text-soft);
    font-size: 9px;
    line-height: 1.7;
}
.live-search-result-date { flex: 0 0 auto; }
.live-search-empty {
    padding: 14px;
    color: var(--nz-text-soft);
    font-size: 10px;
}
@media (max-width: 720px) {
    .live-search-panel {
        top: calc(100% + 6px);
        max-height: min(62vh, 380px);
        border-radius: 11px;
    }
    .live-search-result { padding: 11px 12px; gap: 10px; }
    .live-search-result strong { font-size: 10.5px; }
    .live-search-result-date { font-size: 8px; }
}
.advanced-search-main .advanced-search-icon {
    z-index: 2;
}

/* Base laws: three horizontal columns, no numbering */
.static-laws-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.static-law-link {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 11px 13px;
}
.static-law-index {
    display: none;
}
.static-law-title {
    font-size: 11px;
}

/* Cards */
.content-surface.post-list {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}
.post-item {
    margin: 0 0 12px;
    border: 1px solid var(--nz-border) !important;
    border-radius: var(--nz-radius) !important;
    background: var(--nz-surface);
    box-shadow: 0 8px 26px rgba(24,24,24,.035);
}
.post-item:last-child {
    margin-bottom: 0;
}
.post-item:hover {
    background: var(--nz-surface);
}
.post-card-fields {
    margin-top: 12px;
    padding-top: 10px;
}
.nezamat-feedback-card {
    margin-top: 10px;
    padding: 6px 0 0;
    border: 0;
    background: transparent;
    justify-content: flex-start;
    gap: 16px;
}
.feedback-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: var(--nz-text-soft);
    font-size: 10px;
}
.feedback-stat strong {
    font-size: 10px;
    font-weight: 700;
}
.feedback-stat b {
    font-size: 11px;
    color: var(--nz-text);
}
.feedback-disagree-stat {
    padding-inline-start: 14px;
    border-inline-start: 1px solid var(--nz-border);
}
.nezamat-feedback-card .feedback-count {
    min-width: 16px;
}

/* Main sort list */
.latest-toolbar {
    background: var(--nz-surface-soft);
    border: 1px solid var(--nz-border);
    border-radius: 12px;
    padding: 9px;
}
.latest-filter-field select,
.latest-filter-submit {
    min-height: 36px;
}
.latest-filter-field {
    min-width: 160px;
}

/* Entry page */
.entry-wrap {
    width: min(1080px, 100%);
}
.entry-card {
    padding: clamp(22px, 4vw, 38px);
}
.entry-title {
    font-size: clamp(17px, 0.45vw, 23px);
    line-height: 1.65;
}
.entry-meta {
    display: none;
}
.entry-tools {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}
.entry-print-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--nz-border);
    border-radius: 9px;
    background: var(--nz-surface-soft);
    color: var(--nz-text);
    font-size: 10px;
    font-weight: 700;
}
.entry-print-button:hover {
    border-color: var(--nz-border-strong);
}
.entry-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 15px;
    border: 1px solid var(--nz-border);
    border-radius: 13px;
    background: var(--nz-surface-soft);
    overflow: hidden;
}
.entry-field {
    min-width: 0;
    padding: 10px 13px;
    border: 0;
    border-inline-start: 1px solid var(--nz-border);
    border-top: 1px solid var(--nz-border);
    background: transparent;
}
.entry-field:nth-child(-n+4) { border-top: 0; }
.entry-field:nth-child(4n+1) { border-inline-start: 0; }
.entry-field-label {
    display: block;
    margin: 0 0 2px;
    color: var(--nz-text-soft);
    font-size: 9px;
    line-height: 1.8;
}
.entry-field-value {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.85;
}
.entry-field-more_info {
    grid-column: 1 / -1;
}
.entry-field-more_info .entry-field-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: 500;
    color: var(--nz-text);
}
.entry-field-link { color: #29743b; }
.entry-toc {
    margin: 0 0 24px;
    padding: 15px 17px;
    border-radius: 13px;
    box-shadow: none;
}
.entry-toc-head {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--nz-border);
    margin-bottom: 8px;
    font-size: 12px;
}
.entry-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}
.entry-toc li {
    counter-increment: toc;
    margin: 4px 0;
    padding-inline-start: 20px;
    position: relative;
}
.entry-toc li::before {
    content: counter(toc) ".";
    position: absolute;
    inset-inline-start: 0;
    color: #9a8a73;
    font-size: 9px;
}
.entry-toc a {
    font-size: 10px;
    color: var(--nz-text-soft);
}
.entry-toc a:hover {
    color: var(--nz-accent-dark);
}
.entry-toc .toc-level-3 { padding-inline-start: 34px; }
.entry-toc .toc-level-4 { padding-inline-start: 48px; }

.nezamat-feedback-entry {
    margin: 16px 0 0;
    padding: 16px;
    border-radius: var(--nz-radius);
    background: var(--nz-surface);
    box-shadow: var(--nz-shadow);
}
.nezamat-feedback-entry .feedback-button {
    min-width: 118px;
}
.feedback-remove {
    min-width: 82px !important;
    background: transparent !important;
}
.feedback-button.is-selected {
    border-color: #c8ae83;
    background: #fbf6ec;
}
.feedback-remove[hidden] {
    display: none !important;
}

/* Comments */
.comments-area {
    margin-top: 14px;
}
.comments-kicker,
.comments-note {
    display: none;
}
.comments-header h2 {
    font-size: 15px;
}
.comments-header h2 span {
    font-size: 10px;
}
.comment-form .comment-form-author,
.comment-form .comment-form-email {
    width: calc(50% - 10px);
}
.comment-form > .comment-form-url {
    display: none !important;
}

/* Related resolutions */
.related-resolutions {
    margin-top: 14px;
    padding: 18px 20px;
}
.related-resolutions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--nz-border);
}
.related-kicker {
    display: block;
    color: var(--nz-accent-dark);
    font-size: 9px;
    font-weight: 800;
}
.related-resolutions-head h2 {
    margin: 1px 0 0;
    font-size: 15px;
}
.related-count {
    color: var(--nz-text-soft);
    font-size: 9px;
}
.related-resolutions-list {
    display: grid;
}
.related-resolution {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--nz-border);
}
.related-resolution:last-child { border-bottom: 0; }
.related-resolution strong {
    font-size: 10px;
}
.related-resolution span {
    color: var(--nz-text-soft);
    font-size: 9px;
    flex: 0 0 auto;
}

/* Random section */
.random-home-section {
    margin-top: 26px;
}
.random-home-section .random-posts-panel {
    margin-top: 0;
}
#nz-random-refresh-home {
    min-width: 94px;
}
.random-posts-panel {
    border-radius: var(--nz-radius);
}

/* Category page search is scoped by hidden cat input. */
.category .archive-toolbar form {
    flex: 1;
}

/* Remove navigation prev/next buttons in print and keep layout clean */
@media print {
    .site-header,
    .site-footer,
    .go-top,
    .entry-tools,
    .nezamat-feedback,
    .comments-area,
    .related-resolutions,
    .random-posts-panel,
    .post-navigation,
    .pagination,
    .featured-image {
        display: none !important;
    }
    .site-main {
        padding: 0 !important;
    }
    .entry-wrap,
    .entry-card {
        width: 100% !important;
        max-width: none !important;
        border: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }
}

/* Keep the menu-toggle strictly mobile if a plugin adds it back. */
@media (max-width: 720px) {
    .nav-toggle {
        display: grid !important;
    }
    .site-logo {
        height: 34px;
        max-width: 88px;
    }
    .static-laws-grid {
        grid-template-columns: 1fr;
    }
    .entry-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .entry-field {
        padding: 9px 10px;
    }
    .entry-field:nth-child(-n+4) {
        border-top: 1px solid var(--nz-border);
    }
    .entry-field:nth-child(-n+2) {
        border-top: 0;
    }
    .entry-field:nth-child(2n+1) {
        border-inline-start: 0;
    }
    .entry-toc .toc-level-3 { padding-inline-start: 24px; }
    .entry-toc .toc-level-4 { padding-inline-start: 34px; }
    .related-resolution {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

/* Keep third-party Persian datepickers above the theme search panel. */
.pd-outer-wrap, .datepicker-plot-area, .jdp-container { z-index: 10050 !important; }

/* v1.5.1 — live search is independent of the filter toggle and works on category/archive pages */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.archive-search-main {
    position: relative;
    flex: 1;
    min-width: 0;
}
.category-live-search .archive-search-main input {
    display: block;
    width: 100%;
}
.category-live-search .live-search-panel {
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    width: 100%;
}

/* Compact, unified metadata panel on single posts. */
.entry-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 12px;
    border-radius: 10px;
    background: var(--nz-surface-soft);
}
.entry-field,
.entry-field:nth-child(-n+4),
.entry-field:nth-child(4n+1) {
    border: 0;
    border-inline-start: 1px solid rgba(0,0,0,.055);
    padding: 7px 10px;
    min-height: 0;
}
.entry-field:first-child {
    border-inline-start: 0;
}
.entry-field-label {
    margin-bottom: 1px;
    font-size: 8px;
    line-height: 1.6;
}
.entry-field-value {
    font-size: 9.5px;
    line-height: 1.7;
}
.entry-field-more_info {
    grid-column: 1 / -1;
    border-inline-start: 0 !important;
    border-top: 1px solid rgba(0,0,0,.055) !important;
}
.entry-field-more_info .entry-field-value {
    font-size: 11.5px;
    line-height: 25px;
}

@media (max-width: 720px) {
    .entry-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 9px;
    }
    .entry-field,
    .entry-field:nth-child(-n+4),
    .entry-field:nth-child(4n+1),
    .entry-field:nth-child(2n+1) {
        border-top: 0;
        border-inline-start: 1px solid rgba(0,0,0,.055);
        padding: 6px 8px;
    }
    .entry-field:nth-child(2n+1) {
        border-inline-start: 0;
    }
    .entry-field-more_info {
        border-inline-start: 0 !important;
        border-top: 1px solid rgba(0,0,0,.055) !important;
    }
    .category-live-search {
        width: 100%;
    }
    .category-live-search .archive-search-main {
        min-width: 0;
    }
    .category-live-search .live-search-panel {
        max-height: 48vh;
    }
}


/* v1.5.2 — homepage live search must open immediately while typing.
   The parent search card previously clipped the absolutely-positioned results panel. */
.advanced-search {
    overflow: visible;
    position: relative;
    z-index: 30;
}
.advanced-search-main {
    position: relative;
    z-index: 31;
}
.advanced-search-main .live-search-panel {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    z-index: 9999;
}
.advanced-search-main .live-search-panel[hidden] {
    display: none;
}

@media (max-width: 720px) {
    .advanced-search {
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    .advanced-search-main {
        width: 100%;
        box-sizing: border-box;
    }
    .advanced-search-main .live-search-panel {
        inset-inline: 0;
        width: 100%;
        max-width: 100%;
        max-height: min(65vh, 430px);
        border-radius: 0 0 12px 12px;
    }
}


button.header-action.theme-toggle {
    margin-top: 0 !important;
}

.live-search-results-list {
    width: 100%;
    direction: rtl;
}

.live-search-result {
    display: block;
    width: 100%;
    padding: 14px 18px;
    text-decoration: none;
    direction: rtl;
    box-sizing: border-box;
}

.live-search-result-title {
    display: block;
    width: 100%;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 500;
    color: #2a2a2a;
}

.live-search-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    width: 100%;
    margin-top: 3px;
    direction: rtl;
}

.live-search-result-field {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    font-size: 10px;
    line-height: 1.6;
    color: #999;
}

.live-search-result-label {
    font-weight: 500;
    color: #888;
}

.live-search-result-value {
    font-weight: 400;
    color: #999;
}

.entry-content a { color: #29743B; !important}
.entry-content a:hover { color: #29743B; !important }


.advanced-search-submit {
    width: 22px !important;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #f7f7f7;
    color: #333;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.advanced-search-submit::before {
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}

.advanced-search-submit:hover {
    background: #eeeeee;
}


input.date-single-input.nz-persian-date {
    border-radius: 10px !important;
}

input.nz-persian-date {
    border-radius: 10px !important;
}


span.static-law-title {
    text-align: center;
}



div#nz-filter-panel {
    border-radius: 0px 0px 18px 18px;
}

section#comments {
    margin: 40px;
}

@media (max-width: 720px) {
    .static-laws-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
        .comment-form .comment-form-author, .comment-form .comment-form-email {
    width: calc(100% - 0px) !important;
}

section#comments {
    margin: 5px !important;
}
}



span.random-post-value {
    font-weight: bold;
}

span.live-search-result-value {
    font-weight: bold;
}

a:hover { 
    color: #29743B; !important;
}

a.random-post-link:hover 
{ color: #29743B; !important; }





span.random-post-title:hover {
    color: #29743B !important;
}

.container.footer-bottom-inner {
    justify-content: center;
}


.entry-field-value.entry-field-more-info-content a {
    color: #29743B
}


/* PDF branding - hidden on normal website */
.pdf-branding {
    display: none;
}

@media print {
    .pdf-branding {
        display: block !important;
        width: 100%;
        text-align: center;
        margin: 0 0 28px;
        padding: 0 0 20px;
        border-bottom: 1px solid #ddd;
    }

    .pdf-branding img {
        display: block;
        width: auto;
        max-width: 180px;
        max-height: 80px;
        margin: 0 auto 10px;
    }

    .pdf-branding a {
        display: block;
        text-decoration: none !important;
    }

    .pdf-branding-name {
        margin-top: 4px;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.6;
        color: #111;
    }

    .pdf-branding-url {
        margin-top: 2px;
        font-size: 10px;
        direction: ltr;
        color: #666;
    }
}

.pdf-branding {
    display: none;
}

@media print {
    .pdf-branding {
        display: block !important;
        width: 100%;
        text-align: right;
        margin: 0 0 24px;
        padding: 0 0 15px;
        border-bottom: 1px solid #ddd;
    }

    .pdf-branding a {
        display: inline-block;
        text-decoration: none !important;
    }

    .pdf-branding img {
        display: block;
        width: auto;
        max-width: 150px;
        max-height: 60px;
        margin: 0 0 6px auto;
    }

    .pdf-branding-name {
        margin-top: 4px;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.6;
        color: #111;
    }

    .pdf-branding-url {
        margin-top: 2px;
        font-size: 10px;
        direction: ltr;
        color: #666;
    }
}


body.nz-dark img.site-logo.site-logo-light {
    display: none;
}

input.nz-persian-date::placeholder {
    font-size: 11px;
}


.breadcrumbs {
    font-size: 12px;
}


input#submit {
    width: 30%;
    margin: 0 auto !important;
}

p.form-submit {
    text-align: center;
}


.advanced-search {
    width: min(900px, 100%);
    margin: 28px auto 0;
    background: var(--nz-surface);
    border: 1px solid var(--nz-border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(30,30,30,.08);
    overflow: hidden;
    text-align: right;
}

.advanced-search-main {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 64px;
    padding: 7px;
}



/* Input */
.advanced-search-main > input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--nz-text);
    padding: 12px 4px;
    font-size: 14px;
    font-family: inherit;
}

.advanced-search-main > input::placeholder {
    color: #999;
}

/* Filter */
.advanced-search-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    margin-left: 4px;
    border: 1px solid var(--nz-border);
    background: var(--nz-input);
    color: var(--nz-text-soft);
    margin: 0 auto !important;
}

.advanced-search-filter-toggle:hover {
    border-color: var(--nz-border-strong);
    color: var(--nz-text);
}

.advanced-search-filter-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Search button — unchanged */
.advanced-search-submit {
    min-width: 44px;
    color: #fff;
    margin-left: 4px;
}

.advanced-search-submit:hover {
    background: #000;
}

/* Filter panel */
.advanced-search-panel {
    border-top: 1px solid var(--nz-border);
    padding: 18px;
    background: var(--nz-surface-soft);
}

.advanced-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.filter-field {
    min-width: 0;
}

.filter-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #666;
}

.filter-field select,
.filter-field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--nz-border);
    border-radius: 10px;
    outline: none;
    background: var(--nz-surface);
    color: var(--nz-text);
    padding: 0 11px;
    font-size: 11px;
}

@media (max-width: 768px) {

    .advanced-search-panel {
        padding: 14px;
        overflow: hidden;
    }

    .advanced-search-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-field {
        width: 100%;
        min-width: 0;
    }

    .filter-field select,
    .filter-field input,
    .date-range input {
        width: 100%;
        min-width: 0;
        height: 44px;
        font-size: 16px !important;
        line-height: 1.4;
        box-sizing: border-box;
    }

    .filter-field select {
        font-size: 16px !important;
    }

    .filter-field > label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .date-range {
        display: flex;
        align-items: center;
        gap: 7px;
        width: 100%;
        min-width: 0;
    }

    .date-range input {
        flex: 1;
        min-width: 0;
    }

    .date-range span {
        flex: 0 0 auto;
        font-size: 11px;
    }

    .advanced-search-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 14px;
    }
}


.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.footer-bottom-inner .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.footer-bottom-inner .site-logo {
    display: block;
    width: auto;
    height: 32px;
    max-width: 140px;
    object-fit: contain;
}

.footer-bottom-inner > span {
    display: inline-block;
    text-align: center;
    line-height: 1.8;
}

/* Mobile */
@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 12px;
        text-align: center;
    }

    .footer-bottom-inner .site-logo {
        height: 28px;
        max-width: 120px;
    }

    .footer-bottom-inner > span {
        font-size: 11px;
        line-height: 1.8;
    }
}


.random-posts-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
}

.random-posts-head > div {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    text-align: right !important;
}

.random-posts-head .random-refresh {
    display: inline-flex !important;
    position: static !important;
    width: auto !important;
    max-width: max-content !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 8px 14px !important;
    white-space: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.random-posts-head .random-refresh svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    margin: 0 !important;
}

/* v1.5.3 — search dropdown must not be clipped */
.advanced-search {
    overflow: visible !important;
}

.advanced-search-main .live-search-panel {
    position: absolute !important;
    inset-inline: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
}

@media (max-width: 720px) {
    .advanced-search-main .live-search-panel {
        width: 100% !important;
        max-width: 100% !important;
    }
}
