/**
 * FictionX Participate - Frontend Styles
 *
 * The page shell and the card rules are COPIED from updates.css and govdalil.css -
 * this module is govdalil's twin, down to its columns. If one of the shared values is
 * changed, change the others.
 */

:root {
	--fxpt-teal: #26667c;        /* the site's own --bs-primary */
	--fxpt-teal-deep: #0E3D4C;
	--fxpt-ink: #0B2B33;
	--fxpt-muted: #5B7076;
	--fxpt-mist: #EFF3F4;
	--fxpt-rule: #DCE4E6;

	/* The theme's --bs-primary-rgb is 40,84,109, which is NOT --bs-primary (#26667c):
	   every rgba(var(--bs-primary-rgb), …) tint comes out a different blue. */
	--fxpt-primary-rgb: 38, 102, 124;
}

[data-bs-theme="dark"] {
	/* The teal is ink and border in almost every rule below, and on the dark surface
	   #26667c measured 2.85:1 - under the 4.5:1 a 12.5px label needs. Lightened for
	   dark only, which repairs every teal word at once rather than per component.
	   Its one BACKGROUND use (.fxpt-search-btn:hover, white text) is pinned back to the
	   deep teal further down, or that button would invert into pale-on-white. */
	--fxpt-teal: #4FA3BA;
	--fxpt-ink: #E8F0F2;
	--fxpt-muted: #9FB3B9;
	--fxpt-mist: #0F1B1F;
	--fxpt-rule: rgba(255, 255, 255, .10);
}

/* ==============================================================================
   The hero, on the band header.dwt paints behind every module page
   ============================================================================== */
.fxpt-hero {
	position: relative;
	z-index: 3;
	padding: 18px 0 0;
}
/* A one-way ramp: nothing at the top, where the band's video is left alone behind the
   nav, coming on through the lower half and ending opaque under the search pill.

   It was a near-opaque slab from edge to edge, which is the same mistake the library
   made: it read as a dark rectangle dropped on the page and drew a hard line where it
   met the bright band above it. Measured here at every width from 390 to 1920 — the
   scrim started at .87 immediately, so the cut was at the hero's top edge, around y=103
   on a desktop.

   The stops are deliberately uneven. A straight two-stop ramp spends most of its length
   pale, and that is the height at which the band's video changes tone, so the darkening
   is held back and then brought on quickly. These values are the library's, exactly —
   the two pages are meant to be indistinguishable here. */
.fxpt-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg,
		rgba(5, 27, 34, 0) 0%,
		rgba(5, 27, 34, .10) 30%,
		rgba(5, 27, 34, .34) 52%,
		rgba(5, 27, 34, .70) 74%,
		rgba(5, 27, 34, .92) 89%,
		rgba(5, 27, 34, 1) 100%);
	pointer-events: none;
}
/* Start-aligned, not centred: a centred column reads as a campaign banner over the
   site's video band, and `text-align: start` resolves to right in Arabic and left in
   English on its own. The 46px below was clearance for the pill that hung off the
   hero's lower edge; nothing straddles the seam now, so it is 26px. */
.fxpt-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: start;
	padding-bottom: 26px;
}
.fxpt-hero-crumbs .breadcrumb {
	justify-content: flex-start;
	margin-bottom: 6px;
	opacity: .85;
}
.fxpt-hero-crumbs .breadcrumb-item,
.fxpt-hero-crumbs .breadcrumb-item a {
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
	font-weight: 500;
}
/* The crumbs carry Metronic's .text-hover-primary, whose rule is
   `color: var(--bs-text-primary) !important` — #26667c, the hero's own colour, so a
   hovered crumb vanished. Colour is not winnable here (.text-white is !important too),
   so the feedback rides on opacity. */
