/**
 * plugins/themes/dirasat/styles/dirasat.css
 *
 * Distributed under the GNU GPL v3.
 *
 * Dirasat Publishing theme. Loaded after the Default theme stylesheet.
 * Navy bands run edge to edge behind a centred 1060px column; copper carries
 * actions, numbers and accents; white panels carry the reading.
 */

:root {
	--indigo: #1A2A5E; --indigo-2: #2C3F86; --indigo-deep: #0D1738;
	--gold: #E08A3C; --gold-2: #C9742C; --gold-text: #8F4F15; --gold-soft: #FBEEE0;
	--paper: #ffffff; --panel: #ffffff; --mist: #f5f6f8;
	--ink: #4B4F58; --head: #1A2A5E; --muted: #6f7480; --line: #e4e6ec;
	--accent: #1A2A5E; --accent-soft: #eef1fa; --accent-ink: #ffffff; --ochre: #C9742C;
	--focus: #1a4fd6;
	--ill-ink: #2f2e41; --ill-ink2: #3f3d56; --ill-light: #eceef3; --ill-paper: #ffffff;
	--display: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
	--body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--fs: 100%;
	--wrap: 1060px;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0C1430; --panel: #162250; --mist: #111b3f; --gold-soft: #2A2250;
		--gold: #F0A862; --gold-2: #E8954A; --gold-text: #F0A862;
		--ink: #d7dbe8; --head: #ffffff; --muted: #a4abc2; --line: #2a3669;
		--accent: #F0A862; --accent-soft: #223069; --accent-ink: #0D1738;
		--ill-ink: #d7dbe8; --ill-ink2: #b7bdd4; --ill-light: #223069; --ill-paper: #162250;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #0C1430; --panel: #162250; --mist: #111b3f; --gold-soft: #2A2250;
	--gold: #F0A862; --gold-2: #E8954A; --gold-text: #F0A862;
	--ink: #d7dbe8; --head: #ffffff; --muted: #a4abc2; --line: #2a3669;
	--accent: #F0A862; --accent-soft: #223069; --accent-ink: #0D1738;
	--ill-ink: #d7dbe8; --ill-ink2: #b7bdd4; --ill-light: #223069; --ill-paper: #162250;
	color-scheme: dark;
}
:root[data-contrast="high"] {
	--paper: #ffffff; --panel: #ffffff; --mist: #ffffff; --ink: #000000; --head: #000000;
	--muted: #1a1a1a; --line: #000000; --accent: #000000; --accent-soft: #ffffff; --accent-ink: #ffffff;
	--gold: #ffd54a; --gold-2: #ffc400; --gold-text: #7a3f00; --gold-soft: #ffffff;
	--indigo: #000000; --indigo-2: #000000; --indigo-deep: #000000;
	--ochre: #8a5a00; --focus: #0000ff;
	--ill-ink: #000000; --ill-ink2: #1a1a1a; --ill-light: #dddddd; --ill-paper: #ffffff;
	color-scheme: light;
}

/* ---------- base ---------- */
html { font-size: var(--fs); overflow-x: clip; }
html body.dirasat {
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--paper);
	overflow-x: clip;
}
.dirasat *, .dirasat *::before, .dirasat *::after { box-sizing: border-box; }
.dirasat a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dirasat a:hover, .dirasat a:focus { color: var(--accent); text-decoration-thickness: 2px; }
.dirasat :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.dirasat .pkp_structure_page { background: var(--paper); }
.dp-wrap { max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding-inline: 16px; }

/* skip links from core */
.dirasat .cmp_skip_to_content a {
	background: var(--gold); color: var(--indigo); font-weight: 700; border-radius: 4px; z-index: 60;
}

