/* ==========================================================================
   Generic page header (used by contact & laws templates)
   ========================================================================== */

.page-header {
	background: var(--color-card);
	border-bottom: 1px solid var(--color-border);
	padding-block: var(--space-5);
}

.page-header__title {
	margin-bottom: 0;
}

/* ==========================================================================
   Pagination (post-type archives, یادداشت‌ها)
   ========================================================================== */

.pagination,
.navigation.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	margin-top: var(--space-5);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding-inline: var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: var(--fs-small);
	color: var(--color-text);
}

.pagination .page-numbers:hover {
	border-color: var(--color-gold);
	color: var(--color-gold-text);
}

.pagination .page-numbers.current {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: #fff;
}

.pagination .page-numbers.dots {
	border: none;
}

.filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-bottom: var(--space-4);
}

.filter-pill {
	display: inline-block;
	padding: var(--space-1) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: var(--fs-small);
	color: var(--color-text);
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filter-pill:hover {
	border-color: var(--color-gold);
	color: var(--color-gold-text);
}

.filter-pill.is-active {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: #fff;
}

/* ==========================================================================
   3-column listing layout (یادداشت‌ها، آرا، اسناد، قوانین، آموزش)
   Sidebars stay narrow and out of the way; center column carries the
   real content and is capped for a comfortable reading measure.
   ========================================================================== */

.layout-3col {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 220px;
	gap: var(--space-5);
	align-items: start;
	padding-block: var(--space-5) var(--space-7);
}

.layout-3col__main {
	min-width: 0;
	max-width: 700px;
	margin-inline: auto;
	order: 2;
}

.side-column {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	box-shadow: var(--shadow-xs);
	position: sticky;
	top: var(--space-4);
}

.side-column--education { order: 1; }
.side-column--related { order: 1; }
.side-column--tools { order: 3; }

/* ابزارها gets a light gold-tinted treatment — it's the one sidebar that
   leads toward a consultation request, so it earns a touch more presence
   than the purely informational widgets around it. */
.side-column--tools {
	background: linear-gradient(160deg, var(--color-card) 0%, rgba(47, 92, 147, 0.07) 100%);
	border-color: rgba(47, 92, 147, 0.3);
}

.side-column--tools .side-column__title {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.side-column--tools .side-column__title::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-gold);
	flex-shrink: 0;
}

.side-column--tools .quick-access-list a {
	transition: gap var(--transition-fast), color var(--transition-fast);
}

.side-column--tools .quick-access-list a:hover {
	gap: var(--space-3);
}

.layout-3col__side {
	order: 3;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.layout-3col__side--start {
	order: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.side-column__title {
	font-size: var(--fs-h3);
	margin-bottom: var(--space-3);
}

.side-column__list {
	margin-bottom: var(--space-3);
}

.side-column__item {
	border-bottom: 1px solid var(--color-border);
}

.side-column__item:last-child {
	border-bottom: 0;
}

.side-column__item a {
	display: block;
	padding-block: var(--space-2);
	font-size: var(--fs-small);
	line-height: 1.6;
}

.side-column__item a:hover {
	color: var(--color-gold-text);
}

.side-column__more {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-small);
	color: var(--color-gold);
	font-weight: 500;
}

@media (max-width: 960px) {
	.layout-3col {
		grid-template-columns: 1fr;
	}

	.layout-3col__main {
		max-width: 100%;
		order: 1;
	}

	.side-column {
		position: static;
	}

	.side-column--education { order: 2; }
	.side-column--related { order: 2; }
	.side-column--tools { order: 3; }

	.layout-3col__side--start {
		order: 2;
	}

	.layout-3col__side {
		order: 3;
	}
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-hero {
	background: var(--color-card);
}

.about-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: var(--space-5);
	align-items: center;
	padding-block: var(--space-6);
}

.about-hero__media {
	order: 1;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lift);
}

.about-hero__image,
.about-hero__image--placeholder {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
}

.about-hero__content {
	order: 2;
}

.about-hero__subtitle {
	color: var(--color-gold-text);
	font-weight: 500;
	margin-bottom: var(--space-3);
}

.about-content__inner {
	max-width: 780px;
	padding-block: var(--space-6);
	text-align: justify;
	text-align-last: right;
}

.about-content__inner p {
	text-align: justify;
	text-align-last: right;
}