.fxpt-hero-crumbs .breadcrumb-item.opacity-75 {
	opacity: .72 !important;
	transition: opacity .2s ease;
}
.fxpt-hero-crumbs .breadcrumb-item.opacity-75:hover {
	opacity: 1 !important;
}
.fxpt-hero-crumbs .breadcrumb-item a:hover {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}
.fxpt-hero-title {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 18px + 3.2vw, 56px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}
.fxpt-hero-sub {
	/* Not `auto`: that re-centres the paragraph inside the start-aligned column. */
	margin: 14px 0 0;
	max-width: 54ch;
	color: rgba(255, 255, 255, .86);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.9;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

/* ------------------------------------------------------------- the toolbar ----
   The search and the count, on one row above the cards: search at the reading-start
   edge, count at the other. `space-between` with the form first does that in both
   directions, so Arabic gets search-right/count-left and English the mirror without
   a single direction-specific rule.
   ------------------------------------------------------------------------------ */
.fxpt-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin: 0 0 28px;
}
.fxpt-toolbar-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

/* --------------------------------------------------------------- the search ---
   It was a white elevated pill straddling the hero/band seam. On the band it is an
   ordinary field, the shape every other module's toolbar uses: 42px, one hairline,
   10px radius. */
.fxpt-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(460px, 100%);
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
}
.fxpt-search-field {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 1 1 auto;
	min-width: 0;            /* or a long placeholder refuses to shrink */
	height: 42px;
	padding-inline: 14px;
	margin: 0;
	background: var(--bs-body-bg);
	border: 1px solid var(--fxpt-rule);
	border-radius: 10px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.fxpt-search-icon {
	flex: 0 0 auto;
	color: var(--fxpt-muted);
	font-size: 15px;
}
.fxpt-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--fxpt-ink);
	font-size: 13.5px;
	font-weight: 500;
	padding: 0;
}
.fxpt-search-input::placeholder {
	color: var(--fxpt-muted);
	font-weight: 400;
	opacity: 1;
}
.fxpt-search-input:focus {
	outline: 0;
}
/* The ring is the focus affordance, so it stays - on the FIELD now, which is the box
   that has an edge. On .fxpt-search it would have drawn around the button too. */
.fxpt-search-field:focus-within {
	border-color: var(--fxpt-teal);
	box-shadow: 0 0 0 3px rgba(var(--fxpt-primary-rgb), .18);
}
.fxpt-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.fxpt-search-btn {
	flex: 0 0 auto;
	height: 42px;
	border: 0;
	border-radius: 10px;
	background: var(--fxpt-teal-deep);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	padding: 0 22px;
	transition: background .2s ease;
}
.fxpt-search-btn:hover,
.fxpt-search-btn:focus-visible {
	background: var(--fxpt-teal);
}
[data-bs-theme="dark"] .fxpt-search-btn:hover,
[data-bs-theme="dark"] .fxpt-search-btn:focus-visible {
	background: #2E7E96;
}
[data-bs-theme="dark"] .fxpt-search-field {
	background: #16262B;
}
[data-bs-theme="dark"] .fxpt-search-btn {
	background: #2E7F96;
}
[data-bs-theme="dark"] .fxpt-search-btn:hover {
	background: #3C9AB4;
}

.fxpt-band {
	position: relative;
	z-index: 2;
	background: var(--fxpt-mist);
	/* 86px used to clear the pill hanging off the hero. Nothing straddles the seam
	   now, so this is the ordinary band padding the other listings use. 46px / -46px
	   / 86px were one system and moved together - none of the three is left here. */
	padding: 40px 0 56px;
}

/* .fxpt-resultline is gone from the markup: the count is no longer a row of its own
   with a rule under it, it is the toolbar's end-edge member. The two rules below are
   reused unchanged by both states - the idle count and the "N results for" line. */
.fxpt-resultline-text {
	margin: 0;
	color: var(--fxpt-muted);
	font-size: 15px;
	font-weight: 500;
}
.fxpt-resultline-text strong {
	color: var(--fxpt-ink);
	font-weight: 700;
}
.fxpt-clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fxpt-teal);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.fxpt-clear,
.fxpt-clear:hover {
	transition: color .2s ease;
}
.fxpt-clear:hover {
	color: var(--fxpt-teal-deep);
}
[data-bs-theme="dark"] .fxpt-clear:hover {
	color: var(--fxpt-ink);
}

