/* =====================================================================
   Fursa UK — Article & Opportunity content styles
   Tokens mirror the live theme (wp-content/themes/fursaa/assets/css/main.css)
   so posts are visually indistinguishable from the rest of the site.
   ===================================================================== */

.fursa-content-view {
	/* Fallback tokens (parent :root already defines these; repeated for safety). */
	--pal-black: #0a0a0a;
	--pal-white: #f6f4ef;
	--pal-green: #0b6e4f;
	--pal-green-bright: #0f8f62;
	--pal-red: #c8102e;
	--pal-red-deep: #9e0c24;
	--pal-ink: #141816;
	--pal-muted: #4a534f;
	--pal-cream: #ebe6da;
	--fursa-salmon: #e8927a;
	--fursa-salmon-deep: #d9785f;
	--fursa-peach: #f4c9b8;
	--fursa-graphite: #3d4a47;
	--fursa-mist: #8fa09c;
	--font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
	--font-body: "Outfit", system-ui, sans-serif;
	--shadow-soft: 0 24px 60px rgba(10, 10, 10, 0.12);
	--radius: 12px;
	--radius-lg: 20px;
	--max: 1120px;
}

/* Page canvas — same layered background as the live site body. */
.fursa-page {
	font-family: var(--font-body);
	color: var(--pal-ink);
	background-color: #eef1ef;
	background-image:
		linear-gradient(180deg, #dce3df 0%, #eef1ef 28%, #fafaf8 100%),
		radial-gradient(ellipse 100% 50% at 100% 0%, rgba(232, 146, 122, 0.10), transparent 55%);
	background-attachment: fixed;
	padding: 0 0 5rem;
}

.fursa-wrap {
	width: min(100% - 2.5rem, var(--max));
	margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* HERO (single article / single opportunity)                          */
/* ------------------------------------------------------------------ */
.fursa-hero {
	padding: 2.75rem 0 0;
}

.fursa-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pal-green);
	margin-bottom: 1rem;
}

.fursa-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--fursa-salmon);
}

.fursa-title {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.01em;
	font-size: clamp(2.2rem, 5.5vw, 3.75rem);
	color: var(--pal-ink);
	margin: 0 0 1rem;
}

.fursa-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	font-size: 0.95rem;
	color: var(--pal-muted);
	margin-bottom: 1.75rem;
}

.fursa-meta a { color: var(--pal-green); text-decoration: none; }
.fursa-meta a:hover { text-decoration: underline; }

/* Featured image */
.fursa-featured {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	aspect-ratio: 16 / 8;
	background: var(--pal-cream);
}
.fursa-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ------------------------------------------------------------------ */
/* ARTICLE BODY                                                         */
/* ------------------------------------------------------------------ */
.fursa-body {
	max-width: 760px;
	margin: 2.75rem auto 0;
	font-size: 1.08rem;
	line-height: 1.75;
	color: var(--pal-ink);
}

.fursa-body > * + * { margin-top: 1.35rem; }

.fursa-body h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.7rem, 3vw, 2.25rem);
	line-height: 1.15;
	margin-top: 2.75rem;
	color: var(--pal-ink);
}
.fursa-body h3 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1.3rem;
	margin-top: 2rem;
	color: var(--pal-graphite, var(--fursa-graphite));
}
.fursa-body a { color: var(--pal-green); text-underline-offset: 3px; }
.fursa-body a:hover { color: var(--pal-green-bright); }

.fursa-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

.fursa-body blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 4px solid var(--fursa-salmon);
	background: rgba(244, 201, 184, 0.22);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-family: var(--font-display);
	font-size: 1.25rem;
	line-height: 1.4;
	color: var(--pal-ink);
}

.fursa-body ul, .fursa-body ol { padding-left: 1.4rem; }
.fursa-body li + li { margin-top: 0.4rem; }

.fursa-body code {
	background: var(--pal-cream);
	padding: 0.15em 0.4em;
	border-radius: 6px;
	font-size: 0.9em;
}

/* ------------------------------------------------------------------ */
/* OPPORTUNITY DETAILS PANEL                                            */
/* ------------------------------------------------------------------ */
.fursa-opp-layout {
	display: grid;
	gap: 2.5rem;
	margin-top: 2.75rem;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.fursa-opp-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.fursa-opp-aside { position: sticky; top: 2rem; }

.fursa-facts {
	background: #fff;
	border: 1px solid rgba(10, 10, 10, 0.08);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
	padding: 1.5rem 1.5rem 1.75rem;
}
.fursa-facts h3 {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pal-muted);
	margin: 0 0 1rem;
}
.fursa-fact { display: flex; flex-direction: column; padding: 0.7rem 0; border-top: 1px solid rgba(10,10,10,0.07); }
.fursa-fact:first-of-type { border-top: 0; padding-top: 0; }
.fursa-fact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pal-muted); }
.fursa-fact-value { font-weight: 600; color: var(--pal-ink); font-size: 1.05rem; }