/* ---------- header ---------- */
.dp-head {
	position: sticky; top: 0; z-index: 30;
	background: var(--indigo); border-bottom: 3px solid var(--gold);
}
.dp-bar {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 12px 22px; padding-block: 12px;
}
.dp-brand { min-width: 0; flex: 0 1 auto; }
.dp-brand a { display: block; text-decoration: none; color: #fff; }
.dp-brand img { display: block; height: 58px; width: auto; max-width: min(460px, 70vw); }
.dp-brand .is_text { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; }

.dp-nav { margin-inline-start: auto; }
.dp-nav ul { list-style: none; margin: 0; padding: 0; }
.dp-nav > ul { display: flex; flex-wrap: wrap; gap: 2px; }
.dp-nav > ul > li { position: relative; }
.dp-nav a {
	display: block; padding: 8px 11px; border-radius: 4px;
	color: #fff !important; text-decoration: none !important;
	font-family: var(--body); font-weight: 600; font-size: .9rem; line-height: 1.4; position: relative;
}
.dp-nav > ul > li > a::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
	background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.dp-nav > ul > li > a:hover::after, .dp-nav > ul > li > a:focus-visible::after { transform: scaleX(1); }
.dp-nav a[aria-current="page"] { background: var(--gold); color: var(--indigo) !important; }
.dp-nav a[aria-current="page"]::after { display: none; }
.dp-nav [aria-haspopup]::before {
	content: ""; position: absolute; right: 2px; top: 50%; margin-top: -2px;
	border-top: 4px solid currentColor; border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.dp-nav [aria-haspopup] { padding-right: 16px; }

/* dropdowns (Bootstrap, enabled by the Default theme script above 992px) */
.dirasat .dropdown-menu { display: none; }
.dirasat .dropdown-menu.show { display: block; }
.dp-nav .dropdown-menu, .dp-user .dropdown-menu {
	position: absolute; z-index: 40; min-width: 15rem; margin: 6px 0 0; padding: 6px;
	background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
	box-shadow: 0 16px 36px rgba(12, 1, 37, .28);
}
.dp-nav .dropdown-menu a, .dp-user .dropdown-menu a {
	color: var(--head) !important; font-weight: 600; padding: 9px 12px; border-radius: 6px;
}
.dp-nav .dropdown-menu a:hover, .dp-nav .dropdown-menu a:focus,
.dp-user .dropdown-menu a:hover, .dp-user .dropdown-menu a:focus { background: var(--gold-soft); }
.dp-nav .dropdown-menu a::after { display: none; }

.dp-menu-btn {
	display: none; margin-inline-start: auto;
	font: inherit; font-weight: 700; font-size: .95rem;
	border: 2px solid var(--gold); background: transparent; color: var(--gold);
	border-radius: 4px; padding: 7px 14px; min-height: 40px; cursor: pointer;
}

.dp-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; width: 100%; }
.dp-search { flex: 1 1 200px; max-width: 280px; margin: 0; }
.dp-search input {
	width: 100%; font: inherit; font-size: .92rem; padding: 8px 12px; min-height: 40px;
	border: 1px solid #3a4a8a; border-radius: 4px; background: #22336e; color: #fff;
}
.dp-search input::placeholder { color: #b9c0e0; }
.dp-display { display: flex; gap: 6px; align-items: center; }
.dp-display button {
	font: inherit; font-size: .86rem; font-weight: 700; line-height: 1.2;
	border: 1px solid #3a4a8a; background: #22336e; color: #fff;
	border-radius: 4px; padding: 6px 10px; min-width: 40px; min-height: 36px; cursor: pointer;
}
.dp-display button:hover { border-color: var(--gold); color: var(--gold); }
.dp-display button[aria-pressed="true"] { background: var(--gold); color: var(--indigo); border-color: var(--gold); }

.dp-user { margin-inline-start: auto; }
.dp-user > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dp-user > ul > li { position: relative; }
.dp-user a { color: #dfe3f3 !important; font-size: .9rem; font-weight: 600; text-decoration: none; }
.dp-user > ul > li > a:hover { color: var(--gold) !important; }
.dp-user .task_count {
	display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-inline-start: .3em;
	border-radius: 1em; background: var(--gold); color: var(--indigo); font-size: .78rem; text-align: center;
}
.dp-user ul ul { list-style: none; padding: 0; }
.dp-user .dropdown-menu { right: 0; left: auto; }

/* ---------- page title band (every page except the journal homepage) ---------- */
.dp-pagehead {
	position: relative; isolation: isolate; color: #fff;
	padding-block: 40px 44px;
	background:
		radial-gradient(760px 380px at 86% 10%, rgba(224, 138, 60, .20), transparent 62%),
		radial-gradient(620px 420px at 4% 96%, rgba(70, 100, 210, .26), transparent 60%),
		linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 60%, var(--indigo-2) 100%);
}
.dp-pagehead::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.6px);
	background-size: 26px 26px;
}
.dp-pagehead .dp-eyebrow { color: var(--gold); }
.dp-ph-title {
	font-family: var(--display); font-weight: 800; color: #fff;
	font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.14; letter-spacing: -.015em;
	margin: 10px 0 0; max-width: 30ch; text-wrap: balance;
}
.dp-ph-title::after { content: ""; display: block; width: 72px; height: 4px; background: var(--gold); margin-top: 18px; }

