/**
 * Ferman Timeline (Tool 4) — a restrained, memorial-toned chronology.
 */

:root {
	--ft-ink: #20262a;
	--ft-ink-soft: #56605f;
	--ft-paper: #f2efe9;
	--ft-paper-deep: #e8e3d9;
	--ft-white: #fbf9f5;
	--ft-ember: #8a4b3d;
	--ft-ember-soft: #b07567;
	--ft-line: #d7d1c5;
	--ft-line-soft: #e4ded2;
	--ft-shadow: 0 24px 70px rgba(32, 38, 42, .12);
}

.ft-scope,
.ft-scope * {
	box-sizing: border-box;
}

.yazidis-fermans-page {
	background: var(--ft-paper);
}

.yazidis-fermans-page .site-content,
.yazidis-fermans-page .content-area,
.yazidis-fermans-page .site-main {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.yazidis-fermans-page .widget-area,
.yazidis-fermans-page .table-of-contents,
.yazidis-fermans-page .post-toc {
	display: none !important;
}

.ft-main {
	overflow: hidden;
	background:
		radial-gradient(circle at 88% 6%, rgba(138, 75, 61, .06), transparent 24%),
		linear-gradient(180deg, #f6f3ed 0, var(--ft-paper) 42%, #f4f1ea 100%);
	color: var(--ft-ink);
}

.ft-shell {
	width: min(100%, 1080px);
	margin: 0 auto;
	padding: 0 30px 90px;
}

[hidden] {
	display: none !important;
}

.ft-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 66px;
	font-size: .73rem;
	font-weight: 700;
	color: #77817d;
}

.ft-breadcrumbs a {
	color: var(--ft-ink-soft);
	text-decoration: none;
}

.ft-breadcrumbs a:hover {
	color: var(--ft-ember);
}

.ft-breadcrumbs span[aria-hidden="true"] {
	color: #b9b2a6;
}

.ft-overline {
	margin: 0 0 12px;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .13em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--ft-ember);
}

/* ---------------------------------------------------------------- Hero */

.ft-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 62px 60px 58px;
	border-radius: 24px;
	background: var(--ft-ink);
	box-shadow: var(--ft-shadow);
	color: #fff;
}

.ft-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(var(--ft-ember), rgba(138, 75, 61, 0));
}

.ft-kicker {
	margin: 0 0 18px;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ft-ember-soft);
}

.ft-hero h1 {
	max-width: 760px;
	margin: 0;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: clamp(2.6rem, 5vw, 4.6rem);
	font-weight: 500;
	letter-spacing: -.04em;
	line-height: 1;
	color: #fff;
}

.ft-hero-sub {
	margin: 14px 0 0;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: clamp(1.2rem, 2.2vw, 1.75rem);
	font-style: italic;
	color: var(--ft-ember-soft);
}

.ft-hero-lede {
	max-width: 730px;
	margin: 26px 0 0;
	font-size: 1.02rem;
	line-height: 1.78;
	color: #ccd3d1;
}

.ft-hero-lede strong {
	color: #fff;
}

/* ---------------------------------------------------------------- Scope note */

.ft-scope-note {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	margin-top: 26px;
	padding: 22px 26px;
	border: 1px solid var(--ft-line);
	border-left: 3px solid var(--ft-ember);
	border-radius: 0 14px 14px 0;
	background: var(--ft-white);
}

.ft-scope-mark {
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--ft-ember);
	box-shadow: 0 0 0 4px rgba(138, 75, 61, .12);
}

.ft-scope-note p {
	margin: 0;
	font-size: .84rem;
	line-height: 1.7;
	color: #45504d;
}

.ft-scope-links {
	margin-top: 10px !important;
	font-size: .78rem !important;
	color: var(--ft-ink-soft) !important;
}

.ft-scope-links a {
	color: var(--ft-ember);
	font-weight: 700;
	text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- Era nav */

.ft-timeline-wrap {
	margin-top: 56px;
}

.ft-eranav {
	position: sticky;
	top: 0;
	z-index: 6;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 -30px 6px;
	padding: 14px 30px;
	background: linear-gradient(var(--ft-paper) 72%, rgba(242, 239, 233, 0));
}

.ft-era-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border: 1px solid var(--ft-line);
	border-radius: 999px;
	background: var(--ft-white);
	font: 800 .72rem/1 var(--wikipress-font-ui);
	color: var(--ft-ink-soft);
	text-decoration: none;
	transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.ft-era-chip span {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ft-paper-deep);
	font-size: .62rem;
	color: var(--ft-ink-soft);
}

.ft-era-chip:hover {
	border-color: var(--ft-ember);
	color: var(--ft-ember);
}

.ft-era-chip.is-active {
	background: var(--ft-ink);
	border-color: var(--ft-ink);
	color: #fff;
}

