/**
 * FictionX Zawity (school textbooks) - Frontend Styles
 *
 * The page shell below - tokens, hero, scrim, search pill, band, empty state - is
 * COPIED from assets/css/modules/updates/updates.css, as album's, monq's and mazaya's
 * are. If one is changed, change the others.
 */

:root {
	--fxzw-teal: #26667c;        /* the site's own --bs-primary */
	--fxzw-teal-deep: #0E3D4C;
	--fxzw-ink: #0B2B33;
	--fxzw-muted: #5B7076;
	--fxzw-mist: #EFF3F4;
	--fxzw-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. */
	--fxzw-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 (.fxzw-search-btn:hover, white text) is pinned back to the
	   deep teal further down, or that button would invert into pale-on-white. */
	--fxzw-teal: #4FA3BA;
	--fxzw-ink: #E8F0F2;
	--fxzw-muted: #9FB3B9;
	--fxzw-mist: #0F1B1F;
	--fxzw-rule: rgba(255, 255, 255, .10);
}

/* ==============================================================================
   The hero, on the band header.dwt paints behind every module page
   ============================================================================== */
.fxzw-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. */
.fxzw-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. */
.fxzw-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: start;
	padding-bottom: 26px;
}
.fxzw-hero-crumbs .breadcrumb {
	justify-content: flex-start;
	margin-bottom: 6px;
	opacity: .85;
}
.fxzw-hero-crumbs .breadcrumb-item,
.fxzw-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. */
.fxzw-hero-crumbs .breadcrumb-item.opacity-75 {
	opacity: .72 !important;
	transition: opacity .2s ease;
}
.fxzw-hero-crumbs .breadcrumb-item.opacity-75:hover {
	opacity: 1 !important;
}
.fxzw-hero-crumbs .breadcrumb-item a:hover {
	color: #fff !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}
.fxzw-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);
}
.fxzw-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.
   ------------------------------------------------------------------------------ */
.fxzw-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin: 0 0 28px;
}
.fxzw-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. */
.fxzw-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(460px, 100%);
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
}
.fxzw-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(--fxzw-rule);
	border-radius: 10px;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.fxzw-search-icon {
	flex: 0 0 auto;
	color: var(--fxzw-muted);
	font-size: 15px;
}
.fxzw-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--fxzw-ink);
	font-size: 13.5px;
	font-weight: 500;
	padding: 0;
}
.fxzw-search-input::placeholder {
	color: var(--fxzw-muted);
	font-weight: 400;
	opacity: 1;
}
.fxzw-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 .fxzw-search it would have drawn around the button too. */
.fxzw-search-field:focus-within {
	border-color: var(--fxzw-teal);
	box-shadow: 0 0 0 3px rgba(var(--fxzw-primary-rgb), .18);
}
.fxzw-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.fxzw-search-btn {
	flex: 0 0 auto;
	height: 42px;
	border: 0;
	border-radius: 10px;
	background: var(--fxzw-teal-deep);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	padding: 0 22px;
	transition: background .2s ease;
}
.fxzw-search-btn:hover,
.fxzw-search-btn:focus-visible {
	background: var(--fxzw-teal);
}
[data-bs-theme="dark"] .fxzw-search-btn:hover,
[data-bs-theme="dark"] .fxzw-search-btn:focus-visible {
	background: #2E7E96;
}
[data-bs-theme="dark"] .fxzw-search-field {
	background: #16262B;
}
[data-bs-theme="dark"] .fxzw-search-btn {
	background: #2E7F96;
}
[data-bs-theme="dark"] .fxzw-search-btn:hover {
	background: #3C9AB4;
}

.fxzw-band {
	position: relative;
	z-index: 2;
	background: var(--fxzw-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;
}

/* .fxzw-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. */
.fxzw-resultline-text {
	margin: 0;
	color: var(--fxzw-muted);
	font-size: 15px;
	font-weight: 500;
}
.fxzw-resultline-text strong {
	color: var(--fxzw-ink);
	font-weight: 700;
}
.fxzw-clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fxzw-teal);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.fxzw-clear,
.fxzw-clear:hover {
	transition: color .2s ease;
}
.fxzw-clear:hover {
	color: var(--fxzw-teal-deep);
}
[data-bs-theme="dark"] .fxzw-clear:hover {
	color: var(--fxzw-ink);
}