@media (max-width: 860px) {
	.about-hero__inner {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-section__grid {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	max-width: 720px;
	margin-inline: auto;
}

.contact-card,
.contact-form-wrapper {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
	width: 100%;
	box-shadow: var(--shadow-xs);
}

.contact-card__list {
	margin-bottom: var(--space-4);
}

.contact-card .footer-contact-list li {
	color: var(--color-text);
}

.contact-form__field {
	margin-bottom: var(--space-3);
}

.contact-form__field label {
	display: block;
	margin-bottom: var(--space-2);
	font-size: var(--fs-small);
	color: var(--color-text-muted);
}

.contact-form__field input,
.contact-form__field textarea {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
	font-family: inherit;
	font-size: var(--fs-body);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(47, 92, 147, 0.15);
}

.contact-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-5);
	background: var(--color-gold);
	color: #fff;
	border-radius: var(--radius-sm);
	font-weight: 600;
	box-shadow: var(--shadow-xs);
	transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.button-primary:hover {
	background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold) 60%, var(--color-gold-dark));
	color: #fff;
	box-shadow: var(--shadow-gold);
	transform: translateY(-2px);
}

.button-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-5);
	background: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-weight: 500;
	transition: border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.button-secondary:hover {
	border-color: var(--color-gold);
	color: var(--color-gold-text);
	transform: translateY(-2px);
}

/* ==========================================================================
   Single templates: posts, documents, laws, opinions, education
   ========================================================================== */

.single-article__header {
	background: var(--color-card);
	border-bottom: 1px solid var(--color-border);
	padding-block: var(--space-5);
}

.single-article__title {
	margin-bottom: var(--space-2);
}

.single-article__meta {
	color: var(--color-text-muted);
	font-size: var(--fs-small);
	margin: 0;
}

.single-document__header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb {
	margin-bottom: var(--space-3);
}

.breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-caption);
	color: var(--color-text-muted);
}

.breadcrumb__item:not(:last-child)::after {
	content: '/';
	margin-inline-start: var(--space-2);
	color: var(--color-border);
}

.breadcrumb__item a:hover {
	color: var(--color-gold-text);
}

.breadcrumb__item span[aria-current] {
	color: var(--color-text);
}

/* ==========================================================================
   Single header heading row (title + share/print/download icons)
   ========================================================================== */

.page-header__eyebrow {
	margin: 0 0 var(--space-1);
	font-size: var(--fs-caption);
	font-weight: 700;
	color: var(--color-gold-text);
}

.page-header__description {
	max-width: 760px;
	margin-top: var(--space-2);
	color: var(--color-text-muted);
}

.single-article__heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
}

.single-article__action.is-saved {
	color: var(--color-gold-text);
	background: rgba(47, 92, 147, .08);
	border-color: rgba(47, 92, 147, .16);
}

.single-article__action.is-saved:hover {
	background: rgba(47, 92, 147, .12);
}

.single-article__actions {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-shrink: 0;
}

/* ==========================================================================
   دسترسی سریع sidebar widget
   ========================================================================== */

.quick-access-list li {
	border-bottom: 1px solid var(--color-border);
}

.quick-access-list li:last-child {
	border-bottom: 0;
}

.quick-access-list a,
.quick-access-list button {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	width: 100%;
	padding-block: var(--space-2);
	font-size: var(--fs-small);
	color: var(--color-text);
	text-align: start;
	background: none;
	border: 0;
	cursor: pointer;
}

.quick-access-list a:hover,
.quick-access-list button:hover {
	color: var(--color-gold-text);
}

.quick-access-list .icon {
	color: var(--color-gold);
}

.single-article__media {
	margin-block: var(--space-5);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lift);
}

.single-article__image {
	width: 100%;
}

.single-article__content {
	max-width: 780px;
	padding-block: var(--space-5) var(--space-7);
	line-height: var(--lh-body);
	text-align: justify;
	text-align-last: right;
}

.single-article__content p,
.single-article__content li {
	text-align: justify;
	text-align-last: right;
}

.single-article__content > * + * {
	margin-top: var(--space-3);
}

.education-resources {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Education chip meta (file/video/text badge)
   ========================================================================== */

.chip-card__meta {
	display: flex;
	gap: var(--space-2);
}

.chip-card__type {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--fs-caption);
	color: var(--color-gold);
}


.notice {
	padding: var(--space-3);
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-4);
	font-size: var(--fs-small);
}

.notice--success {
	background: rgba(16, 185, 129, 0.1);
	color: var(--color-success);
	border: 1px solid var(--color-success);
}

.notice--error {
	background: rgba(239, 68, 68, 0.1);
	color: var(--color-danger);
	border: 1px solid var(--color-danger);
}

/* ==========================================================================
   ماشین‌حساب ارث (inheritance calculator)
   ========================================================================== */