.fxpt-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 64px 20px;
	background: var(--bs-body-bg);
	border: 1px solid var(--fxpt-rule);
	border-radius: 14px;
}
.fxpt-empty-icon {
	color: var(--fxpt-muted);
	font-size: 36px;
	opacity: .5;
	margin-bottom: 16px;
}
.fxpt-empty-title {
	margin: 0;
	color: var(--fxpt-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
}
.fxpt-empty-text {
	margin: 10px 0 0;
	color: var(--fxpt-muted);
	font-size: 15px;
}
.fxpt-empty-text:empty {
	display: none;
}
.fxpt-empty-btn {
	display: inline-flex;
	align-items: center;
	margin-top: 20px;
	padding: 11px 26px;
	border-radius: 999px;
	background: var(--fxpt-teal);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease;
}
.fxpt-empty-btn:hover {
	background: var(--fxpt-teal-deep);
	color: #fff;
}

/* ==============================================================================
   Sections and services
   ==============================================================================
   A service is a procedure, not a picture: the card leads with its NAME and prints
   the facts the row actually carries - a code, who provides it, how long it takes -
   as chips, and nothing where the field is empty.
   ============================================================================== */
.fxpt-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--fxpt-ink);
	font-size: 17px;
	font-weight: 700;
}
.fxpt-head i {
	color: var(--fxpt-teal);
	font-size: 15px;
}
.fxpt-head-n {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(var(--fxpt-primary-rgb), .10);
	color: var(--fxpt-teal);
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.fxpt-sections {
	margin-bottom: 44px;
}
.fxpt-sec-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	/* Equal rows: as plain flex items the cards take their height from their own text. */
	grid-auto-rows: 1fr;
	gap: 14px;
}
.fxpt-sec {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--fxpt-rule);
	border-radius: 14px;
	background: var(--bs-body-bg);
	text-decoration: none;
	/* Declared on :hover too. These are <a> elements and the theme's
	   a:hover { transition: color .2s ease } at (0,1,1) REPLACES the list below. */
	transition: border-color .2s ease, transform .2s ease;
}
.fxpt-sec:hover {
	border-color: var(--fxpt-teal);
	transform: translateY(-2px);
	transition: border-color .2s ease, transform .2s ease;
}
.fxpt-sec-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(var(--fxpt-primary-rgb), .10);
	color: var(--fxpt-teal);
	overflow: hidden;
}
.fxpt-sec-icon i {
	font-size: 17px;
	color: inherit;
}
.fxpt-sec-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fxpt-sec-body {
	min-width: 0;
}
.fxpt-sec-name {
	display: block;
	color: var(--fxpt-ink);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fxpt-sec-meta {
	display: block;
	margin-top: 2px;
	color: var(--fxpt-muted);
	font-size: 12.5px;
}

.fxpt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	grid-auto-rows: 1fr;
	gap: 16px;
}
.fxpt-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 20px;
	border: 1px solid var(--fxpt-rule);
	border-radius: 14px;
	background: var(--bs-body-bg);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}
.fxpt-card:hover {
	border-color: var(--fxpt-teal);
	transform: translateY(-2px);
	transition: border-color .2s ease, transform .2s ease;
}
/* The section this service belongs to, above its name: on a page that lists several
   sections at once, the name alone does not say which one it came from. */
.fxpt-card-cat {
	color: var(--fxpt-teal);
	font-size: 11.5px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fxpt-card-title {
	margin: 0;
	color: var(--fxpt-ink);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.fxpt-card-text {
	margin: 0;
	color: var(--fxpt-muted);
	font-size: 12.5px;
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fxpt-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	color: var(--fxpt-muted);
	font-size: 12.5px;
}
.fxpt-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	/* One fixed height, so a row of chips sits on one line however many there are. */
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(var(--fxpt-primary-rgb), .09);
	color: var(--fxpt-teal);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	font-variant-numeric: tabular-nums;
}
.fxpt-chip i {
	font-size: 11px;
	color: inherit;
	line-height: 1;
	flex: 0 0 auto;
}
/* The view count is not a status - it keeps no chrome and sits at the end. */
.fxpt-chip-plain {
	height: auto;
	padding: 0;
	background: transparent;
	color: var(--fxpt-muted);
	font-weight: 500;
	margin-inline-start: auto;
}
.fxpt-pager-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

@media (max-width: 991.98px) {
	/* The off-canvas drawer sits outside the viewport; without this the page can be
	   scrolled sideways to reach it. */
	.wrapper {
		overflow-x: clip;
	}
}

@keyframes fxpt-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}
/* The search is no longer part of the hero, so it is no longer part of the hero's
   entrance - it would have risen on its own, out of sequence, down in the band. */