.fxzw-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 64px 20px;
	background: var(--bs-body-bg);
	border: 1px solid var(--fxzw-rule);
	border-radius: 14px;
}
.fxzw-empty-icon {
	color: var(--fxzw-muted);
	font-size: 36px;
	opacity: .5;
	margin-bottom: 16px;
}
.fxzw-empty-title {
	margin: 0;
	color: var(--fxzw-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.7;
}
.fxzw-empty-text {
	margin: 10px 0 0;
	color: var(--fxzw-muted);
	font-size: 15px;
}
.fxzw-empty-text:empty {
	display: none;
}
.fxzw-empty-btn {
	display: inline-flex;
	align-items: center;
	margin-top: 20px;
	padding: 11px 26px;
	border-radius: 999px;
	background: var(--fxzw-teal);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease;
}
.fxzw-empty-btn:hover {
	background: var(--fxzw-teal-deep);
	color: #fff;
}


/* ==============================================================================
   Sections and the shelf
   ============================================================================== */
.fxzw-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--fxzw-ink);
	font-size: 17px;
	font-weight: 700;
}
.fxzw-head i {
	color: var(--fxzw-teal);
	font-size: 15px;
}
.fxzw-head-n {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(var(--fxzw-primary-rgb), .10);
	color: var(--fxzw-teal);
	font-size: 12.5px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.fxzw-sections {
	margin-bottom: 44px;
}
.fxzw-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
	   and one two-line name makes its whole row taller. */
	grid-auto-rows: 1fr;
	gap: 14px;
}
.fxzw-sec {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--fxzw-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;
}
.fxzw-sec:hover {
	border-color: var(--fxzw-teal);
	transform: translateY(-2px);
	transition: border-color .2s ease, transform .2s ease;
}
.fxzw-sec-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(var(--fxzw-primary-rgb), .10);
	color: var(--fxzw-teal);
	overflow: hidden;
}
.fxzw-sec-icon i {
	font-size: 17px;
	color: inherit;
}
.fxzw-sec-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fxzw-sec-body {
	min-width: 0;
}
.fxzw-sec-name {
	display: block;
	color: var(--fxzw-ink);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fxzw-sec-meta {
	display: block;
	margin-top: 2px;
	color: var(--fxzw-muted);
	font-size: 12.5px;
}

/* A shelf of covers. 685 books all name a picture, so most of these are real covers;
   the title-led tile is the exception rather than the page. */
.fxzw-shelf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	grid-auto-rows: 1fr;
	gap: 16px;
}
.fxzw-book {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--fxzw-rule);
	border-radius: 14px;
	background: var(--bs-body-bg);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}
.fxzw-book:hover {
	border-color: var(--fxzw-teal);
	transform: translateY(-2px);
	transition: border-color .2s ease, transform .2s ease;
}
.fxzw-cover {
	position: relative;
	/* A textbook is taller than it is wide; 3/4 keeps a real cover uncropped. */
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--bs-body-bg);
}
.fxzw-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* No cover on disk, so the TITLE fills it - and comes out of the body below, so it is
   printed once. Opaque base first: the tint is translucent. */
.fxzw-cover-title {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 14px;
	background-color: var(--bs-body-bg);
	background-image: linear-gradient(160deg,
		rgba(var(--fxzw-primary-rgb), .13) 0%,
		rgba(var(--fxzw-primary-rgb), .05) 100%);
	color: var(--fxzw-teal);
	text-align: center;
}
.fxzw-cover-title span {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}
[data-bs-theme="dark"] .fxzw-cover-title {
	background-image: linear-gradient(160deg,
		rgba(var(--fxzw-primary-rgb), .26) 0%,
		rgba(var(--fxzw-primary-rgb), .10) 100%);
	color: #7FC3D6;
}
.fxzw-book-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px 14px;
}
.fxzw-book-title {
	margin: 0;
	color: var(--fxzw-ink);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.fxzw-book-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--fxzw-muted);
	font-size: 12px;
}
.fxzw-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(var(--fxzw-primary-rgb), .09);
	color: var(--fxzw-teal);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.fxzw-chip i {
	font-size: 11px;
	color: inherit;
	line-height: 1;
}
.fxzw-pager-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