.inheritance-form__section {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	margin: 0 0 var(--space-4);
}

.inheritance-form__section legend {
	padding: 0 var(--space-2);
	font-weight: 600;
	color: var(--color-primary);
}

.inheritance-form__hint {
	font-size: var(--fs-small);
	color: var(--color-text-muted);
	margin: var(--space-3) 0 var(--space-2);
}

.inheritance-form__radio-row,
.inheritance-form__checkbox-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.inheritance-form__radio-row label,
.inheritance-form__checkbox-row label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-small);
}

.inheritance-form__number-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--space-3);
}

.inheritance-form__number-row label {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	font-size: var(--fs-small);
	color: var(--color-text-muted);
}

.inheritance-form__number-row input[type='number'] {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
	font-family: inherit;
	font-size: var(--fs-body);
}

.inheritance-form__number-row input[type='number']:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(47, 92, 147, 0.15);
}

.inheritance-result {
	margin-top: var(--space-5);
	padding: var(--space-4);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.inheritance-result__table {
	margin-bottom: var(--space-3);
}

.inheritance-result__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-3);
	padding-block: var(--space-2);
	border-bottom: 1px solid var(--color-border);
}

.inheritance-result__row:last-child {
	border-bottom: 0;
}

.inheritance-result__label {
	font-size: var(--fs-small);
	min-width: 0;
	overflow-wrap: break-word;
}

.inheritance-result__value {
	font-weight: 700;
	color: var(--color-primary);
	flex-shrink: 0;
}

.inheritance-result__notice {
	font-size: var(--fs-small);
}

.inheritance-result__disclaimer {
	font-size: var(--fs-caption);
	color: var(--color-text-muted);
	margin-top: var(--space-3);
	margin-bottom: 0;
}

.inheritance-form__scope {
	margin-top: var(--space-6);
	padding-top: var(--space-4);
	border-top: 1px solid var(--color-border);
}

.inheritance-form__scope h2 {
	font-size: var(--fs-h3);
}

.inheritance-form__scope ul {
	list-style: disc;
	padding-inline-start: var(--space-5);
}

.inheritance-form__scope li {
	font-size: var(--fs-small);
	color: var(--color-text-muted);
	margin-bottom: var(--space-2);
}

/* ==========================================================================
   Court locator tool (page-court-locator.php) — subject-matter wizard
   ========================================================================== */

.court-locator__steps {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-4);
}

.court-locator__steps-item {
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-full);
	border: 1px solid var(--color-border);
	font-size: var(--fs-caption);
	color: var(--color-text-muted);
	background: var(--color-card);
}

.court-locator__steps-item.is-active {
	border-color: var(--color-gold);
	color: var(--color-gold-text);
	font-weight: 600;
	background: rgba(47, 92, 147, 0.08);
}

.court-locator__step {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	margin: 0 0 var(--space-4);
	background: var(--color-card);
}

.court-locator__question {
	font-weight: 600;
	font-size: var(--fs-body);
	color: var(--color-text);
	padding: 0;
	margin-bottom: var(--space-3);
}

.court-locator__radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.court-locator__radio-row label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-small);
	cursor: pointer;
}

.court-locator__hint {
	margin-top: var(--space-3);
	padding: var(--space-2) var(--space-3);
	background: rgba(47, 92, 147, 0.08);
	border-inline-start: 3px solid var(--color-gold);
	border-radius: var(--radius-sm);
	font-size: var(--fs-small);
	color: var(--color-text);
}

.court-locator__continue {
	margin-top: var(--space-4);
}

.court-locator__controls {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-bottom: var(--space-3);
}

.court-locator__select-label {
	font-size: var(--fs-small);
	font-weight: 600;
	color: var(--color-text);
}

.court-locator__select {
	max-width: 320px;
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-card);
	color: var(--color-text);
	font-family: inherit;
	font-size: var(--fs-body);
}

.court-locator__map {
	width: 100%;
	height: 420px;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	margin-bottom: var(--space-4);
	overflow: hidden;
	direction: ltr;
}

.court-locator__result {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-4);
	box-shadow: var(--shadow-card);
}

.court-locator__result h2 {
	font-size: var(--fs-h3);
	margin-bottom: var(--space-2);
}

.court-locator__result p {
	font-size: var(--fs-small);
	color: var(--color-text-muted);
	margin-bottom: var(--space-1);
}

.court-locator__restart {
	margin-top: var(--space-3);
}

.court-locator__warning {
	margin-top: var(--space-3);
	padding: var(--space-2) var(--space-3);
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid var(--color-warning);
	border-radius: var(--radius-sm);
	color: var(--color-text) !important;
}