/* The band shows the title; the page's own heading stays for assistive technology */
.dp-has-ph .pkp_structure_main .page > h1:first-of-type,
.dp-has-ph .pkp_structure_main h1.page_title,
.dp-has-ph .pkp_structure_main .page > h2:first-child {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- layout scaffold ---------- */
.dirasat .pkp_structure_content {
	width: auto; max-width: calc(var(--wrap) + 32px); margin: 0 auto;
	padding: 34px 16px 0; float: none;
}
.dirasat.dp-home .pkp_structure_content { padding-top: 0; }
.dirasat .pkp_structure_main,
.dirasat .pkp_structure_main:first-child:last-child {
	float: none; width: auto; margin: 0; padding: 0; min-width: 0;
}
.dirasat .pkp_structure_main::before,
.dirasat .pkp_structure_main::after { display: none; }
.dirasat .pkp_structure_content.has_sidebar {
	display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start;
}
.dirasat .pkp_structure_sidebar { float: none; width: auto; padding-top: 6px; }

/* ---------- typography inside the content column ---------- */
.dirasat .pkp_structure_main { color: var(--ink); font-size: 1.0625rem; }
.dirasat .pkp_structure_main h1,
.dirasat .pkp_structure_main h2,
.dirasat .pkp_structure_main h3,
.dirasat .pkp_structure_main h4 { font-family: var(--display); color: var(--head); text-wrap: balance; }
.dirasat .pkp_structure_main h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; }
.dirasat .pkp_structure_main h2 { font-weight: 700; font-size: clamp(1.4rem, 2.7vw, 1.9rem); line-height: 1.22; margin: 48px 0 14px; }
.dirasat .pkp_structure_main h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin: 28px 0 8px; }
.dirasat .pkp_structure_main p,
.dirasat .pkp_structure_main ul,
.dirasat .pkp_structure_main ol { line-height: 1.7; margin: 0 0 14px; }
.dirasat .pkp_structure_main .page { max-width: none; }
.dirasat .pkp_structure_main .page > :not(h1):not(.cmp_breadcrumbs):first-child { margin-top: 0; }
.dirasat .cmp_breadcrumbs { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.dirasat .cmp_breadcrumbs ol { margin: 0; }
.dirasat .cmp_breadcrumbs a { color: var(--muted); }
.dirasat .cmp_breadcrumbs .current { color: var(--head); font-weight: 600; }
.dirasat .pkp_structure_main table { border-collapse: collapse; }
.dirasat .pkp_structure_main hr { border: 0; border-top: 1px solid var(--line); }

.dp-eyebrow {
	font-family: var(--display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
	font-weight: 800; color: var(--gold-text); margin: 0;
}

/* ---------- buttons ---------- */
.dp-btn, .dirasat .pkp_structure_main .dp-btn {
	display: inline-block; padding: 14px 26px; border-radius: 4px;
	font-family: var(--display); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
	text-decoration: none; line-height: 1.3; min-height: 48px; border: 2px solid transparent;
	transition: transform .16s ease, background .16s ease, color .16s ease;
}
.dirasat .pkp_structure_main .dp-btn-primary { background: var(--gold); color: var(--indigo); border-color: var(--gold); }
.dirasat .pkp_structure_main .dp-btn-primary:hover, .dirasat .pkp_structure_main .dp-btn-primary:focus { background: var(--gold-2); color: var(--indigo); transform: translateY(-2px); }
.dirasat .pkp_structure_main .dp-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .65); background: transparent; }
.dirasat .pkp_structure_main .dp-btn-ghost:hover, .dirasat .pkp_structure_main .dp-btn-ghost:focus { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- homepage hero ---------- */
.dirasat .dp-hero {
	position: relative; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 34px 52px; align-items: center; padding-block: 62px 76px;
}
.dirasat .dp-hero.dp-hero-noart { grid-template-columns: minmax(0, 1fr); }
.dirasat .dp-hero::before {
	content: ""; position: absolute; inset: 0 -100vw; z-index: -2;
	background:
		radial-gradient(900px 460px at 78% 18%, rgba(255, 192, 61, .22), transparent 62%),
		radial-gradient(700px 520px at 8% 92%, rgba(122, 95, 255, .28), transparent 60%),
		linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 55%, var(--indigo-2) 100%);
}
.dirasat .dp-hero::after {
	content: ""; position: absolute; inset: 0 -100vw; z-index: -1; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.6px);
	background-size: 26px 26px;
}
.dirasat .dp-hero .dp-eyebrow { color: var(--gold); }
.dirasat .pkp_structure_main .dp-hero h1 {
	color: #fff; margin: 10px 0 14px; font-weight: 800;
	font-size: clamp(2.1rem, 4.8vw, 3.3rem); line-height: 1.12; letter-spacing: -.015em;
}
.dirasat .pkp_structure_main .dp-tag { font-size: 1.22rem; color: #ded9f5; margin: 0 0 28px; max-width: 44ch; line-height: 1.6; }
.dp-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.dirasat .pkp_structure_main .dp-status-row { margin: 22px 0 0; }
.dp-status {
	display: inline-flex; align-items: center; gap: 9px;
	border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 16px;
	font-size: .92rem; line-height: 1.5; color: #ded9f5; background: rgba(255, 255, 255, .07);
}
.dp-status::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--gold); }