@media (max-width: 575.98px) {
	.fxzw-shelf {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

@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 fxzw-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. */
.fxzw-hero-title,
.fxzw-hero-sub {
	animation: fxzw-rise .55s cubic-bezier(.22, .7, .3, 1) both;
}
.fxzw-hero-sub { animation-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
	.fxzw-hero-title,
	.fxzw-hero-sub {
		animation: none;
	}
	/* Reduced motion means no MOVEMENT, not a dead page. */
	.fxzw-book:hover,
	.fxzw-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. */
.fxzw-band-nopill {
	padding-top: 40px;
}

.fxzw-article {
	max-width: 900px;
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
	background: var(--bs-body-bg);
	border: 1px solid var(--fxzw-rule);
}
.fxzw-article-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--fxzw-mist);
}
.fxzw-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. */
.fxzw-article-media.is-empty img {
	width: 32%;
	height: auto;
	margin: auto;
	position: absolute;
	inset: 0;
	opacity: .5;
	object-fit: contain;
}
[data-bs-theme="dark"] .fxzw-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;
}
.fxzw-article-inner {
	padding: 28px 38px 26px;
}
.fxzw-article-head {
	padding-bottom: 20px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--fxzw-rule);
}
.fxzw-article-cat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(var(--fxzw-primary-rgb), .10);
	color: var(--fxzw-teal);
	font-size: 12.5px;
	font-weight: 700;
}
.fxzw-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. */
.fxzw-article-cat a {
	color: inherit;
	text-decoration: none;
}
.fxzw-article-title {
	margin: 0 0 14px;
	color: var(--fxzw-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;
}
.fxzw-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	color: var(--fxzw-muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.fxzw-article-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.fxzw-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. */
.fxzw-article-body {
	max-width: 68ch;
	margin: 0 auto;
	color: var(--fxzw-ink);
	font-size: 15.5px;
	line-height: 2;
	overflow-wrap: anywhere;
}
.fxzw-article-body > *:first-child { margin-top: 0; }
.fxzw-article-body > *:last-child  { margin-bottom: 0; }
.fxzw-article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.fxzw-article-body a {
	color: var(--fxzw-teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.fxzw-article-body h1,
.fxzw-article-body h2,
.fxzw-article-body h3,
.fxzw-article-body h4 {
	color: var(--fxzw-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. */
.fxzw-article-body ul,
.fxzw-article-body ol {
	padding-inline-start: 1.6em;
	margin-block: 0 16px;
}
.fxzw-article-body li {
	margin-bottom: 6px;
}
.fxzw-article-body blockquote {
	margin: 0 0 16px;
	padding-inline-start: 16px;
	border-inline-start: 3px solid rgba(var(--fxzw-primary-rgb), .35);
	color: var(--fxzw-muted);
}
.fxzw-article-body table {
	max-width: 100%;
	border-collapse: collapse;
}
.fxzw-article-body th,
.fxzw-article-body td {
	padding: 8px 12px;
	border: 1px solid var(--fxzw-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. */
.fxzw-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"] .fxzw-article-body [style*="color"]      { color: inherit !important; }
[data-bs-theme="dark"] .fxzw-article-body [style*="background"] { background: transparent !important; }
[data-bs-theme="dark"] .fxzw-article-body font[color]           { color: inherit !important; }
[data-bs-theme="dark"] .fxzw-article-body a[style*="color"],
[data-bs-theme="dark"] .fxzw-article-body a[style*="color"]:hover { color: var(--fxzw-teal) !important; }

/* ---- facts: label/value pairs for the fields a row actually carries ---------- */
.fxzw-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(--fxzw-rule);
	border-radius: 14px;
	background: var(--fxzw-mist);
}
.fxzw-fact {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.fxzw-fact-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--fxzw-muted);
	font-size: 12px;
	font-weight: 600;
}
.fxzw-fact-label i {
	font-size: 11px;
	color: inherit;
}
.fxzw-fact-value {
	color: var(--fxzw-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* ---- section: a titled block of stored HTML, repeated ----------------------- */
.fxzw-section {
	margin-top: 28px;
}
.fxzw-section-title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	color: var(--fxzw-ink);
	font-size: 17px;
	font-weight: 700;
}
.fxzw-section-title i {
	color: var(--fxzw-teal);
	font-size: 14px;
}

/* ---- filebar: download / watch / open an external link ---------------------- */
.fxzw-filebar {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 26px;
	padding: 16px 18px;
	border: 1px solid var(--fxzw-rule);
	border-radius: 14px;
	background: var(--fxzw-mist);
}
.fxzw-filebar-icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(var(--fxzw-primary-rgb), .10);
	color: var(--fxzw-teal);
}
.fxzw-filebar-icon i {
	font-size: 17px;
	color: inherit;
}
.fxzw-filebar-info {
	flex: 1 1 180px;
	min-width: 0;
}
.fxzw-filebar-title {
	display: block;
	color: var(--fxzw-ink);
	font-size: 14px;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.fxzw-filebar-hint {
	display: block;
	margin-top: 2px;
	color: var(--fxzw-muted);
	font-size: 12.5px;
}
.fxzw-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(--fxzw-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;
}
.fxzw-filebar-btn:hover {
	background: var(--fxzw-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. */
.fxzw-filebar-btn-quiet {
	background: transparent;
	border-color: var(--fxzw-rule);
	color: var(--fxzw-teal);
}
.fxzw-filebar-btn-quiet:hover {
	background: transparent;
	border-color: var(--fxzw-teal);
	color: var(--fxzw-teal);
}

/* ---- pager: previous / next within the same section ------------------------- */
.fxzw-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--fxzw-rule);
}
.fxzw-pager-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fxzw-teal);
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease;
}
.fxzw-pager-link:hover {
	color: var(--fxzw-teal-deep);
	transition: color .2s ease;
}
/* RTL: the arrows point with the flow, not against it. */
[dir="rtl"] .fxzw-pager-link i {
	transform: scaleX(-1);
}

/* ---- the share footer ------------------------------------------------------- */
.fxzw-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(--fxzw-rule);
}
.fxzw-actions-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--fxzw-muted);
	font-size: 13px;
	font-weight: 600;
}
.fxzw-actions-label i {
	font-size: 12px;
	color: inherit;
}
.fxzw-share {
	display: flex;
	align-items: center;
	gap: 8px;
}
.fxzw-share > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--fxzw-mist);
	color: var(--fxzw-muted);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.fxzw-share > *:hover {
	background: rgba(var(--fxzw-primary-rgb), .12);
	color: var(--fxzw-teal);
	transition: background-color .2s ease, color .2s ease;
}
.fxzw-share i {
	font-size: 14px;
	color: inherit;
}
/* The copy button after a successful copy, set by assets/js/fx-detail.js. */
.fxzw-share > .is-done {
	background: rgba(23, 139, 86, .12);
	color: #15794C;
}
[data-bs-theme="dark"] .fxzw-share > .is-done {
	background: rgba(80, 205, 137, .18);
	color: #6FD9A0;
}

/* ---- back to the section ---------------------------------------------------- */
.fxzw-backlink {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 22px;
	color: var(--fxzw-muted);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: color .2s ease;
}
.fxzw-backlink:hover {
	color: var(--fxzw-teal);
	transition: color .2s ease;
}
[dir="rtl"] .fxzw-backlink i {
	transform: scaleX(-1);
}

/* ---- related: the block that used to be a sidebar --------------------------- */
.fxzw-related {
	max-width: 900px;
	margin: 36px auto 0;
}
.fxzw-related-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--fxzw-ink);
	font-size: 17px;
	font-weight: 700;
}
.fxzw-related-head i {
	color: var(--fxzw-teal);
	font-size: 15px;
}