/* ==========================================================================
   نقشه تعاملی مناطق ۲۲‌گانه تهران (template-parts/tools/tehran-district-
   map.php + assets/js/tehran-district-map.js) — a self-contained tool
   embedded in page-court-locator.php, complementary to the wizard above.
   Colors here are the delivered map project's own palette (warm cream/
   ink, not the site's navy/gold), kept as-is since they were deliberately
   chosen for this specific map and are namespaced under .td-map so they
   never leak into the rest of the site.
   ========================================================================== */

.td-map-tool {
	margin-top: var(--space-6);
	padding-top: var(--space-6);
	border-top: 1px solid var(--color-border);
}

.td-map-tool__intro {
	margin-bottom: var(--space-4);
}

.td-map-tool__intro p {
	color: var(--color-text-muted);
}

.td-map {
	display: flex;
	direction: ltr;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: #fafaf8;
	box-shadow: 0 2px 16px rgba(60, 48, 36, 0.07), 0 0 0 1px rgba(60, 48, 36, 0.05);
}

.td-map__canvas {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4);
}

.td-map__svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
}

.td-map__district {
	stroke: #ffffff;
	stroke-width: 1.5;
	stroke-linejoin: round;
	cursor: pointer;
	transition: fill 0.18s ease;
}

.td-map__label {
	fill: #ffffff;
	fill-opacity: 0.92;
	pointer-events: none;
}

.td-map__panel {
	width: 280px;
	flex-shrink: 0;
	background: #ffffff;
	border-inline-start: 1px solid #e4e0d8;
	direction: rtl;
	font-family: 'Vazirmatn', system-ui, sans-serif;
	overflow-y: auto;
}

.td-map__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 260px;
	padding: var(--space-5) var(--space-4);
}

.td-map__empty p {
	font-size: 0.875rem;
	color: #b0a89e;
	text-align: center;
	line-height: 1.8;
	margin: 0;
}

.td-map__panel-header {
	padding: var(--space-4) var(--space-4) var(--space-3);
	border-bottom: 1px solid #ede9e3;
}

.td-map__district-name {
	font-size: 1.05rem;
	font-weight: 600;
	color: #2a2622;
	line-height: 1.4;
}

.td-map__district-number {
	font-size: 0.72rem;
	color: #9a9288;
	margin-top: 0.2rem;
}

.td-map__panel-body {
	padding: var(--space-3) var(--space-4);
}

.td-map__section-label {
	font-size: 0.65rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #b0a89e;
	margin-bottom: 0.35rem;
}

.td-map__section-value {
	font-size: 0.9rem;
	font-weight: 600;
	color: #2a2622;
	line-height: 1.35;
}

.td-map__section-value--null {
	font-size: 0.72rem;
	font-weight: 400;
	color: #c4bcb4;
}

.td-map__section-code {
	font-size: 0.75rem;
	color: #7a7068;
	margin-top: 0.15rem;
}

.td-map__divider {
	height: 1px;
	background: #f0ede8;
	margin: 1rem 0;
}

@media (max-width: 760px) {
	.td-map {
		flex-direction: column;
	}

	.td-map__panel {
		width: 100%;
		border-inline-start: 0;
		border-top: 1px solid #e4e0d8;
	}
}

/* ==========================================================================
   Verdict sheet — single نمونه رای page, shaped after the reference
   "قالب رای" PDF: a centered "paper" card holding the case-detail
   table, the privacy notice, then the numbered sections.
   ========================================================================== */

.verdict-sheet__container {
	max-width: 860px;
	padding-block: var(--space-5) var(--space-7);
}

.verdict-sheet__paper {
	background: var(--color-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	padding: var(--space-5);
}

@media (min-width: 640px) {
	.verdict-sheet__paper {
		padding: var(--space-6);
	}
}

.verdict-sheet__tagline {
	font-size: var(--fs-caption);
	letter-spacing: var(--tracking-wide);
	color: var(--color-gold-text);
	font-weight: 600;
	margin-bottom: var(--space-4);
}

/* Case-detail table — label/value pairs, like the meta box in the PDF. */

.verdict-table {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: var(--space-5);
}

.verdict-table__row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	grid-column: span 2;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--color-border);
}

.verdict-table__row:last-child {
	border-bottom: 0;
}

.verdict-table__row:nth-child(odd) {
	background: var(--color-bg);
}

.verdict-table__label {
	font-weight: 600;
	color: var(--color-text-muted);
	font-size: var(--fs-small);
}

.verdict-table__value {
	margin: 0;
	color: var(--color-text);
	font-weight: 500;
}