.dp-hero-media { position: relative; min-width: 0; padding-bottom: 28px; }
.dp-hero-art { margin: 0; min-width: 0; display: grid; color: var(--gold);
	--ill-ink: #ffffff; --ill-ink2: #d9d4f2; --ill-light: #3a4f9a; --ill-paper: #22336e; }
.dp-hero-art svg { width: 100%; height: auto; display: block; max-width: 460px; margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(12, 1, 37, .45)); }
.dp-slide { grid-area: 1 / 1; align-self: center; opacity: 0; transform: scale(1.02);
	transition: opacity .85s ease, transform 7s linear; will-change: opacity, transform; }
.dp-slide.on { opacity: 1; transform: scale(1.075); }
.dp-artnav { position: absolute; right: 4px; bottom: -6px; display: flex; align-items: center; gap: 6px; }
.dp-artdot { width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; }
.dp-artdot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); transition: background .16s ease, border-color .16s ease; }
.dp-artdot[aria-current="true"]::before { background: var(--gold); border-color: var(--gold); }
.dp-artdot:hover::before { border-color: var(--gold); }
.dp-artctl {
	display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 6px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .34); color: #fff;
	border-radius: 999px; padding: 8px 15px; min-height: 38px;
	font-family: var(--body); font-weight: 600; font-size: .82rem; cursor: pointer;
	transition: border-color .16s ease, color .16s ease;
}
.dp-artctl:hover { border-color: var(--gold); color: var(--gold); }
.dp-artctl svg { width: 11px; height: 11px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) {
	.dp-slide, .dp-slide.on { transform: none; }
}