/* Buttons — identical to the live .paluk-btn-primary. */
.fursa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 1.25rem;
	padding: 0.9rem 1.6rem;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.98rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
	background: var(--pal-green);
	color: var(--pal-white);
	box-shadow: 0 8px 28px rgba(11, 110, 79, 0.35);
}
.fursa-btn:hover { background: var(--pal-green-bright); transform: translateY(-2px); color: var(--pal-white); }

/* ------------------------------------------------------------------ */
/* ARCHIVE / LISTING GRID                                               */
/* ------------------------------------------------------------------ */
.fursa-archive-head { padding: 3rem 0 0.5rem; text-align: center; }
.fursa-archive-head .fursa-title { font-size: clamp(2.4rem, 6vw, 4rem); }
.fursa-archive-lead {
	max-width: 640px; margin: 0.5rem auto 0;
	color: var(--pal-muted); font-size: 1.1rem;
}

.fursa-grid {
	display: grid;
	gap: 1.75rem;
	margin-top: 2.5rem;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fursa-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 12px 34px rgba(10, 10, 10, 0.08);
	border: 1px solid rgba(10, 10, 10, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	text-decoration: none;
	color: inherit;
}
.fursa-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.fursa-card-media { aspect-ratio: 16 / 10; background: var(--pal-cream); overflow: hidden; }
.fursa-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fursa-card-media--empty {
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--fursa-peach), var(--fursa-salmon));
	color: #fff; font-family: var(--font-display); font-size: 2rem;
}

.fursa-card-body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.fursa-card-tag {
	align-self: flex-start;
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--pal-green); margin-bottom: 0.6rem;
}
.fursa-card-title {
	font-family: var(--font-display); font-weight: 400; line-height: 1.15;
	font-size: 1.4rem; margin: 0 0 0.6rem; color: var(--pal-ink);
}
.fursa-card-excerpt { color: var(--pal-muted); font-size: 0.98rem; line-height: 1.6; margin: 0; flex: 1; }
.fursa-card-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--pal-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.fursa-card-deadline { color: var(--pal-red); font-weight: 600; }

/* Pagination */
.fursa-pagination { margin-top: 3rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.fursa-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 0.75rem;
	border-radius: 999px; text-decoration: none; font-weight: 600;
	color: var(--pal-ink); background: #fff; border: 1px solid rgba(10,10,10,0.08);
}
.fursa-pagination .page-numbers.current { background: var(--pal-green); color: var(--pal-white); border-color: transparent; }
.fursa-pagination a.page-numbers:hover { background: var(--pal-cream); }

/* Back link */
.fursa-back { display: inline-flex; align-items: center; gap: 0.4rem; margin: 2rem 0 0; color: var(--pal-green); text-decoration: none; font-weight: 600; }
.fursa-back:hover { text-decoration: underline; }

.fursa-empty { text-align: center; padding: 4rem 0; color: var(--pal-muted); }

/* ------------------------------------------------------------------ */
/* [fursa_opportunities] homepage block                                */
/* ------------------------------------------------------------------ */
.fursa-opps-block { padding: 3rem 0; }
.fursa-opps-block-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.75rem;
}
.fursa-opps-block .fursa-grid { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Mobile header fix — parent theme forced the logo box to 220px tall   */
/* (flex-basis in the mobile column layout), leaving a big empty gap.    */
/* ------------------------------------------------------------------ */
@media (max-width: 720px) {
	.paluk-header--fursa .paluk-brand { flex: 0 0 auto; }
	.paluk-header--fursa .paluk-menu-toggle {
		align-self: flex-end;
		margin-top: -3rem; /* pull the hamburger up beside the logo */
	}
}

/* Placeholder for [fursa_recent_articles] cards with no featured image. */
.fursa-photo-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	background: linear-gradient(135deg, var(--fursa-peach, #f4c9b8), var(--fursa-salmon, #e8927a));
	color: #fff;
	font-family: var(--font-display, "Instrument Serif", Georgia, serif);
	font-size: 3rem;
}