.ft-era-chip.is-active span {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.ft-live-status {
	margin: 4px 0 0;
	font-size: .72rem;
	font-weight: 700;
	color: #8a938f;
}

/* ---------------------------------------------------------------- Timeline */

.ft-timeline {
	position: relative;
	margin-top: 20px;
	padding-left: 42px;
}

.ft-timeline::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 14px;
	bottom: 14px;
	width: 2px;
	background: var(--ft-line);
}

.ft-era {
	position: relative;
	margin-top: 44px;
}

.ft-era:first-child {
	margin-top: 0;
}

.ft-era-head {
	position: relative;
	margin-bottom: 26px;
}

.ft-era-head::before {
	content: "";
	position: absolute;
	left: -37px;
	top: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ft-ink);
	box-shadow: 0 0 0 5px var(--ft-paper);
}

.ft-era-span {
	margin: 0 0 6px;
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ft-ember);
}

.ft-era-head h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 500;
	letter-spacing: -.025em;
	line-height: 1.1;
	color: var(--ft-ink);
}

.ft-era-blurb {
	max-width: 620px;
	margin: 8px 0 0;
	font-size: .82rem;
	line-height: 1.6;
	color: var(--ft-ink-soft);
}

.ft-event {
	position: relative;
	padding: 0 0 34px;
	scroll-margin-top: 80px;
}

.ft-event-marker {
	position: absolute;
	left: -37px;
	top: 5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--ft-ember);
	background: var(--ft-white);
	box-shadow: 0 0 0 5px var(--ft-paper);
	transition: background .16s ease, transform .16s ease;
}

.ft-event-body {
	padding: 22px 24px;
	border: 1px solid var(--ft-line);
	border-radius: 14px;
	background: rgba(255, 253, 248, .7);
	transition: border-color .16s ease, box-shadow .16s ease;
}

.ft-event:hover .ft-event-body {
	border-color: #c7bdad;
	box-shadow: 0 14px 34px rgba(32, 38, 42, .06);
}

.ft-event:hover .ft-event-marker {
	transform: scale(1.15);
}

.ft-event:target .ft-event-body {
	border-color: var(--ft-ember);
	box-shadow: 0 0 0 3px rgba(138, 75, 61, .12);
}

.ft-event:target .ft-event-marker {
	background: var(--ft-ember);
}

.ft-event-date {
	margin: 0;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ft-ember);
}

.ft-event-title {
	margin: 8px 0 0;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: var(--ft-ink);
}

.ft-anchor {
	margin-left: 6px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--ft-line);
	text-decoration: none;
	opacity: 0;
	transition: opacity .16s ease, color .16s ease;
}

.ft-event:hover .ft-anchor,
.ft-event:focus-within .ft-anchor,
.ft-event:target .ft-anchor {
	opacity: 1;
	color: var(--ft-ember);
}

.ft-event-meta {
	margin: 8px 0 0;
	font-size: .74rem;
	line-height: 1.5;
	color: var(--ft-ink-soft);
}

.ft-event-para {
	max-width: 700px;
	margin: 14px 0 0;
	font-size: .9rem;
	line-height: 1.78;
	color: #37403f;
}

.ft-toll {
	margin-top: 18px;
	padding: 14px 18px;
	border-left: 3px solid var(--ft-ember);
	border-radius: 0 10px 10px 0;
	background: var(--ft-white);
}

.ft-toll-label {
	margin: 0;
	font-size: .6rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ft-ember);
}

.ft-toll-value {
	margin: 6px 0 0;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ft-ink);
}

.ft-toll-note {
	margin: 7px 0 0;
	font-size: .68rem;
	line-height: 1.55;
	color: var(--ft-ink-soft);
}

.ft-event-sources,
.ft-event-related {
	margin: 14px 0 0;
	font-size: .74rem;
	line-height: 1.7;
	color: var(--ft-ink-soft);
}

.ft-event-sources > span,
.ft-event-related > span {
	margin-right: 7px;
	font-size: .58rem;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #8a938f;
}

.ft-event-sources a,
.ft-event-related a {
	color: var(--ft-ember);
	font-weight: 700;
	text-decoration: none;
	text-underline-offset: 3px;
}

.ft-event-sources a:hover,
.ft-event-related a:hover {
	text-decoration: underline;
}

.ft-no-results {
	margin-top: 24px;
	padding: 32px;
	border: 1px dashed #c0b6a6;
	border-radius: 14px;
	text-align: center;
	background: rgba(255, 255, 255, .4);
}

.ft-no-results strong {
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: 1.25rem;
}

.ft-no-results p {
	margin: 6px 0 0;
	font-size: .82rem;
	color: var(--ft-ink-soft);
}

/* ---------------------------------------------------------------- 72 fermans note */

.ft-note {
	margin-top: 84px;
	padding: clamp(34px, 5vw, 62px);
	border-radius: 24px;
	background: var(--ft-ink);
	color: #fff;
}