/* Remove the Default theme's separators between homepage blocks */
.dirasat .page_index_journal > section:not(.dp-hero),
.dirasat .page_index_journal > .additional_content,
.dirasat .page_index_journal > .homepage_image { padding: 0; border: 0; margin: 0; }
.dirasat .page_index_journal > .homepage_about,
.dirasat .page_index_journal > .current_issue,
.dirasat .page_index_journal > .cmp_announcements { margin-top: 48px; }

/* ---------- content blocks for the homepage and static pages ---------- */
.dirasat .pkp_structure_main .dp-prose { max-width: 72ch; }
.dirasat .pkp_structure_main .dp-lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }

.dp-stats {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
	box-shadow: 0 20px 44px rgba(12, 1, 37, .14); margin: -38px 0 0;
}
.dp-stats > div { padding: 26px 20px; text-align: center; border-inline-end: 1px solid var(--line); }
.dp-stats > div:last-child { border-inline-end: 0; }
.dp-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--head); line-height: 1; font-variant-numeric: tabular-nums; }
.dp-stats span { display: block; margin-top: 8px; font-size: .92rem; line-height: 1.45; color: var(--muted); }

.dp-facts {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
	border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; margin: 28px 0 0;
}
.dp-facts > div { padding: 20px 22px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); min-width: 0; }
.dp-facts > div:nth-child(3n) { border-inline-end: 0; }
.dp-facts > div:nth-last-child(-n+3) { border-bottom: 0; }
.dp-facts dt { font-family: var(--display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 800; margin: 0 0 6px; }
.dp-facts dd { margin: 0; font-weight: 600; color: var(--head); font-size: .98rem; line-height: 1.55; }

.dp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 20px; margin: 22px 0 0; clear: both; }
.dp-card {
	background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
	padding: 26px 26px 28px; min-width: 0; position: relative; overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}