.fxpt-hero-title,
.fxpt-hero-sub {
	animation: fxpt-rise .55s cubic-bezier(.22, .7, .3, 1) both;
}
.fxpt-hero-sub { animation-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
	.fxpt-hero-title,
	.fxpt-hero-sub {
		animation: none;
	}
	/* Reduced motion means no MOVEMENT, not a dead page. */
	.fxpt-card:hover,
	.fxpt-sec:hover {
		transform: none;
	}
}
/* =============================================================================
   THE DETAIL SHELL
   =============================================================================
   Copied from assets/css/modules/topics/topics.css (the .fxt-article* block, the
   origin) and shared verbatim with monq, mazaya, album, media, zawity, manaheg,
   govdalil and participate. Change one, change all nine.

   DELIBERATE DIVERGENCE between the copies - do not "fix" these back:
     album, media          -article-media is .is-figure: the picture IS the subject,
                           so it is contained, not cropped to 16/9
     media                 additionally .is-video, which holds an embed
     zawity, manaheg       -article-media is .is-cover: a portrait book cover
     govdalil, participate no -article-media rules at all - those rows carry no image

   -facts, -section, -filebar, -pager and -related are new vocabulary this shell
   introduces; they do not exist in topics.css.
   ============================================================================= */
/* The listing's band reserves 86px at the top for the search pill that overlaps the
   seam. A detail page has no pill, so it closes that gap. */
.fxpt-band-nopill {
	padding-top: 40px;
}

.fxpt-article {
	max-width: 900px;
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
	background: var(--bs-body-bg);
	border: 1px solid var(--fxpt-rule);
}
.fxpt-article-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--fxpt-mist);
}
.fxpt-article-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* No picture on disk: the placeholder is centred small and dimmed rather than
   stretched, so an absent image reads as absent instead of as a bad photograph. */
.fxpt-article-media.is-empty img {
	width: 32%;
	height: auto;
	margin: auto;
	position: absolute;
	inset: 0;
	opacity: .5;
	object-fit: contain;
}
[data-bs-theme="dark"] .fxpt-article-media.is-empty img {
	/* The shared SVG paints its own light gradient because the listings use it too. */
	filter: invert(.92) hue-rotate(180deg);
	opacity: .35;
}
.fxpt-article-inner {
	padding: 28px 38px 26px;
}
.fxpt-article-head {
	padding-bottom: 20px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--fxpt-rule);
}
.fxpt-article-cat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(var(--fxpt-primary-rgb), .10);
	color: var(--fxpt-teal);
	font-size: 12.5px;
	font-weight: 700;
}
.fxpt-article-cat i {
	font-size: 11px;
	color: inherit;
}
/* The category arrives as a finished <a>, and the theme's --bs-link-color is ORANGE
   in a teal panel. (0,2,1) beats the link rule without reaching for !important. */