@media (max-width: 900px) {
	.verdict-table {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.verdict-table__row {
		grid-column: span 2;
	}
}

@media (max-width: 560px) {
	.verdict-table {
		grid-template-columns: 1fr;
	}

	.verdict-table__row {
		grid-column: span 1;
		grid-template-columns: 1fr;
		gap: var(--space-1);
	}
}

/* Privacy notice box. */

.verdict-privacy-notice {
	background: rgba(47, 92, 147, 0.06);
	border: 1px solid var(--color-gold-light);
	margin-bottom: var(--space-5);
}

.verdict-privacy-notice__title {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-weight: 700;
	color: var(--color-gold-text);
	margin-bottom: var(--space-1);
}

.verdict-privacy-notice__title .icon {
	width: 16px;
	height: 16px;
	color: var(--color-gold);
}

/* Numbered body sections. */

.verdict-sheet__body {
	line-height: var(--lh-body);
	text-align: justify;
	text-align-last: right;
}

.verdict-section__body,
.verdict-section__body p,
.verdict-section__body li {
	text-align: justify;
	text-align-last: right;
}

.verdict-section {
	padding-top: var(--space-5);
	border-top: 1px solid var(--color-border);
}

.verdict-section:first-child {
	padding-top: 0;
	border-top: 0;
}

.verdict-section__title {
	font-size: var(--fs-h3);
	margin-bottom: var(--space-3);
}

.verdict-section__subtitle {
	font-size: var(--fs-h4);
	color: var(--color-gold-text);
	margin-top: var(--space-4);
	margin-bottom: var(--space-2);
}

.verdict-section__body > * + * {
	margin-top: var(--space-3);
}

.verdict-section__body--excerpt {
	background: var(--color-bg);
	border-radius: var(--radius-md);
	padding: var(--space-4);
}

/* Embedded PDF viewer — every page of the ruling rendered onto
   <canvas> by PDF.js (assets/js/pdf-viewer.js), inside a scrollable
   container we own. `overscroll-behavior: contain` is what actually
   stops scrolling the viewer from also scrolling the site once you
   hit the top/bottom of the PDF — the key piece that makes "scroll
   the ruling, not the page" work reliably, including on touch. */

.verdict-pdf__viewer {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-bg);
}

.verdict-pdf__toolbar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 11px;
	background: rgba(255,255,255,.98);
	border-bottom: 1px solid var(--color-border);
	box-shadow: 0 3px 14px rgba(17,24,39,.06);
	position: relative;
	z-index: 5;
}

.verdict-pdf__toolbar::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(196,154,74,.28), transparent);
	pointer-events: none;
}

.verdict-pdf__zoom-in,
.verdict-pdf__zoom-out,
.verdict-pdf__tool,
.verdict-pdf__tool-clear,
.verdict-pdf__undo,
.verdict-pdf__fullscreen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.verdict-pdf__zoom-in,
.verdict-pdf__zoom-out {
	font-size: 1.15rem;
	line-height: 1;
	border-color: var(--color-border);
	background: var(--color-bg);
}

.verdict-pdf__zoom-in:hover,
.verdict-pdf__zoom-out:hover,
.verdict-pdf__tool:hover,
.verdict-pdf__tool-clear:hover,
.verdict-pdf__undo:hover,
.verdict-pdf__fullscreen:hover {
	background: var(--color-bg);
	border-color: var(--color-border);
	color: var(--color-text);
	transform: translateY(-1px);
}

.verdict-pdf__zoom-level {
	min-width: 46px;
	text-align: center;
	font-size: var(--fs-caption);
	font-weight: 700;
	color: var(--color-text-muted);
}

.verdict-pdf__page-indicator {
	margin-inline-start: auto;
	padding-inline: 8px;
	font-size: var(--fs-caption);
	font-weight: 600;
	color: var(--color-text-muted);
	white-space: nowrap;
}

.verdict-pdf__toolbar-sep {
	width: 1px;
	height: 24px;
	background: var(--color-border);
	margin-inline: 3px;
}

.verdict-pdf__tool .icon,
.verdict-pdf__tool-clear .icon,
.verdict-pdf__undo .icon,
.verdict-pdf__fullscreen .icon {
	width: 18px;
	height: 18px;
	background-color: currentColor;
}

.verdict-pdf__tool.is-active {
	background: rgba(47, 92, 147, .10);
	border-color: rgba(47, 92, 147, .18);
	color: var(--color-gold-text);
	box-shadow: inset 0 0 0 1px rgba(47, 92, 147, .04);
}

.verdict-pdf__tool.is-active .icon {
	background-color: currentColor;
}