.dp-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.dp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(12, 1, 37, .13); }
.dp-card:hover::after { transform: scaleX(1); }
.dirasat .pkp_structure_main .dp-card h3,
.dirasat .pkp_structure_main .dp-card h2 { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.35; }
/* Static pages: section headings sit directly under the page's h1 */
.dirasat .pkp_structure_main .page_static > h2 { font-size: 1.15rem; line-height: 1.35; margin: 28px 0 8px; }
.dirasat .pkp_structure_main .page_static > h2.dp-h2 { font-size: clamp(1.4rem, 2.7vw, 1.9rem); line-height: 1.22; margin: 48px 0 14px; }
.dirasat .pkp_structure_main .dp-card p { margin: 0; color: var(--muted); }
.dp-card .dp-icon { width: 56px; height: 56px; display: block; margin: 0 0 16px; }
.dp-card.dp-theme { background: var(--indigo); border-color: var(--indigo); color: #fff; --accent: var(--gold); --ochre: #ffffff; }
.dirasat .pkp_structure_main .dp-card.dp-theme h3 { color: var(--gold); }
.dirasat .pkp_structure_main .dp-card.dp-theme p { color: #d7d2f0; }
.dp-card.dp-theme::after { transform: scaleX(1); }

.dp-fband { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 56px 0 0; border-radius: 10px; overflow: hidden; clear: both; }
.dp-fband > div { padding: 42px 40px; }
.dp-fband .dp-left { background: var(--indigo); color: #fff; }
.dp-fband .dp-right { background: var(--gold); color: var(--indigo); }
.dirasat .pkp_structure_main .dp-fband h2 { margin: 0 0 6px; color: inherit; font-size: 1.6rem; }
.dirasat .pkp_structure_main .dp-fband p { margin: 0 0 18px; color: inherit; opacity: .92; }
.dirasat .pkp_structure_main .dp-fband ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.dp-fband li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 600; line-height: 1.55; }
.dp-fband li svg { width: 22px; height: 22px; margin-top: 2px; }
.dp-fband .dp-left li svg { color: var(--gold); }
.dp-fband .dp-right li svg { color: var(--indigo); }

.dp-ill-side { float: inline-end; width: min(42%, 400px); margin: 0 0 18px 30px; color: var(--gold-2); }
.dp-ill-side svg { width: 100%; height: auto; display: block; }
.dirasat .pkp_structure_main .dp-cards,
.dirasat .pkp_structure_main .dp-fband,
.dirasat .pkp_structure_main h2 { clear: both; }

.dirasat .pkp_structure_main ul.dp-checks { padding-inline-start: 0; margin: 12px 0 0; list-style: none; }
.dirasat .pkp_structure_main ul.dp-checks li { margin: 9px 0; padding-inline-start: 30px; position: relative; }
.dirasat .pkp_structure_main ul.dp-checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 11px; height: 11px; border-radius: 2px; background: var(--gold); }

.dp-note { background: var(--gold-soft); border-inline-start: 4px solid var(--gold); border-radius: 8px; padding: 18px 22px; margin-top: 22px; max-width: 72ch; color: var(--head); }

/* reveal on scroll (only when the script runs and motion is allowed) */
.dp-js-reveal .dp-reveal { opacity: 0; transform: translateY(18px); }
.dp-js-reveal .dp-reveal.dp-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22, .8, .3, 1); }