.ft-note .ft-overline {
	color: var(--ft-ember-soft);
}

.ft-note h2 {
	margin: 0;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: clamp(1.7rem, 3vw, 2.6rem);
	font-weight: 500;
	letter-spacing: -.03em;
	line-height: 1.1;
	color: #fff;
}

.ft-note-intro > p:last-child {
	max-width: 760px;
	margin: 22px 0 0;
	font-size: .96rem;
	line-height: 1.75;
	color: #ccd3d1;
}

.ft-note-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 44px;
	margin-top: 40px;
	padding-top: 34px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.ft-note-cols h3 {
	margin: 0 0 10px;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: 1.15rem;
	font-weight: 500;
	color: #fff;
}

.ft-note-cols p {
	margin: 0;
	font-size: .86rem;
	line-height: 1.72;
	color: #aeb8b5;
}

/* ---------------------------------------------------------------- Sources */

.ft-sources {
	margin-top: 84px;
}

.ft-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 26px;
}

.ft-section-head h2 {
	margin: 0;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: clamp(1.6rem, 2.8vw, 2.6rem);
	font-weight: 500;
	letter-spacing: -.03em;
	line-height: 1.08;
	color: var(--ft-ink);
}

.ft-section-head > p {
	max-width: 430px;
	margin: 0;
	font-size: .8rem;
	line-height: 1.6;
	color: #6b7773;
}

.ft-source-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--ft-line);
	border-left: 1px solid var(--ft-line);
}

.ft-source-grid article {
	min-height: 210px;
	padding: 22px;
	border-right: 1px solid var(--ft-line);
	border-bottom: 1px solid var(--ft-line);
	background: rgba(255, 255, 255, .35);
}

.ft-source-grid article > p:first-child {
	margin: 0;
	font-size: .6rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ft-ember);
}

.ft-source-grid h3 {
	margin: 8px 0 12px;
	font-family: var(--wikipress-font-content), Georgia, serif;
	font-size: .95rem;
	line-height: 1.4;
}

.ft-source-grid h3 a {
	color: var(--ft-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ft-source-grid article > p:last-child {
	margin: 0;
	font-size: .7rem;
	line-height: 1.6;
	color: #63736f;
}

.ft-status-note {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-top: 24px;
	padding: 18px 22px;
	border: 1px solid #e4cfaa;
	border-radius: 13px;
	background: #fff8e9;
}

.ft-status-note > span {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-top: 6px;
	border-radius: 50%;
	background: #d49632;
	box-shadow: 0 0 0 4px rgba(212, 150, 50, .12);
}

.ft-status-note p {
	margin: 0;
	font-size: .78rem;
	line-height: 1.65;
	color: #685b43;
}

.ft-verification {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	font-size: .7rem;
	color: #6c7976;
}

.ft-verification > span {
	width: 9px;
	height: 9px;
	margin-right: 4px;
	border-radius: 50%;
	background: var(--ft-ember);
	box-shadow: 0 0 0 4px rgba(138, 75, 61, .13);
}

.ft-verification a {
	font-weight: 800;
	color: var(--ft-ember);
}

/* ---------------------------------------------------------------- Shortcode embed */

.ft-embed {
	color: var(--ft-ink);
}

.ft-embed-intro {
	max-width: 780px;
	margin: 0 0 24px;
	font-size: .95rem;
	line-height: 1.7;
	color: var(--ft-ink-soft);
}

.ft-embed-intro a,
.ft-embed-cta a {
	color: var(--ft-ember);
	font-weight: 800;
	text-underline-offset: 3px;
}

.ft-embed .ft-eranav {
	position: static;
	margin: 0 0 6px;
	padding: 0;
	background: none;
}

.ft-embed-cta {
	margin: 30px 0 0;
	font-size: .95rem;
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 900px) {
	.ft-hero { padding: 46px 34px; }
	.ft-note-cols { grid-template-columns: 1fr; gap: 26px; }
	.ft-source-grid { grid-template-columns: 1fr 1fr; }
	.ft-section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 620px) {
	.yazidis-fermans-page .site-header { position: relative; }
	.ft-shell { padding: 0 15px 65px; }
	.ft-breadcrumbs { min-height: 54px; }
	.ft-hero { padding: 38px 24px; border-radius: 18px; }
	.ft-hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
	.ft-eranav { margin: 0 -15px 6px; padding: 12px 15px; }
	.ft-timeline { padding-left: 30px; }
	.ft-timeline::before { left: 7px; }
	.ft-era-head::before { left: -27px; width: 14px; height: 14px; }
	.ft-event-marker { left: -27px; }
	.ft-event-body { padding: 18px 18px; }
	.ft-source-grid { grid-template-columns: 1fr; }
	.ft-source-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ft-era-chip,
	.ft-event-body,
	.ft-event-marker,
	.ft-anchor { transition: none; }
}