.verdict-pdf__tool-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
}

.verdict-pdf__color-input {
	width: 30px;
	height: 30px;
	padding: 2px;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: var(--color-card);
	cursor: pointer;
}

.verdict-pdf__color-input::-webkit-color-swatch-wrapper {
	padding: 0;
}

.verdict-pdf__color-input::-webkit-color-swatch {
	border: 0;
	border-radius: 50%;
}

.verdict-pdf__thickness-input {
	width: 86px;
	accent-color: var(--color-gold);
	cursor: pointer;
}

.verdict-pdf__fullscreen {
	margin-inline-start: 0;
}

.verdict-pdf__annotation-note {
	margin: 0;
	padding: 7px 12px;
	font-size: 11px;
	line-height: 1.8;
	color: var(--color-text-muted);
	background: #fbfcfd;
	border-bottom: 1px solid var(--color-border);
}

.verdict-pdf__scroll {
	height: 80vh;
	min-height: 480px;
	max-height: 1050px;
	overflow-y: auto;
	overflow-x: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	display: flex;
	justify-content: center;
	padding: var(--space-4);
	background: #eef1f5;
}

.verdict-pdf__status {
	margin: auto;
	color: var(--color-text-muted);
	font-size: var(--fs-small);
}

.verdict-pdf__pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.verdict-pdf__page-wrap {
	position: relative;
	box-shadow: 0 5px 22px rgba(17,24,39,.12);
	background: #fff;
}

.verdict-pdf__page {
	display: block;
}

.verdict-pdf__annotation {
	position: absolute;
	inset: 0;
	display: block;
	pointer-events: none;
}

.verdict-pdf__viewer.is-drawing .verdict-pdf__annotation {
	pointer-events: auto;
	cursor: crosshair;
	touch-action: none;
}

.verdict-pdf__annotation-live {
	position: absolute;
	inset: 0;
	display: block;
	pointer-events: none;
}