.fxpt-article-cat a {
	color: inherit;
	text-decoration: none;
}
.fxpt-article-title {
	margin: 0 0 14px;
	color: var(--fxpt-ink);
	font-size: 27px;
	font-weight: 800;
	line-height: 1.45;
	/* A stored title can be one unbroken token; without this it overflows the card. */
	overflow-wrap: anywhere;
}
.fxpt-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	color: var(--fxpt-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.fxpt-article-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.fxpt-article-meta-item i {
	font-size: 12px;
	color: inherit;
}

/* The body is the one place the stored HTML runs the show, so these rules CONTAIN it
   rather than style it: the measure, images that overflow, lists, and tables. */
.fxpt-article-body {
	max-width: 68ch;
	margin: 0 auto;
	color: var(--fxpt-ink);
	font-size: 15.5px;
	line-height: 2;
	overflow-wrap: anywhere;
}
.fxpt-article-body > *:first-child { margin-top: 0; }
.fxpt-article-body > *:last-child  { margin-bottom: 0; }
.fxpt-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.fxpt-article-body a {
	color: var(--fxpt-teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fxpt-article-body h1,
.fxpt-article-body h2,
.fxpt-article-body h3,
.fxpt-article-body h4 {
	color: var(--fxpt-ink);
	font-weight: 700;
	line-height: 1.6;
}
/* Lists: the reference leaves these to the browser, which in RTL puts the marker on
   the wrong side and indents from the wrong edge. padding-inline-start is the fix in
   both directions. */
.fxpt-article-body ul,
.fxpt-article-body ol {
	padding-inline-start: 1.6em;
	margin-block: 0 16px;
}
.fxpt-article-body li {
	margin-bottom: 6px;
}
.fxpt-article-body blockquote {
	margin: 0 0 16px;
	padding-inline-start: 16px;
	border-inline-start: 3px solid rgba(var(--fxpt-primary-rgb), .35);
	color: var(--fxpt-muted);
}
.fxpt-article-body table {
	max-width: 100%;
	border-collapse: collapse;
}
.fxpt-article-body th,
.fxpt-article-body td {
	padding: 8px 12px;
	border: 1px solid var(--fxpt-rule);
	text-align: start;
}
/* A wide table scrolls inside the column instead of widening the page. The wrapper is
   added by assets/js/fx-detail.js from the body's data-fx-tables attribute. */
.fxpt-table-scroll {
	overflow-x: auto;
	margin: 0 0 18px;
	-webkit-overflow-scrolling: touch;
}
/* Editor HTML carries inline colours chosen against a white page; in dark mode they
   become unreadable. These neutralise the colour without touching the structure, and
   are the only !important rules in this sheet. */
[data-bs-theme="dark"] .fxpt-article-body [style*="color"]      { color: inherit !important; }
[data-bs-theme="dark"] .fxpt-article-body [style*="background"] { background: transparent !important; }
[data-bs-theme="dark"] .fxpt-article-body font[color]           { color: inherit !important; }
[data-bs-theme="dark"] .fxpt-article-body a[style*="color"],
[data-bs-theme="dark"] .fxpt-article-body a[style*="color"]:hover { color: var(--fxpt-teal) !important; }

/* ---- facts: label/value pairs for the fields a row actually carries ---------- */
.fxpt-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px 24px;
	margin: 26px 0 0;
	padding: 20px 22px;
	border: 1px solid var(--fxpt-rule);
	border-radius: 14px;
	background: var(--fxpt-mist);
}
.fxpt-fact {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.fxpt-fact-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fxpt-muted);
	font-size: 12px;
	font-weight: 600;
}
.fxpt-fact-label i {
	font-size: 11px;
	color: inherit;
}
.fxpt-fact-value {
	color: var(--fxpt-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* ---- section: a titled block of stored HTML, repeated ----------------------- */
.fxpt-section {
	margin-top: 28px;
}
.fxpt-section-title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	color: var(--fxpt-ink);
	font-size: 17px;
	font-weight: 700;
}
.fxpt-section-title i {
	color: var(--fxpt-teal);
	font-size: 14px;
}

/* ---- filebar: download / watch / open an external link ---------------------- */
.fxpt-filebar {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 26px;
	padding: 16px 18px;
	border: 1px solid var(--fxpt-rule);
	border-radius: 14px;
	background: var(--fxpt-mist);
}
.fxpt-filebar-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(var(--fxpt-primary-rgb), .10);
	color: var(--fxpt-teal);
}
.fxpt-filebar-icon i {
	font-size: 17px;
	color: inherit;
}
.fxpt-filebar-info {
	flex: 1 1 180px;
	min-width: 0;
}
.fxpt-filebar-title {
	display: block;
	color: var(--fxpt-ink);
	font-size: 14px;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.fxpt-filebar-hint {
	display: block;
	margin-top: 2px;
	color: var(--fxpt-muted);
	font-size: 12.5px;
}
.fxpt-filebar-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--fxpt-teal-deep);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	/* Declared on :hover too - these are <a> elements and the theme's
	   a:hover { transition: color .2s ease } at (0,1,1) REPLACES the list. */
	transition: background-color .2s ease, color .2s ease;
}
.fxpt-filebar-btn:hover {
	background: var(--fxpt-teal);
	color: #fff;
	transition: background-color .2s ease, color .2s ease;
}
/* btn-outline-* paints no border in this theme, so the quiet button gets its own. */
.fxpt-filebar-btn-quiet {
	background: transparent;
	border-color: var(--fxpt-rule);
	color: var(--fxpt-teal);
}
.fxpt-filebar-btn-quiet:hover {
	background: transparent;
	border-color: var(--fxpt-teal);
	color: var(--fxpt-teal);
}