@media (max-width: 767.98px) {
	.fxzw-hero {
		padding-top: 6px;
	}
	.fxzw-hero-inner {
		padding-bottom: 20px;
	}
	/* The field takes the row and the count drops under it, rather than the two
	   squeezing side by side. */
	.fxzw-search {
		width: 100%;
	}
	.fxzw-band {
		padding-top: 28px;
	}
	.fxzw-article-inner {
		padding: 22px 18px 20px;
	}
	.fxzw-article-title {
		font-size: 21px;
	}
	.fxzw-actions {
		justify-content: center;
	}
	.fxzw-facts {
		padding: 16px 18px;
	}
}

@media print {
	.fxzw-actions,
	.fxzw-backlink,
	.fxzw-pager,
	.fxzw-related,
	.fxzw-hero {
		display: none;
	}
	.fxzw-article {
		border: 0;
		max-width: none;
	}
}

/* ---- the book divergence ---------------------------------------------------
   A book's media is its COVER: portrait, contained, and small enough that the
   facts beside it are the point. It is not a 16/9 banner and it is not the
   full-bleed figure the galleries use.
   -------------------------------------------------------------------------- */
.fxzw-article-media.is-cover {
	aspect-ratio: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 20px 4px;
	background: transparent;
}
.fxzw-article-media.is-cover img {
	width: auto;
	height: auto;
	max-width: 240px;
	max-height: 340px;
	object-fit: contain;
	border-radius: 10px;
	border: 1px solid var(--fxzw-rule);
}
/* No cover on disk: the TITLE fills the same box, as the shelf tiles do. */
.fxzw-cover-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 200px;
	min-height: 280px;
	padding: 20px 16px;
	border-radius: 10px;
	background-color: var(--bs-body-bg);
	background-image: linear-gradient(160deg,
		rgba(var(--fxzw-primary-rgb), .13) 0%,
		rgba(var(--fxzw-primary-rgb), .05) 100%);
	color: var(--fxzw-teal);
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
[data-bs-theme="dark"] .fxzw-cover-fallback {
	background-image: linear-gradient(160deg,
		rgba(var(--fxzw-primary-rgb), .26) 0%,
		rgba(var(--fxzw-primary-rgb), .10) 100%);
	color: #7FC3D6;
}
/* Two buttons side by side: read it here, or take it away. */
.fxzw-filebar-btns {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* ---- the reader page (the /file/ route) ------------------------------------
   The flipbook lives on its own page now rather than inside the card, so its
   jQuery and its plugin CSS load only for a reader who asked to read.
   -------------------------------------------------------------------------- */
.fxzw-reader {
	max-width: 1100px;
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
	background: var(--bs-body-bg);
	border: 1px solid var(--fxzw-rule);
	padding: 20px;
}
.fxzw-reader-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.fxzw-reader-title {
	margin: 0;
	color: var(--fxzw-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

/* 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(--fxzw-teal);
	border-color: var(--fxzw-teal);
}