/* ---------- footer ---------- */
.dp-foot {
	margin-top: 70px; padding-block: 44px 28px;
	background: var(--indigo); border-top: 4px solid var(--gold);
	color: #c6c1e4; font-size: .95rem; line-height: 1.6;
}
.dp-fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.dp-foot p { margin: 5px 0; }
.dp-foot b, .dp-foot strong { color: #fff; font-family: var(--display); }
.dp-foot a { color: var(--gold); }
.dp-foot a:hover, .dp-foot a:focus { color: #fff; }
.dp-footmark { width: 40px; height: 40px; display: block; margin-bottom: 4px; }
.dp-flinks ul { list-style: none; margin: 0 0 6px; padding: 0; }
.dp-footmenu { display: flex; flex-wrap: wrap; gap: 2px 0; }
.dp-footmenu li { display: contents; }
.dp-footmenu a { display: inline-block; margin: 2px 0; }
.dp-footmenu > li:not(:last-child) > a::after, .dp-footmenu ul > li:not(:last-child) > a::after { content: "\00b7"; color: #8f97c4; margin-inline: 7px; display: inline-block; text-decoration: none; }
.dp-footmenu ul { display: contents; }
.dp-copy { color: #c6c1e4; }
.dp-fbrand { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.dp-fbrand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .6; display: block; }
.dp-fbrand a:hover img, .dp-fbrand a:focus img { opacity: .9; }

/* ---------- back to top ---------- */
#dpToTop {
	position: fixed; bottom: 20px; right: 20px; z-index: 25;
	width: 46px; height: 46px; border-radius: 6px; border: 0;
	background: var(--gold); color: var(--indigo); cursor: pointer;
	display: grid; place-items: center; box-shadow: 0 10px 26px rgba(12, 1, 37, .3);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
#dpToTop.show { opacity: 1; visibility: visible; transform: none; }
#dpToTop svg { width: 22px; height: 22px; }

/* ---------- dark theme and high contrast for core pages ---------- */
:root[data-theme="dark"] .dirasat .pkp_structure_main,
:root[data-contrast="high"] .dirasat .pkp_structure_main { color: var(--ink); }
:root[data-theme="dark"] .dirasat .pkp_structure_main .obj_article_summary,
:root[data-theme="dark"] .dirasat .pkp_structure_main .cmp_form fieldset,
:root[data-theme="dark"] .dirasat .pkp_structure_main .pkp_block { border-color: var(--line); }
:root[data-theme="dark"] .dirasat input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="dark"] .dirasat select,
:root[data-theme="dark"] .dirasat textarea { background: var(--mist); color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]):not([data-contrast="high"]) .dirasat input:not([type="checkbox"]):not([type="radio"]),
	:root:not([data-theme="light"]):not([data-contrast="high"]) .dirasat select,
	:root:not([data-theme="light"]):not([data-contrast="high"]) .dirasat textarea { background: var(--mist); color: var(--ink); border-color: var(--line); }
}
/* Notices (for example "not accepting submissions", "no results") follow the theme in every mode */
.dirasat .pkp_structure_main .cmp_notification {
	background: var(--mist); color: var(--ink);
	border: 1px solid var(--line); border-inline-start: 5px solid var(--gold-text);
}
.dirasat .dp-search input { background: #22336e; color: #fff; border-color: #3a4a8a; }
:root[data-contrast="high"] .dp-head,
:root[data-contrast="high"] .dp-foot { border-color: #ffffff; }
:root[data-contrast="high"] .dp-hero-art { --ill-ink: #ffffff; --ill-ink2: #ffffff; --ill-light: #555555; --ill-paper: #000000; }
:root[data-contrast="high"] .dp-search input,
:root[data-contrast="high"] .dp-display button { background: #000; border-color: #fff; }
:root[data-contrast="high"] .dp-card { border-width: 2px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.dp-js-reveal .dp-reveal { opacity: 1; transform: none; }
	.dirasat *, .dirasat *::before, .dirasat *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
	.dp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dp-facts > div:nth-child(3n) { border-inline-end: 1px solid var(--line); }
	.dp-facts > div:nth-child(2n) { border-inline-end: 0; }
	.dp-facts > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
	.dp-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 991px) {
	/* On small screens the header scrolls away, and the menu, search and display settings fold behind the Menu button */
	.dp-head { position: relative; }
	.dp-menu-btn { display: inline-block; }
	.dp-nav { display: none; width: 100%; margin-inline-start: 0; order: 3; }
	.dp-nav.open { display: block; }
	.dp-tools { display: none; }
	.dp-head.dp-open .dp-tools { display: flex; }
	.dp-nav > ul { flex-direction: column; }
	.dp-nav ul ul { padding-inline-start: 14px; }
	.dp-nav [aria-haspopup]::before { display: none; }
	.dp-tools { order: 4; }
	.dirasat .pkp_structure_content.has_sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
	.dirasat .dp-hero { grid-template-columns: minmax(0, 1fr); padding-block: 40px 58px; }
	.dp-hero-media { order: -1; }
	.dp-hero-art svg { max-width: 320px; }
	.dp-artnav { right: 50%; transform: translateX(50%); bottom: -10px; }
	.dp-fband { grid-template-columns: 1fr; }
	.dp-fband > div { padding: 32px 26px; }
	.dp-ill-side { float: none; width: min(100%, 360px); margin: 0 auto 18px; }
	.dp-brand img { height: 48px; }
}
@media (max-width: 620px) {
	.dp-facts { grid-template-columns: 1fr; }
	.dp-facts > div, .dp-facts > div:nth-child(3n), .dp-facts > div:nth-child(2n) { border-inline-end: 0; border-bottom: 1px solid var(--line); }
	.dp-facts > div:last-child { border-bottom: 0; }
	.dp-stats { margin-top: -20px; grid-template-columns: 1fr 1fr; }
	.dp-stats > div:nth-child(2n) { border-inline-end: 0; }
	.dp-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.dp-search { max-width: none; }
	.dp-user { margin-inline-start: 0; width: 100%; }
}