/* ---- pager: previous / next within the same section ------------------------- */
.fxpt-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--fxpt-rule);
}
.fxpt-pager-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fxpt-teal);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}
.fxpt-pager-link:hover {
	color: var(--fxpt-teal-deep);
	transition: color .2s ease;
}
/* RTL: the arrows point with the flow, not against it. */
[dir="rtl"] .fxpt-pager-link i {
	transform: scaleX(-1);
}

/* ---- the share footer ------------------------------------------------------- */
.fxpt-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--fxpt-rule);
}
.fxpt-actions-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fxpt-muted);
	font-size: 13px;
	font-weight: 600;
}
.fxpt-actions-label i {
	font-size: 12px;
	color: inherit;
}
.fxpt-share {
	display: flex;
	align-items: center;
	gap: 8px;
}
.fxpt-share > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--fxpt-mist);
	color: var(--fxpt-muted);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.fxpt-share > *:hover {
	background: rgba(var(--fxpt-primary-rgb), .12);
	color: var(--fxpt-teal);
	transition: background-color .2s ease, color .2s ease;
}
.fxpt-share i {
	font-size: 14px;
	color: inherit;
}
/* The copy button after a successful copy, set by assets/js/fx-detail.js. */
.fxpt-share > .is-done {
	background: rgba(23, 139, 86, .12);
	color: #15794C;
}
[data-bs-theme="dark"] .fxpt-share > .is-done {
	background: rgba(80, 205, 137, .18);
	color: #6FD9A0;
}

/* ---- back to the section ---------------------------------------------------- */
.fxpt-backlink {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 22px;
	color: var(--fxpt-muted);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: color .2s ease;
}
.fxpt-backlink:hover {
	color: var(--fxpt-teal);
	transition: color .2s ease;
}
[dir="rtl"] .fxpt-backlink i {
	transform: scaleX(-1);
}

/* ---- related: the block that used to be a sidebar --------------------------- */
.fxpt-related {
	max-width: 900px;
	margin: 36px auto 0;
}
.fxpt-related-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--fxpt-ink);
	font-size: 17px;
	font-weight: 700;
}
.fxpt-related-head i {
	color: var(--fxpt-teal);
	font-size: 15px;
}

@media (max-width: 767.98px) {
	.fxpt-hero {
		padding-top: 6px;
	}
	.fxpt-hero-inner {
		padding-bottom: 20px;
	}
	/* The field takes the row and the count drops under it, rather than the two
	   squeezing side by side. */
	.fxpt-search {
		width: 100%;
	}
	.fxpt-band {
		padding-top: 28px;
	}
	.fxpt-article-inner {
		padding: 22px 18px 20px;
	}
	.fxpt-article-title {
		font-size: 21px;
	}
	.fxpt-actions {
		justify-content: center;
	}
	.fxpt-facts {
		padding: 16px 18px;
	}
}

@media print {
	.fxpt-actions,
	.fxpt-backlink,
	.fxpt-pager,
	.fxpt-related,
	.fxpt-hero {
		display: none;
	}
	.fxpt-article {
		border: 0;
		max-width: none;
	}
}

/* ---- the service divergence -----------------------------------------------
   A service is FACTS plus a handful of prose sections, so -facts and -section
   carry this page rather than a body. 114 of the 299 published rows name a
   picture, so the media slot stays - the plan assumed none and the data said
   otherwise - but it is gated, because the other 185 have nothing to show.
   -------------------------------------------------------------------------- */
/* participate carries ONE file per row (BookFile), not govdalil's attachments
   table, so it uses the shared -filebar and needs no .fxpt-attach rules. */

/* The shared pager's active page.
   class.pager.php emits its own CSS as an inline <style> inside {PageNumber}, i.e.
   AFTER this sheet, so overriding it takes specificity rather than source order.
   Without this the current page stays the theme's blue while everything around it is
   teal - it was set on only 2 of the 14 sheets that render a pager. */
#kt_content .fx-pager .fx-pg-btn.active {
	background: var(--fxpt-teal);
	border-color: var(--fxpt-teal);
}