@media (max-width: 640px) {
	.verdict-pdf__toolbar {
		gap: 4px;
		padding: 7px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.verdict-pdf__zoom-in,
	.verdict-pdf__zoom-out,
	.verdict-pdf__tool,
	.verdict-pdf__tool-clear,
	.verdict-pdf__undo,
	.verdict-pdf__fullscreen {
		width: 40px;
		height: 40px;
		flex: 0 0 40px;
	}

	.verdict-pdf__page-indicator {
		margin-inline-start: 0;
	}

	.verdict-pdf__toolbar-sep {
		flex: 0 0 1px;
	}

	.verdict-pdf__scroll {
		height: 70vh;
		min-height: 400px;
		padding: var(--space-2);
	}
}

.verdict-pdf__viewer:fullscreen {
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
}

.verdict-pdf__viewer:fullscreen .verdict-pdf__scroll {
	flex: 1;
	height: auto;
	max-height: none;
}

.verdict-pdf__viewer:-webkit-full-screen {
	display: flex;
	flex-direction: column;
	background: var(--color-bg);
}

.verdict-pdf__viewer:-webkit-full-screen .verdict-pdf__scroll {
	flex: 1;
	height: auto;
	max-height: none;
}

/* Print / "دانلود PDF" — hide site chrome so the printed output is just
   the verdict sheet itself, matching the reference PDF page. */

@media print {
	.site-header,
	.site-footer,
	.breadcrumb,
	.single-article__actions,
	.layout-3col__side {
		display: none !important;
	}

	.verdict-sheet__paper {
		border: 0;
		box-shadow: none;
		padding: 0;
	}
}

/* Legal utility calculators */
.tool-calculator{max-width:900px;padding-bottom:4rem}
.tool-calculator__card{background:var(--color-surface,#fff);border:1px solid var(--color-border,#e5e7eb);border-radius:20px;padding:clamp(1.25rem,3vw,2.25rem);box-shadow:0 10px 30px rgba(10,35,64,.06)}
.tool-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;align-items:end;margin:1.5rem 0}
.tool-form label{display:grid;gap:.5rem;font-weight:700;font-size:.92rem}
.tool-form input{width:100%;min-height:48px;border:1px solid var(--color-border,#d9dee5);border-radius:12px;padding:.75rem 1rem;background:#fff;font:inherit}
.tool-form .button-primary{min-height:48px}
.tool-result{margin-top:1rem;padding:1rem 1.1rem;border-radius:12px;background:#eef5fb;border:1px solid #d7e5f2;font-weight:800;color:#0b3156}
.tool-note{margin:1rem 0 0;color:#667085;font-size:.88rem;line-height:1.9}
@media (max-width:760px){.tool-form{grid-template-columns:1fr}.tool-calculator__card{border-radius:16px}}


/* V22 — refined PDF reader controls */
.verdict-pdf__undo {
	color: var(--color-text-muted);
}

.verdict-pdf__undo:focus-visible,
.verdict-pdf__tool:focus-visible,
.verdict-pdf__tool-clear:focus-visible,
.verdict-pdf__fullscreen:focus-visible,
.verdict-pdf__zoom-in:focus-visible,
.verdict-pdf__zoom-out:focus-visible {
	outline: 2px solid rgba(47,92,147,.28);
	outline-offset: 2px;
}

.verdict-pdf__viewer.is-drawing .verdict-pdf__annotation {
	cursor: crosshair;
}


/* ==========================================================================
   V23 — About / Education visual system
   ========================================================================== */
.about-hero-pro{position:relative;min-height:420px;display:flex;align-items:center;overflow:hidden;background:#102a43;color:#fff}
.about-hero-pro__image{position:absolute;inset:0;background:url('../images/about-legal.jpg') center/cover no-repeat;filter:saturate(.8)}
.about-hero-pro__overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,24,39,.94) 0%,rgba(8,24,39,.68) 48%,rgba(8,24,39,.18) 100%)}
.about-hero-pro__inner{position:relative;z-index:1;width:100%;padding-block:var(--space-8)}
.about-hero-pro__content{max-width:620px}.about-hero-pro .eyebrow,.education-archive-hero .eyebrow{color:var(--color-gold);font-weight:700;margin-bottom:var(--space-2)}
.about-hero-pro h1{font-size:clamp(2rem,4vw,3.4rem);margin:0 0 var(--space-3);color:#fff}.about-hero-pro p:last-child{font-size:1.15rem;color:rgba(255,255,255,.86);max-width:520px}
.about-story{background:var(--color-bg)}.about-story__grid{display:grid;grid-template-columns:170px minmax(0,820px);gap:var(--space-7);justify-content:center;padding-block:var(--space-8)}
.about-story__rail{border-inline-start:2px solid var(--color-gold);padding-inline-start:var(--space-4);height:max-content;position:sticky;top:100px;display:flex;flex-direction:column;gap:var(--space-2)}
.about-story__mark{font-size:3.2rem;font-weight:800;color:var(--color-primary);line-height:1}.about-story__rail-title{font-weight:700;color:var(--color-text-muted)}
.about-story__content{font-size:1.02rem;line-height:2.15}.about-intro{font-size:1.1rem}.about-story__content p{margin-bottom:var(--space-3);text-align:justify;text-align-last:right}
.about-story__section{display:grid;grid-template-columns:64px 1fr;gap:var(--space-4);padding-block:var(--space-6);border-top:1px solid var(--color-border);margin-top:var(--space-5)}
.about-story__number{font-size:.78rem;font-weight:800;color:var(--color-gold);padding-top:7px;letter-spacing:.08em}.about-story__section h2{font-size:1.35rem;margin-bottom:var(--space-3);color:var(--color-primary)}
.about-closing{margin-top:var(--space-5);padding:var(--space-5);background:linear-gradient(135deg,rgba(47,92,147,.08),rgba(194,148,58,.09));border:1px solid var(--color-border);border-radius:var(--radius-lg)}.about-closing strong{display:block;color:var(--color-primary);font-size:1.1rem}
.education-archive-hero{background:linear-gradient(135deg,#102a43,#183b5b);color:#fff}.education-archive-hero__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);padding-block:var(--space-7)}.education-archive-hero h1{color:#fff;font-size:clamp(2rem,4vw,3rem);margin-bottom:var(--space-2)}.education-archive-hero p:not(.eyebrow){color:rgba(255,255,255,.8);font-size:1.05rem}.education-archive-hero__icon{width:120px;height:120px;flex:0 0 120px;border:1px solid rgba(255,255,255,.16);border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.06)}.education-archive-hero__icon img{width:72px;height:72px}
.education-archive-body{padding-block:var(--space-7)}.education-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-5)}
.education-card-pro{overflow:hidden;background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);transition:transform var(--transition-base),box-shadow var(--transition-base),border-color var(--transition-base)}.education-card-pro:hover{transform:translateY(-5px);box-shadow:var(--shadow-card);border-color:rgba(194,148,58,.5)}
.education-card-pro__media{display:block;aspect-ratio:16/9;background:#eef3f7;overflow:hidden}.education-card-pro__media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.education-card-pro:hover .education-card-pro__media img{transform:scale(1.035)}.education-card-pro__placeholder{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,rgba(47,92,147,.09),rgba(194,148,58,.12))}.education-card-pro__placeholder img{width:74px;height:74px}
.education-card-pro__body{padding:var(--space-4)}.education-card-pro__top{display:flex;justify-content:space-between;gap:var(--space-2);font-size:var(--fs-caption);color:var(--color-text-muted);margin-bottom:var(--space-3)}.education-card-pro__top span{color:var(--color-gold-text);font-weight:700}.education-card-pro h2{font-size:1.08rem;line-height:1.65;margin-bottom:var(--space-2)}.education-card-pro h2 a:hover{color:var(--color-gold-text)}.education-card-pro__body p{font-size:var(--fs-small);color:var(--color-text-muted);line-height:1.8;margin-bottom:var(--space-4)}.education-card-pro__footer{display:flex;justify-content:space-between;align-items:center;padding-top:var(--space-3);border-top:1px solid var(--color-border);font-size:var(--fs-small);font-weight:600;color:var(--color-primary)}.education-card-pro__footer .icon{width:17px;height:17px;background:var(--color-gold)}
.education-single-pro__content{background:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:clamp(22px,4vw,48px);box-shadow:var(--shadow-xs)}.education-single-pro__content p{line-height:2.15}
@media (max-width:900px){.about-story__grid{grid-template-columns:1fr}.about-story__rail{position:static;display:none}.education-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.about-hero-pro{min-height:360px}.about-hero-pro__overlay{background:linear-gradient(180deg,rgba(8,24,39,.82),rgba(8,24,39,.72))}.about-story__grid{padding-block:var(--space-6)}.about-story__section{grid-template-columns:1fr;gap:var(--space-1)}.education-archive-grid{grid-template-columns:1fr}.education-archive-hero__icon{width:82px;height:82px;flex-basis:82px}.education-archive-hero__icon img{width:52px;height:52px}}

/* V24 — PDF fullscreen control is icon-only; never render a text label. */
.verdict-pdf__fullscreen .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.verdict-pdf__fullscreen{width:38px!important;min-width:38px!important;padding:0!important;gap:0!important}

/* V26 — Homepage education: same visual language as the dedicated archive,
   presented as four image-led cards. */
.education-home{padding-block:clamp(28px,5vw,56px)}
.education-home__heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.education-home__intro{max-width:720px}
.education-home__eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--color-gold-text);font-size:.82rem;font-weight:800;margin-bottom:8px}
.education-home__eyebrow::before{content:"";display:block;width:28px;height:2px;background:var(--color-gold)}
.education-home__intro .section__title{margin:0 0 8px;text-align:right}
.education-home__intro p{margin:0;color:var(--color-text-muted);font-size:.95rem;line-height:1.9}
.education-home__all{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;color:var(--color-primary);font-weight:700;font-size:.9rem;padding:9px 0}
.education-home__all .icon{width:17px;height:17px;color:var(--color-gold-text)}
.education-home__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.education-card-pro--home{position:relative;min-width:0}
.education-card-pro--home .education-card-pro__media{position:relative;aspect-ratio:16/10}
.education-card-pro__badge{position:absolute;inset-inline-end:12px;bottom:12px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--color-primary);font-size:.72rem;font-weight:800;box-shadow:0 4px 14px rgba(8,24,39,.12);backdrop-filter:blur(6px)}
.education-card-pro--home .education-card-pro__body{padding:16px}
.education-card-pro--home .education-card-pro__top{margin-bottom:10px;font-size:.72rem}
.education-card-pro--home h3{font-size:1rem;line-height:1.7;margin:0 0 7px}
.education-card-pro--home .education-card-pro__body p{font-size:.8rem;line-height:1.8;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:46px}
.education-card-pro--home .education-card-pro__footer{padding-top:11px;font-size:.78rem}
.education-card-pro__arrow{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(194,148,58,.12);color:var(--color-gold-text);transition:transform var(--transition-base),background var(--transition-base)}
.education-card-pro__arrow .icon{width:14px;height:14px}
.education-card-pro--home:hover .education-card-pro__arrow{transform:translateX(-3px);background:rgba(194,148,58,.2)}
@media (max-width:1050px){.education-home__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.education-home{padding-block:24px}.education-home__heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:20px}.education-home__intro .section__title{font-size:1.45rem}.education-home__grid{grid-template-columns:1fr;gap:14px}.education-card-pro--home .education-card-pro__media{aspect-ratio:16/9}}

/* V27 — remove the old education eyebrow; title now carries its icon. */
.education-home__eyebrow{display:none!important}
