:root {
	/* The story column (FC-40): the hero's text block and the article below
	   it share these, so the body starts exactly under the title. */
	--fc-col: 62rem;
	--fc-gutter: 1.5rem;
	--fc-bg: #0d1310;        /* Deep Forest Pine */
	--fc-panel: #1a1512;     /* Ember Ash — warm. Replaced #141414, which sat
	                            1.02:1 from the background and never read as
	                            a separate surface. Separation comes from
	                            --fc-line, not from this fill. */
	--fc-text: #d6cdc2;      /* Aged Bone White — 11.96:1 */
	--fc-accent: #8b3a2b;    /* Crimson Rust — FILL ONLY. 2.45:1 on the bg, so
	                            never text and never a small mark. */
	--fc-ember: #c9622f;     /* Ember — 4.72:1. Every small bright mark: pins,
	                            focus rings, active flags. */
	--fc-amber: #d4a373;     /* Lantern Amber — 8.31:1 */
	--fc-line: rgba(214, 205, 194, .18);

	/* The archive paper kit (FC-35) — header and map page. */
	--fc-red-text: #dd5a44;  /* 4.97:1 — red that may be text or a small
	                            mark, which --fc-accent may not. */
	--fc-red-fill: #8f2618;  /* worn stamp red, fills only */
	--fc-edge: rgba(176, 72, 52, .55);   /* the thin red-brown border */
	--fc-sheet: #1c1511;     /* panel paper, darkest */
	--fc-sheet-2: #251c16;   /* panel paper, lifted */
	--fc-paper: #b8a07a;     /* old paper, for the one light strip */
	/* The client's dark paper. Every dark surface on the header and map page
	   is cut from it at the same scale, so they read as one sheet. */
	--fc-tex: url("img/paper-dark.webp") center / 1400px auto repeat;
	/* The site background (FC-82). Overridden from Appearance → Customize →
	   Background Image (fc_background_var() in header.php). */
	--fc-page-bg: url("img/paper-dark.webp");
	/* Warm speckle, tiled: grain without an image request. */
	--fc-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .5 0 0 0 0 .38 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.fc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- shared ---------- */

/* The class is doubled to reach specificity (0,2,0). Themes commonly style
   links as `.theme-class a` (0,1,1), which beats a single class and would
   render this button's label in the theme's link colour. Self-contained on
   purpose — no theme class name is hardcoded. Applies to the rules below too. */
.fc-btn.fc-btn {
	display: inline-block;
	padding: .7em 1.4em;
	border: 1px solid var(--fc-accent);
	background: var(--fc-accent);
	color: #f5efe8;
	font: inherit;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.fc-btn.fc-btn:hover,
.fc-btn.fc-btn:focus-visible { background: #a04532; }

/* Doubled to match .fc-btn.fc-btn above, which would otherwise win on padding. */
.fc-btn--sm.fc-btn--sm { padding: .5em 1em; font-size: .85em; }

.fc-notice {
	margin: 0 0 1.5rem;
	padding: 1rem 1.2rem;
	border-left: 3px solid var(--fc-amber);
	background: var(--fc-panel);
	color: var(--fc-text);
}

.fc-notice--err { border-left-color: var(--fc-accent); }

/* ---------- submission form ---------- */

.fc-form { color: var(--fc-text); max-width: 46rem; }
.fc-form p { margin: 0 0 1.4rem; }
.fc-form label { display: block; margin-bottom: .4rem; letter-spacing: .04em; }
.fc-form small { display: block; margin-top: .35rem; opacity: .6; }
.fc-req { color: var(--fc-accent); }

.fc-form input[type=text],
.fc-form input[type=email],
.fc-form input[type=url],
.fc-form textarea,
.fc-form select {
	width: 100%;
	padding: .7em .8em;
	border: 1px solid var(--fc-line);
	background: var(--fc-panel);
	color: var(--fc-text);
	font: inherit;
}

.fc-form input:focus,
.fc-form textarea:focus,
.fc-form select:focus {
	outline: 2px solid var(--fc-amber);
	outline-offset: 1px;
}

/* ---------- location picker (FC-30) ---------- */

/* Matches the .fc-form p rhythm; the picker is a div because it holds a map. */
.fc-pick { position: relative; margin: 0 0 1.4rem; }

.fc-pick__results {
	position: absolute;
	/* Above Leaflet's control panes, which sit at 1000. At 500 the zoom
	   buttons showed through the results list. */
	z-index: 1100;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--fc-line);
	background: var(--fc-panel);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
	list-style: none;
}

.fc-pick__hit {
	display: block;
	width: 100%;
	padding: .6em .8em;
	border: 0;
	border-bottom: 1px solid var(--fc-line);
	background: transparent;
	color: var(--fc-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.fc-pick__results li:last-child .fc-pick__hit { border-bottom: 0; }

.fc-pick__hit:hover,
.fc-pick__hit:focus-visible {
	background: rgba(212, 163, 115, .12);
	color: var(--fc-amber);
	outline: 0;
}

/* Empty most of the time — it must not reserve a line of space when silent. */
.fc-pick__note { margin: .4rem 0 0; color: var(--fc-amber); font-size: .9em; }
.fc-pick__note:empty { display: none; }

/* Fixed height, because the map is the thing being pointed at. The stage class
   is shared with the atlas, which brings the tile grading and pin palette. */
.fc-pick__stage { height: 320px; margin-top: .6rem; border: 1px solid var(--fc-line); }

/* Grab, not pointer: the whole affordance is that this thing moves. */
.fc-pin--pick { cursor: grab; }
.fc-pin--pick:active { cursor: grabbing; }
.fc-pin--pick span { background: var(--fc-ember); }

.fc-consent label { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.fc-consent input { margin-top: .25rem; flex: none; }
.fc-terms { font-size: .82rem; line-height: 1.5; margin: .8rem 0 .5rem; opacity: .85; }

/* Honeypot: off-screen, not display:none — bots skip hidden fields. */
.fc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- likes ---------- */

.fc-like {
	display: inline-flex;
	gap: .45em;
	align-items: center;
	padding: .45em .9em;
	border: 1px solid var(--fc-line);
	background: transparent;
	color: var(--fc-text);
	font: inherit;
	cursor: pointer;
}

.fc-like:hover:not(:disabled) { border-color: var(--fc-amber); }
.fc-like__mark { color: var(--fc-line); transition: color .2s; }
.fc-like.is-liked .fc-like__mark { color: var(--fc-accent); }
.fc-like:disabled { cursor: default; }

/* ---------- map ---------- */

/* width:100% because Breakdance renders its Code Block wrapper as a flex
   container — without it the atlas shrinks to content width. */
.fc-atlas { width: 100%; }
.fc-map-stage { position: relative; width: 100%; min-height: 320px; }
.fc-map { width: 100%; height: 100%; background: var(--fc-bg); }

/* The whole "weathered atlas" look, in one line.
   invert + hue-rotate(185deg) turns the bright OSM basemap dark while keeping
   water blue-ish; sepia/saturate then push it toward aged pine. */
.fc-map-stage.grade-invert .leaflet-tile-pane {
	filter: invert(1) hue-rotate(185deg) brightness(.68) contrast(1.15) sepia(.6) saturate(1.6);
}

/* Stamen Terrain is already parchment-toned — just age it slightly. */
.fc-map-stage.grade-age .leaflet-tile-pane {
	filter: sepia(.35) saturate(.85) contrast(1.05) brightness(.97);
}

/* Stamen terrain relief aged to dark paper (FC-36, retuned FC-44): forest goes
   near-black olive, dry country stays warm tan, water slate. Brightness and
   contrast pull against each other here — contrast above ~1.5 crushes the
   forest to flat black and the ridges vanish; below ~1.3 the map turns to
   mustard. Sepia stays low so it reads charcoal, not brown. */
.fc-map-stage.grade-paper .leaflet-tile-pane {
	filter: sepia(.6) saturate(.8) hue-rotate(4deg) brightness(.58) contrast(1.4);
}

/* Stamen's names are black with a white halo; inverted they become light with
   a dark halo — legible on the darkened relief — and sepia warms the white to
   the cream of the rest of the page. */
.fc-map-stage .leaflet-fc-labels-pane {
	filter: grayscale(1) invert(1) sepia(.7) saturate(1.4) brightness(.92);
	opacity: .95;
}

.fc-map-stage.grade-paper::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 405;
	pointer-events: none;
	background: var(--fc-tex);
	mix-blend-mode: soft-light;
	opacity: .95;
}

/* Burnt edges and a red-brown keyline. Above the map pane (400), below the
   legend (440) and Leaflet's controls (1000) — edge-only, so a pin near the
   rim is dimmed a little rather than hidden. */
.fc-map-stage.grade-paper::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 410;
	pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 52%, rgba(22, 13, 8, .72) 100%);
	box-shadow: inset 0 0 0 1px var(--fc-edge), inset 0 0 80px rgba(0, 0, 0, .55);
}

.fc-map .leaflet-control-attribution {
	background: rgba(13, 19, 16, .8);
	color: var(--fc-text);
}

.fc-map .leaflet-control-attribution a { color: var(--fc-amber); }

/* Ember glass (FC-43): pins and clusters are lit from inside rather than
   solid discs, so the terrain shows through and the ring reads as a glow. */
:root {
	--fc-glass: radial-gradient(circle at 50% 42%, rgba(52, 12, 8, .72), rgba(34, 7, 4, .86) 72%);
	--fc-glass-ring: rgba(255, 96, 66, .92);
	--fc-glass-glow: 0 0 6px rgba(255, 84, 52, .85), 0 0 22px rgba(214, 48, 26, .55), inset 0 0 14px rgba(255, 78, 48, .5);
}

.fc-pin span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 2px;
	border: 2px solid var(--fc-glass-ring);
	border-radius: 50%;
	background: var(--fc-glass);
	/* Frosts map labels behind the count so they don't read through it. */
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	box-shadow: var(--fc-glass-glow);
	color: var(--fc-ink);
	text-shadow: 0 0 6px rgba(255, 84, 52, .9);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.fc-pin--active span { animation: fc-pulse 2.2s ease-out infinite; }

@keyframes fc-pulse {
	0%   { box-shadow: var(--fc-glass-glow), 0 0 0 0 rgba(214, 48, 26, .55); }
	70%  { box-shadow: var(--fc-glass-glow), 0 0 0 18px rgba(214, 48, 26, 0); }
	100% { box-shadow: var(--fc-glass-glow), 0 0 0 0 rgba(214, 48, 26, 0); }
}

/* The fan: a place holding several kinds of story offers them before the
   panel opens, as a row of teardrop pins rising above it (FC-95). Faces
   come from pinFace() in map.js, so they match the map's pins. */
.fc-fan {
	position: absolute;
	z-index: 600;
	display: flex;
	gap: .35rem;
	align-items: flex-end;
	/* Anchored on the pin, sitting just above it. */
	transform: translate(-50%, calc(-100% - 22px));
	pointer-events: none;
}

.fc-fan[hidden] { display: none; }

.fc-tpin--fan {
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	pointer-events: auto;
	animation: fc-fan-in .22s ease-out backwards;
	animation-delay: calc(var(--fc-fan-i, 0) * 50ms);
}

.fc-tpin--fan .fc-tpin__pin { width: 52px; height: 68px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .75)); }
.fc-tpin--fan:focus-visible { outline: none; }
.fc-tpin--fan:focus-visible .fc-tpin__pin { filter: drop-shadow(0 0 6px rgba(255, 84, 52, .9)); }

@keyframes fc-fan-in {
	from { opacity: 0; transform: translateY(10px) scale(.8); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fc-tpin--fan { animation: none; }
}

/* Heading shown when the panel is narrowed to one icon. */
.fc-file__filter {
	display: flex;
	gap: .5rem;
	align-items: center;
	margin: 0 0 .9rem;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.fc-file__filter img { width: 22px; height: 22px; object-fit: contain; filter: brightness(1.9) saturate(1.2); }
.fc-file__filter span { flex-grow: 1; color: var(--fc-paper); }

.fc-file__filter button {
	padding: .25em .6em;
	border: 1.5px solid var(--fc-edge);
	border-radius: 3px;
	background: transparent;
	color: var(--fc-text);
	font: inherit;
	cursor: pointer;
}

.fc-file__filter button:hover { border-color: var(--fc-glass-ring); }

/* Clusters are teardrop pins a size up (FC-77) — see .fc-tpin--cluster.
   MarkerCluster.Default.css is not loaded: its blue bubbles fight the palette. */

.fc-legend {
	display: flex;
	gap: 1.2rem;
	padding: .7rem 1rem;
	background: var(--fc-panel);
	color: var(--fc-text);
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.fc-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: .35em;
	border-radius: 50%;
}

.fc-dot--standard { background: var(--fc-amber); }
.fc-dot--active { background: var(--fc-ember); }

/* ---------- case file panel ---------- */

/* Dark paper like the rest of the atlas (FC-45): the texture under a warm
   wash, a red-brown keyline, and a scorched inner edge. */
.fc-file {
	position: absolute;
	z-index: 500;
	isolation: isolate;
	/* Mobile: a bottom sheet that stops above Leaflet's attribution line, which
	   wraps to two lines at phone width and would otherwise print over the card. */
	inset: auto 0 2.7rem 0;
	max-height: 70%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	/* Top: the close button's own strip (.8rem + 30px + a gap), so content
	   scrolling in the body never slides under the button. */
	padding: 3.3rem 1rem 1.3rem 1.3rem;
	color: var(--fc-text);
}

/* The sheet itself is the torn paper (FC-46): fill and border live on ::before,
   through #fc-worn, so the edge goes ragged while the text stays crisp. The
   scrolling therefore moves to the body — a scrolling host would drag its own
   ::before up with the content. */
.fc-file::before {
	border: 2px solid rgba(160, 66, 46, .5);
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(255, 236, 214, .04), rgba(0, 0, 0, .18)), var(--fc-tex), var(--fc-sheet);
	box-shadow:
		inset 0 0 40px rgba(110, 36, 20, .4),
		inset 0 0 4px rgba(0, 0, 0, .8),
		0 8px 20px rgba(0, 0, 0, .6);
}

.fc-file__body {
	flex: 1;
	min-height: 0;
	padding-right: .3rem;
	overflow-y: auto;
	scrollbar-color: #5a4636 transparent;
	scrollbar-width: thin;
}

.fc-file[hidden] { display: none; }

/* Same ember-glass ring as the pins, so it reads as part of the map. */
.fc-file .fc-file__close {
	position: absolute;
	top: .8rem;
	right: .8rem;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1.5px solid var(--fc-glass-ring);
	border-radius: 50%;
	background: var(--fc-glass);
	box-shadow: 0 0 10px rgba(255, 84, 52, .45);
	color: #f1e4d6;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.fc-file .fc-file__close:hover,
.fc-file .fc-file__close:focus-visible { box-shadow: 0 0 16px rgba(255, 84, 52, .8); }

.fc-file__sketch {
	display: block;
	width: 100%;
	margin: 0 0 .8rem;
	max-height: 200px;
	object-fit: cover;
	filter: sepia(.55) contrast(1.08) brightness(.88);
}

/* Double-scoped deliberately: Breakdance ships `.breakdance h1..h6 {color}`
   at specificity (0,1,1), which beats a lone class and would render this
   near-black on the dark panel. Do not flatten this selector. */
.fc-file .fc-file__title {
	margin: 0 2.2rem .35rem 0;
	color: #efe5d8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.2;
}

.fc-file .fc-file__place {
	margin: 1.2rem 0 .5rem;
	padding-top: .8rem;
	border-top: 1px solid var(--fc-line);
	color: #efe5d8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1rem;
	font-weight: 400;
}

.fc-file__loc {
	margin: 0 0 .8rem;
	color: var(--fc-paper);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.fc-file__tags { margin: 0 0 .8rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* Visited (FC-135): amber, a level of its own beside Active Threat's red. */
:root { --fc-visited: #d6a24a; }
.fc-file__stamp--visited { background: #8a6420; }
.fc-story__flag--visited { color: var(--fc-visited); }

/* The filled red stamp, as on the cards — red is the fill, the words stay light. */
.fc-file__stamp {
	display: inline-block;
	margin: 0 0 .9rem;
	padding: .2em .7em;
	border-radius: 2px;
	background: var(--fc-red-fill);
	color: #f1e4d6;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	transform: rotate(-2deg);
	box-shadow: 0 0 12px rgba(221, 90, 68, .35);
}

.fc-file__excerpt { margin: 0 0 1rem; line-height: 1.6; }
.fc-audio { width: 100%; margin-bottom: 1rem; }

/* The place's own history, before the accounts filed there. */
.fc-file__history {
	margin: 0 0 1.2rem;
	padding-bottom: 1.2rem;
	border-bottom: 1px solid var(--fc-edge);
	font-family: 'Lora', Georgia, serif;
	font-size: .95rem;
	line-height: 1.7;
	color: #d8cdbd;
}

.fc-file__stories { display: grid; gap: .7rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }

/* Each account is a small card in the sidebar's style: a scorched, red-edged
   slip of paper. The title link is stretched across it (::after), so the whole
   card is the target; the "Read" line is decoration. */
.fc-story {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	align-items: start;
	gap: .45rem .8rem;
	padding: .7rem .7rem 3.1rem;
}

.fc-story.is-bare { grid-template-columns: minmax(0, 1fr); padding-left: .85rem; }

.fc-story__plate {
	grid-column: 1;
	grid-row: 1 / span 2;
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	border: 1px solid rgba(214, 205, 194, .14);
	border-radius: 2px;
	background: var(--fc-tex);
	overflow: hidden;
}

/* Two classes: Breakdance's `.breakdance img{height:auto}` loads after us. */
.fc-story .fc-story__plate img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: sepia(.55) contrast(1.08) brightness(.88);
}

.fc-story__body { display: contents; }
.fc-story__tags, .fc-story .fc-story__link { grid-column: 2; min-width: 0; }
.fc-story.is-bare .fc-story__tags, .fc-story.is-bare .fc-story__link { grid-column: 1; }
.fc-story__meta, .fc-story__excerpt { grid-column: 1 / -1; }

.fc-story__case {
	justify-self: start;
	padding: .14em .6em;
	border-radius: 2px;
	background: var(--fc-red-fill);
	color: #f1e4d6;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .6rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* Doubled: a theme's `.theme a` rule would otherwise win. */
.fc-story .fc-story__link {
	color: #efe5d8;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.02rem;
	line-height: 1.25;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
}

.fc-story .fc-story__link::after { content: ''; position: absolute; inset: 0; }

.fc-story .fc-story__link:hover,
.fc-story .fc-story__link:focus-visible { color: #fff; }

/* One meta row per story, so every item in the list is the same shape.
   An active threat is flagged by a chip here, never by changing the row's
   geometry — that read as two different components. */
.fc-story__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	align-items: center;
}

.fc-story__tag,
.fc-story__audio,
.fc-story__flag {
	font-size: .66rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .65;
}

.fc-story__audio { color: var(--fc-paper); opacity: .9; }

.fc-story__flag {
	padding: .3em .7em;
	border: 1px solid var(--fc-edge);
	border-radius: 2px;
	color: var(--fc-red-text);
	opacity: 1;
}

.fc-story__excerpt {
	font-family: 'Lora', Georgia, serif;
	font-size: .84rem;
	line-height: 1.55;
	color: #cfc4b4;
	opacity: .8;
}

.fc-story__open {
	position: absolute;
	isolation: isolate;
	right: .7rem;
	bottom: .55rem;
	padding: .6em 1.1em;
	color: #f6ece2;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
	transition: filter .15s ease;
	/* Decoration only: the title link's ::after is the click target, and this
	   sits later in the DOM, so without this it swallows the click. */
	pointer-events: none;
}

/* Same primary-button stamp as the header CTA; the worn-edge ::before is
   shared in the surfaces rule below. */
.fc-story__open::before {
	border: 1px solid rgba(240, 200, 180, .28);
	border-radius: 2px;
	background:
		var(--fc-grain),
		radial-gradient(140% 120% at 50% 0%, #b8382a, var(--fc-red-fill) 70%, #5c150d);
	box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), 0 0 20px rgba(184, 56, 42, .35);
}

.fc-story:hover .fc-story__open,
.fc-story:focus-within .fc-story__open { filter: brightness(1.15); color: #fff; }

.fc-map-list ul ul { margin: .3rem 0 .6rem 1.1rem; }

.fc-file .fc-btn.fc-btn {
	position: relative;
	isolation: isolate;
	padding: .75em 1.4em;
	border: 0;
	background: none;
	color: #f6ece2;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .78rem;
	letter-spacing: .14em;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
	transition: filter .15s ease;
}

.fc-file .fc-btn.fc-btn::before {
	border: 1px solid rgba(240, 200, 180, .28);
	border-radius: 2px;
	background:
		var(--fc-grain),
		radial-gradient(140% 120% at 50% 0%, #b8382a, var(--fc-red-fill) 70%, #5c150d);
	box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), 0 0 20px rgba(184, 56, 42, .35);
}

.fc-file .fc-btn.fc-btn:hover,
.fc-file .fc-btn.fc-btn:focus-visible { background: none; filter: brightness(1.15); color: #fff; }

@media (min-width: 782px) {
	.fc-file {
		inset: 1rem 1rem auto auto;   /* desktop: right-hand drawer, as tall as its content */
		width: 23rem;
		max-height: calc(100% - 2rem);
	}
}

/* ---------- accessible fallback list ---------- */

.fc-map-list {
	padding: .8rem 1rem;
	background: var(--fc-panel);
	color: var(--fc-text);
}

.fc-map-list summary { cursor: pointer; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
/* `li a` rather than `a`: a bare `.fc-map-list a` only ties with a theme's
   `.theme a` rule, leaving the winner to source order. */
.fc-map-list li a { color: var(--fc-amber); }

@media (prefers-reduced-motion: reduce) {
	.fc-pin--active span { animation: none; }
}

/* =========================================================================
   The atlas: category bar + filter sidebar + full-bleed map
   ====================================================================== */

.fc-atlas {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--fc-bg);
	color: var(--fc-text);
}

/* Full viewport. The negative margins break out of a page builder's
   centred container, which would otherwise cap the map at the content width. */
.fc-atlas.is-screen {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	height: 100vh;
	height: 100dvh;   /* dvh so mobile browser chrome doesn't crop the map */
}

.fc-atlas.is-screen .fc-atlas__body { flex: 1; min-height: 0; }
.fc-atlas.is-screen .fc-map-stage { height: 100%; }
/* ---------- category bar ---------- */

.fc-cats {
	display: flex;
	flex-shrink: 0;
	gap: .55rem;
	padding: .7rem 1rem;
	overflow-x: auto;
	border-bottom: 1px solid var(--fc-edge);
	background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), var(--fc-page-bg) center / cover fixed, var(--fc-sheet);
	scrollbar-width: thin;
}

/* Secondary buttons: outlined, a subtle red border, nothing filled until on. */
.fc-cat {
	display: inline-flex;
	flex-shrink: 0;
	gap: .55em;
	align-items: center;
	padding: .42em 1.05em;
	border: 0;
	background: none;
	color: var(--fc-text);
	font-family: 'Lora', Georgia, serif;
	font-size: .82rem;
	cursor: pointer;
}

.fc-cat::before {
	border: 2px solid rgba(160, 66, 46, .5);
	border-radius: 999px;
	background: linear-gradient(rgba(8, 5, 4, .45), rgba(8, 5, 4, .45)), var(--fc-tex);
	box-shadow: inset 0 0 8px rgba(120, 40, 24, .35), inset 0 1px 0 rgba(255, 230, 200, .05);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fc-cat:hover::before { border-color: rgba(221, 90, 68, .75); }

.fc-cat__n {
	min-width: 1.35em;
	padding: .05em .35em;
	border-radius: 999px;
	background: rgba(214, 205, 194, .1);
	font-size: .78em;
	text-align: center;
}

/* On: a darker stamp red with a glow, not a bright fill — it should look
   pressed into the paper, not lit from behind. */
.fc-cat.is-on { color: #f4e9dd; }

.fc-cat.is-on::before {
	border-color: rgba(221, 90, 68, .85);
	background: var(--fc-grain), radial-gradient(circle at 50% 40%, #7a2015, #4a120c);
	box-shadow: 0 0 14px rgba(221, 90, 68, .45), inset 0 0 10px rgba(0, 0, 0, .55);
}

.fc-cat.is-on .fc-cat__n { background: rgba(0, 0, 0, .35); }

/* ---------- body ---------- */

.fc-atlas__body { display: flex; min-height: 0; }

/* Scroll / panel: dark sheet, grain, and a vignette that darkens the edges. */
.fc-side {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 350px;
	border-right: 1px solid var(--fc-edge);
	background:
		radial-gradient(130% 90% at 50% 30%, transparent 55%, rgba(0, 0, 0, .5)),
		var(--fc-page-bg) center / cover fixed,
		var(--fc-sheet);
}

.fc-side__head { padding: .9rem .9rem .5rem; }

/* ---- worn surfaces --------------------------------------------------------
   One pattern for every torn-paper edge: the element is transparent and its
   ::before carries the fill and border through the #fc-worn filter, so the
   outline goes ragged while the text inside stays sharp. `isolation` keeps
   the z-index:-1 layer above the panel behind it. */
.fc-head .fc-head__cta,
.fc-cat,
.fc-side__search,
.fc-entry,
.fc-story,
.fc-side__foot {
	position: relative;
	isolation: isolate;
}

.fc-head .fc-head__cta::before,
.fc-cat::before,
.fc-side__search::before,
.fc-entry::before,
.fc-story::before,
.fc-story__open::before,
.fc-entry__open::before,
.fc-file::before,
.fc-file .fc-btn.fc-btn::before,
.fc-side__foot::before,
.fc-atlas .fc-legend::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	filter: url(#fc-worn);
	pointer-events: none;
}

/* Input: dark field, thin red border, worn edge, muted placeholder. */
.fc-side__search { display: block; }

.fc-side__search::before {
	/* 2px, translucent: thick enough that the fray never breaks it into
	   dashes, faint enough that it still reads as a thin edge. */
	border: 2px solid rgba(160, 66, 46, .5);
	border-radius: 3px;
	background: linear-gradient(rgba(6, 4, 3, .55), rgba(6, 4, 3, .55)), var(--fc-tex);
	box-shadow:
		inset 0 3px 10px rgba(0, 0, 0, .7),
		inset 0 0 14px rgba(120, 40, 24, .3),
		0 1px 0 rgba(255, 230, 200, .05);
}

.fc-side__search:focus-within::before { border-color: rgba(221, 90, 68, .85); }

.fc-side__glass {
	position: absolute;
	left: .8rem;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	color: var(--fc-text);
	opacity: .55;
	pointer-events: none;
}

.fc-side__search input {
	width: 100%;
	box-sizing: border-box;
	padding: .68em .9em .68em 2.5em;
	border: 0;
	background: transparent;
	color: var(--fc-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .84rem;
	letter-spacing: .03em;
}

.fc-side__search input::placeholder { color: var(--fc-text); opacity: .45; }
.fc-side__search input:focus { outline: none; }

/* "3 KNOWN ACCOUNTS ————" — the rule runs on to the panel edge. */
.fc-side__count {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin: .85rem 0 0;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .74rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--fc-text);
}

.fc-side__count::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--fc-edge), transparent);
}

.fc-side__list {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: .35rem .9rem .9rem;
	overflow-y: auto;
	list-style: none;
	display: grid;
	gap: .65rem;
	/* Grid rows stretch to fill the column by default, which turned three
	   cards into three 190px slabs of mostly nothing. Start packs them. */
	align-content: start;
	scrollbar-width: thin;
	scrollbar-color: var(--fc-edge) transparent;
}

/* Border / container: torn-paper card. */
.fc-entry::before,
.fc-story::before {
	border: 2px solid rgba(160, 66, 46, .48);
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(255, 236, 214, .05), rgba(0, 0, 0, .12)), var(--fc-tex), var(--fc-sheet-2);
	/* The burn: a warm darkening inward from the rim, the way a sheet scorches
	   at its edge before anywhere else. A soft gradient survives the filter;
	   a hard line would not. */
	box-shadow:
		inset 0 0 18px rgba(110, 36, 20, .38),
		inset 0 0 3px rgba(0, 0, 0, .8),
		inset 0 1px 0 rgba(255, 230, 200, .06),
		0 6px 16px rgba(0, 0, 0, .55);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fc-entry:hover::before,
.fc-entry.is-on::before,
.fc-story:hover::before,
.fc-story:focus-within::before {
	border-color: rgba(221, 90, 68, .8);
	box-shadow:
		inset 0 0 18px rgba(130, 40, 22, .45),
		inset 0 0 3px rgba(0, 0, 0, .8),
		0 6px 16px rgba(0, 0, 0, .55),
		0 0 16px rgba(221, 90, 68, .28);
}

.fc-entry__btn {
	display: flex;
	gap: .8rem;
	width: 100%;
	padding: .55rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.fc-entry__plate {
	position: relative;
	flex-shrink: 0;
	width: 82px;
	height: 76px;
	border: 1px solid rgba(214, 205, 194, .14);
	border-radius: 2px;
	background: linear-gradient(140deg, rgba(90, 66, 46, .25), rgba(0, 0, 0, .35)), var(--fc-tex);
}

.fc-entry .fc-entry__plate img {
	/* Two classes: Breakdance's `.breakdance img{height:auto}` loads after us. */
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: sepia(.55) contrast(1.08) brightness(.88);
}

/* The creature mark overlaps the plate's corner, the way a stamp would. */
.fc-entry__mark {
	position: absolute;
	right: -8px;
	bottom: -6px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 2px solid var(--fc-key, #4a4a42);
	border-radius: 50%;
	background: var(--fc-key, #4a4a42);
	box-shadow: 0 2px 6px rgba(0, 0, 0, .55);
}

.fc-entry__mark img { width: 21px; height: 21px; object-fit: cover; border-radius: 50%; display: block; }

/* Case number and, on a card with no plate, the creature mark beside it. */
.fc-entry__tags { display: flex; align-items: center; gap: .45rem; }

.fc-entry__mark--inline {
	position: static;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.fc-entry__mark--inline img { width: 18px; height: 18px; }

/* No plate: the text takes the card's full width, with a little more air on
   the left so it does not sit on the torn edge. */
.fc-entry.is-bare .fc-entry__btn { padding-left: .85rem; }
.fc-entry .fc-entry__btn { padding-bottom: 1.3rem; }

.fc-entry__meta {
	display: grid;
	align-content: start;
	gap: .22rem;
	min-width: 0;
	/* Room on the last line for the Read link, which sits over this corner. */
	padding-bottom: 1.1rem;
}

/* A filled red stamp, light text — the one place red carries words, so it is
   the fill that is red, not the type. */
.fc-entry__case {
	justify-self: start;
	padding: .14em .6em;
	border-radius: 2px;
	background: var(--fc-red-fill);
	color: #f1e4d6;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .62rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.fc-entry__title {
	font-family: 'Lora', Georgia, serif;
	font-size: 1.02rem;
	line-height: 1.22;
	color: #efe5d8;
	/* One line, however long (FC-55); the full title is the tooltip. */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fc-entry__place {
	display: flex;
	align-items: center;
	gap: .3em;
	font-size: .74rem;
	color: var(--fc-text);
	opacity: .7;
}

.fc-entry__place svg { flex-shrink: 0; width: 11px; height: 11px; color: var(--fc-red-text); }

/* Over the card's bottom-right corner instead of on a row of its own — that
   extra row was most of the height each card wasted. */
.fc-entry__open {
	position: absolute;
	isolation: isolate;
	right: .7rem;
	bottom: .55rem;
	padding: .6em 1.1em;
	color: #f6ece2;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
	transition: filter .15s ease;
}

/* The same stamp as the pin panel's Read button (.fc-story__open). */
.fc-entry__open::before {
	border: 1px solid rgba(240, 200, 180, .28);
	border-radius: 2px;
	background:
		var(--fc-grain),
		radial-gradient(140% 120% at 50% 0%, #b8382a, var(--fc-red-fill) 70%, #5c150d);
	box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), 0 0 20px rgba(184, 56, 42, .35);
}

.fc-entry__open:hover,
.fc-entry__open:focus-visible { filter: brightness(1.15); color: #fff; }

.fc-side__empty { padding: 1rem; opacity: .6; font-size: .85rem; }

/* The strip the panel ends on: old paper, torn top and bottom. */
.fc-side__foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .7em;
	margin: .4rem .5rem .7rem;
	padding: 1rem .8rem;
	color: rgba(48, 32, 20, .78);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.fc-side__foot::before {
	filter: url(#fc-torn);
	background:
		var(--fc-grain),
		radial-gradient(120% 140% at 50% 50%, transparent 40%, rgba(70, 48, 28, .55)),
		var(--fc-paper);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .55);
}

.fc-side__foot svg { width: 16px; height: 16px; color: rgba(48, 32, 20, .75); }

/* ---------- locate control ---------- */

.fc-locate {
	position: absolute;
	/* Under Leaflet's zoom pair, top-left — bottom-right is the compass. */
	left: 10px;
	top: 86px;
	z-index: 450;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--fc-edge);
	border-radius: 3px;
	background: var(--fc-tex), var(--fc-sheet);
	color: var(--fc-text);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .55);
	cursor: pointer;
}

.fc-locate:hover { color: var(--fc-red-text); }
/* ---------- legend and compass sit over the map ---------- */

.fc-atlas .fc-legend {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 440;
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: .65rem 1.05rem;
}

/* Same worn-sheet treatment as the cards; the ::before geometry is shared. */
.fc-atlas .fc-legend::before {
	border: 1px solid var(--fc-edge);
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(255, 236, 214, .05), rgba(0, 0, 0, .15)), var(--fc-tex), var(--fc-sheet-2);
	box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
}

.fc-legend__mark svg { display: block; width: 24px; height: 24px; color: var(--fc-red-text); }

.fc-legend__text { display: grid; gap: .15rem; }

.fc-legend__text b {
	font-family: 'Lora', Georgia, serif;
	font-size: .95rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #efe5d8;
	font-weight: 600;
}

.fc-legend__text small { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }

.fc-legend__live {
	display: flex;
	align-items: center;
	gap: .45em;
	padding-left: .95rem;
	border-left: 1px solid var(--fc-edge);
	color: var(--fc-red-text);
	font-size: .64rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .75;
}

/* Below this the legend reaches across to the compass and clips its own last
   word. The compass is decoration; the legend is information — it yields. */
@media (max-width: 1180px) {
	.fc-rose { display: none; }
}

.fc-legend__live .fc-dot {
	background: var(--fc-red-text);
	box-shadow: 0 0 8px rgba(221, 90, 68, .9);
}

/* Orientation, and the one piece of furniture that says "atlas". */
.fc-rose {
	position: absolute;
	right: 16px;
	bottom: 34px;
	z-index: 440;
	width: 78px;
	height: 78px;
	padding: 4px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(13, 19, 16, .72) 55%, transparent 72%);
	opacity: .9;
	pointer-events: none;
	color: var(--fc-ink);
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8));
}

.fc-rose__ring { fill: none; stroke: currentColor; stroke-width: 1; opacity: .5; }
.fc-rose__star { fill: currentColor; opacity: .75; }
.fc-rose__star--minor { opacity: .45; }

.fc-rose__n {
	fill: currentColor;
	font-size: 10px;
	letter-spacing: .08em;
	text-anchor: middle;
	opacity: .85;
}

/* Leaflet ships its own control skin and its stylesheet is enqueued after
   ours, so at equal specificity it wins. One extra class settles it without
   reaching for !important. */
.fc-map-stage .fc-map .leaflet-bar a,
.fc-map-stage .fc-map .leaflet-bar a:hover {
	width: 32px;
	height: 32px;
	line-height: 32px;
	border-bottom-color: var(--fc-edge);
	background: var(--fc-tex), var(--fc-sheet);
	color: #efe5d8;
	font-weight: 400;
}

.fc-map-stage .fc-map .leaflet-bar {
	border: 1px solid var(--fc-edge);
	border-radius: 3px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .55);
}

.fc-map-stage .fc-map .leaflet-bar a:hover { color: var(--fc-red-text); }

/* Credit stays legible and stops being a white bar across the bottom. */
.fc-map-stage .fc-map .leaflet-control-attribution {
	padding: 2px 8px;
	border-top-left-radius: 3px;
	background: rgba(13, 19, 16, .82);
	color: rgba(214, 205, 194, .65);
	font-size: 10px;
}

.fc-map-stage .fc-map .leaflet-control-attribution a { color: var(--fc-amber); }

/* On a phone the map is a band, not a page: the compass has nowhere to sit
   without landing on a pin, and the full breakdown wraps to three lines. Keep
   the plate and the live dot, drop the rest. */
@media (max-width: 781px) {
	.fc-rose { display: none; }

	.fc-atlas .fc-legend {
		left: 10px;
		right: 10px;
		bottom: 28px;
		gap: .6rem;
		padding: .45rem .7rem;
	}

	.fc-legend__text small { display: none; }
	.fc-legend__live { margin-left: auto; padding-left: .6rem; }
}

/* ---------- mobile: sidebar becomes a sheet under the map ---------- */

@media (max-width: 781px) {
	.fc-atlas__body { flex-direction: column; }

	.fc-side {
		order: 2;
		width: auto;
		max-height: 45%;
		border-right: 0;
		border-top: 1px solid var(--fc-line);
	}

	.fc-atlas.is-screen .fc-map-stage { flex: 1; height: auto; min-height: 45%; }
}

/* =========================================================================
   Light basemap overrides (Stamen Terrain)

   The palette inverts on parchment. Measured against the graded terrain
   (~#DED6BE): Lantern Amber 1.56:1 and Ember 2.74:1 both FAIL the 3:1 floor
   for non-text UI, while Crimson Rust — unusable on the dark map — reaches
   5.28:1. So the pin roles swap: Pine for a sighting (12.94:1), Rust for an
   active threat (5.28:1). Those two differ in lightness, not hue alone, and
   active still carries the pulse as a second, non-colour cue.
   ====================================================================== */

.fc-map-stage.tone-light .fc-pin span {
	background: var(--fc-bg);
	color: var(--fc-text);
	border-color: rgba(255, 255, 255, .45);
	box-shadow: 0 0 0 3px rgba(13, 19, 16, .18);
}

.fc-map-stage.tone-light .fc-pin--active span {
	background: var(--fc-accent);
	color: #f5efe8;
	box-shadow: 0 0 0 4px rgba(139, 58, 43, .22);
}

@keyframes fc-pulse-light {
	0%   { box-shadow: 0 0 0 0 rgba(139, 58, 43, .55); }
	70%  { box-shadow: 0 0 0 14px rgba(139, 58, 43, 0); }
	100% { box-shadow: 0 0 0 0 rgba(139, 58, 43, 0); }
}

.fc-map-stage.tone-light .fc-pin--active span { animation: fc-pulse-light 2.2s ease-out infinite; }

/* The legend sits over the map, so it flips too — a pine dot on a dark
   panel would be invisible. */
.fc-map-stage.tone-light .fc-legend {
	background: rgba(245, 239, 232, .92);
	border-color: rgba(13, 19, 16, .25);
	color: var(--fc-bg);
}

.fc-map-stage.tone-light .fc-dot--standard { background: var(--fc-bg); }
.fc-map-stage.tone-light .fc-dot--active { background: var(--fc-accent); }

.fc-map-stage.tone-light .fc-locate {
	background: rgba(245, 239, 232, .92);
	border-color: rgba(13, 19, 16, .25);
	color: var(--fc-bg);
}

.fc-map-stage.tone-light .fc-locate:hover { color: var(--fc-accent); border-color: var(--fc-accent); }

.fc-map-stage.tone-light .leaflet-control-attribution {
	background: rgba(245, 239, 232, .85);
	color: #3a352c;
}

.fc-map-stage.tone-light .leaflet-control-attribution a { color: #7a4b2a; }

@media (prefers-reduced-motion: reduce) {
	.fc-map-stage.tone-light .fc-pin--active span { animation: none; }
}

/* Full-bleed: neutralise the page builder's section padding on the map page.

   Scoped by :has() to the one or two ancestors that directly wrap a
   full-screen atlas, so it cannot reach anything else on the site, and it
   only ever applies on a page that contains one.

   The cleaner fix is still to set that section's padding to 0 in Breakdance —
   this exists so the page is right even if nobody remembers to. */
:is(div, section, main):has(> .fc-atlas.is-screen),
:is(div, section, main):has(> * > .fc-atlas.is-screen) {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* An already-dark basemap (alidade_smooth_dark, satellite) needs no inversion —
   just a touch of warmth so it sits with the palette. */
.fc-map-stage.grade-none .leaflet-tile-pane {
	filter: sepia(.3) saturate(.9) brightness(.92) contrast(1.05);
}

/* =========================================================================
   Case file (single) and archive templates — FC-9
   ====================================================================== */

.fc-case {
	max-width: var(--fc-col);
	margin: 0 auto;
	padding: 3rem var(--fc-gutter) 4rem;
	box-sizing: border-box;
	color: var(--fc-text);
}

/* ---------- cinematic hero (FC-32) ----------

   The title sits inside the media. Full-bleed, because a letterboxed plate
   inside a 46rem column is a thumbnail, not a plate. Same escape as the atlas:
   out of the column, across the viewport, without a horizontal scrollbar. */

/* The plate meets the site header. The article's own top padding is the gap
   that was showing as a band above the video. */
.fc-case.has-plate { padding-top: 0; }

/* 100vw counts the scrollbar, so a full-bleed child overflows the body by its
   width — 8px here, enough to let the whole page slide sideways. `clip` stops
   that without creating a scroll container, so `position: sticky` elsewhere on
   the page keeps working (which `hidden` would break). Scoped by :has() to
   pages that actually have a plate. */
body:has(.fc-cine),
body:has(.fc-hp-hero, .fc-hp-cta),
body:has(.fc-atlas.is-screen) { overflow-x: clip; }

/* ---- Story pages on the client's paper (FC-37) ------------------------------
   Only <body> paints these pages — the Breakdance-built ones too, whose
   sections are transparent — so one layer covers both templates.

   A fixed pseudo-element, not a body background: the image is not seamless,
   and tiled down a long story it would show a join every screen or so. Fixed
   to the viewport there is only ever one sheet. And it has to be a layer of
   its own, because iOS Safari ignores `background-attachment: fixed` and
   scales a body `cover` image to the whole document height instead. */
/* Every page (FC-82: was story pages only), so the map and the submit form
   sit on the same background. */
body {
	background-color: var(--fc-sheet);
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .45)),
		var(--fc-page-bg) center / cover no-repeat;
}

.fc-cine {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	/* Tall enough to be a plate, never taller than the screen it is read on. */
	height: clamp(380px, 72vh, 760px);
	margin-bottom: .6rem;
	overflow: hidden;
	isolation: isolate;
}

.fc-cine__media {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	filter: sepia(.32) contrast(1.06) saturate(.92);
	-webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

/* object-fit does the cropping for image and video. An iframe cannot be
   cropped that way, so it is oversized instead — see below. */
.fc-cine__layer {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

/* A 16:9 iframe in a container of another ratio letterboxes, and the provider
   paints those bars black. Scaling it to whichever axis is short and centring
   it crops instead — the same result object-fit gives the other two. */
.fc-cine__media iframe.fc-cine__layer {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 177.78vh;      /* 16/9 of the height */
	min-width: 100%;
	height: 56.25vw;      /* 9/16 of the width  */
	min-height: 100%;
	transform: translate(-50%, -50%);
	pointer-events: none; /* it is scenery, not a player */
}

/* The scrim. Two stops, because one gradient cannot both lift the text off a
   bright sky and keep the middle of the picture visible. The bottom stop is
   opaque enough that Aged Bone White clears 7:1 over any frame. */
.fc-cine__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, transparent 0, rgba(18, 12, 9, .88) 20%, rgba(18, 12, 9, .68) 50%, rgba(18, 12, 9, .38) 78%, rgba(18, 12, 9, .55) 100%),
		radial-gradient(120% 80% at 50% 10%, transparent 40%, rgba(18, 12, 9, .5) 100%);
}

.fc-cine__inner {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	max-width: var(--fc-col);
	margin: 0 auto;
	padding: 0 var(--fc-gutter) 1.6rem;
	box-sizing: border-box;
}

.fc-cine__eyebrow {
	margin: 0 0 .7rem;
	color: var(--fc-amber);
	font-family: "Special Elite", ui-monospace, monospace;
	font-size: .76rem;
	letter-spacing: .22em;
	text-transform: uppercase;
}

.fc-cine__eyebrow span { opacity: .7; }

/* Doubled for specificity: themes and page builders both style bare h1. */
.fc-cine__title.fc-cine__title {
	margin: 0 0 1.1rem;
	color: #f5efe8;
	font-size: clamp(2.1rem, 6.2vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -.01em;
	/* Not a decoration: it is what holds the letterforms together where the
	   picture behind them is busiest. */
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 2px 28px rgba(0, 0, 0, .8);
	/* One line always (FC-55). folklore.js shrinks the type to fit; past its
	   floor, or with no script, the ellipsis takes over. The padding is room
	   for descenders, which overflow:hidden would otherwise clip. */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-bottom: .12em;
	margin-bottom: .98rem;
}

.fc-cine__slip {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem .9rem;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid rgba(214, 205, 194, .22);
}

.fc-cine__filed {
	color: var(--fc-text);
	font-size: .9rem;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

.fc-cine__filed a { color: var(--fc-amber); }

@media (max-width: 600px) {
	:root { --fc-gutter: 1rem; }
	.fc-cine { height: clamp(320px, 58vh, 460px); margin-bottom: .4rem; }
	.fc-cine__inner { padding-bottom: 1.2rem; }
	.fc-cine__slip { padding-top: .8rem; }
}

/* An autoplaying loop is motion the reader did not ask for. The video is
   paused by script; an iframe cannot be reached, so it is hidden and the
   poster behind it stands in. */
@media (prefers-reduced-motion: reduce) {
	.fc-cine__media iframe.fc-cine__layer,
	.fc-sv__media iframe { display: none; }
}

.fc-hero { margin: 0 0 1.8rem; }
.fc-hero__media { width: 100%; height: auto; display: block; filter: sepia(.4) contrast(1.05); }
.fc-hero__embed { position: relative; padding-bottom: 56.25%; }
.fc-hero__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fc-case__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	align-items: center;
	margin: 0 0 1rem;
}

.fc-chip {
	display: inline-block;
	padding: .3em .7em;
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}

.fc-chip--file { background: var(--fc-amber); color: var(--fc-bg); }
.fc-chip--threat { border: 1px solid var(--fc-ember); color: var(--fc-ember); }
.fc-chip--era { color: var(--fc-text); opacity: .6; }

/* Doubled: a theme's `.theme a` rule would otherwise take the colour. */
.fc-case .fc-chip--place { border: 1px solid var(--fc-line); color: var(--fc-amber); }
.fc-case .fc-chip--place:hover { border-color: var(--fc-amber); }

.fc-case .fc-case__title {
	margin: 0 0 .7rem;
	color: var(--fc-text);
	font-size: clamp(2rem, 5vw, 3.1rem);
	line-height: 1.12;
}

.fc-case__byline {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	margin: 0 0 1.2rem;
	font-size: .9rem;
	font-style: italic;
	opacity: .65;
}

.fc-case__icon { box-sizing: border-box; width: 28px; height: 28px; padding: 3px; border-radius: 50%; background: #4a4a42; object-fit: contain; }

.fc-case__audio {
	margin: 0 0 2rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--fc-line);
	background: var(--fc-panel);
}

.fc-case__audiolabel {
	margin: 0 0 .6rem;
	color: var(--fc-amber);
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.fc-case__audio audio { width: 100%; }

/* ---------- the field recorder ----------

   Native audio chrome is shadow DOM and cannot be styled, so folklore.js hides
   it and we draw the deck ourselves. Everything below only applies once the
   script has run; without it the rule above leaves the native player at full
   width, which is the correct fallback. */

.fc-rec[data-fc-rec] audio { display: none; }

/* The tape deck: two reels joined by a stretch of tape. */
.fc-rec__deck {
	display: flex;
	gap: .9rem;
	align-items: center;
	justify-content: center;
	margin: 0 0 1rem;
	padding: 1.1rem .9rem;
	border: 1px solid var(--fc-line);
	border-radius: 2px;
	background:
		radial-gradient(ellipse at 50% 0, rgba(212, 163, 115, .07), transparent 62%),
		rgba(0, 0, 0, .28);
}

.fc-rec__reel {
	position: relative;
	flex: none;
	width: 54px;
	height: 54px;
	border: 1px solid var(--fc-line);
	border-radius: 50%;
	background: radial-gradient(circle, var(--fc-panel) 0 24%, #2b211a 24% 46%, var(--fc-panel) 46%);
}

/* Three spokes, drawn as one repeating conic sweep rather than six elements. */
.fc-rec__reel::before {
	position: absolute;
	content: "";
	inset: 7px;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg,
		rgba(214, 205, 194, .32) 0 6deg, transparent 6deg 120deg,
		rgba(214, 205, 194, .32) 120deg 126deg, transparent 126deg 240deg,
		rgba(214, 205, 194, .32) 240deg 246deg, transparent 246deg
	);
	-webkit-mask: radial-gradient(circle, transparent 0 24%, #000 24%);
	mask: radial-gradient(circle, transparent 0 24%, #000 24%);
}

/* The hub, so a still reel still reads as a reel. */
.fc-rec__reel::after {
	position: absolute;
	content: "";
	inset: 22px;
	border-radius: 50%;
	background: var(--fc-amber);
	opacity: .55;
}

.fc-rec__tape {
	flex: 1;
	height: 2px;
	max-width: 190px;
	background: linear-gradient(90deg, var(--fc-line), rgba(212, 163, 115, .4), var(--fc-line));
}

@keyframes fc-reel {
	to { transform: rotate(360deg); }
}

.fc-rec.is-playing .fc-rec__reel { animation: fc-reel 3.2s linear infinite; }

/* The take-up reel pulls slightly faster than the supply reel — the small
   asymmetry is what stops it reading as two spinning circles. */
.fc-rec.is-playing .fc-rec__reel:last-of-type { animation-duration: 2.3s; }

.fc-rec__transport {
	display: flex;
	gap: .9rem;
	align-items: center;
}

.fc-rec__play {
	display: grid;
	flex: none;
	place-items: center;
	/* 44px: the smallest comfortable touch target, same floor as the burger. */
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--fc-ember);
	border-radius: 50%;
	background: transparent;
	color: var(--fc-ember);
	cursor: pointer;
}

.fc-rec__play:hover,
.fc-rec__play:focus-visible {
	background: var(--fc-ember);
	color: var(--fc-bg);
	outline: none;
}

.fc-rec__play:focus-visible { box-shadow: 0 0 0 3px rgba(201, 98, 47, .35); }

.fc-rec__play svg { width: 20px; height: 20px; fill: currentColor; }

/* One button, two glyphs: whichever the state is not, is hidden. */
.fc-rec__icon-pause,
.fc-rec.is-playing .fc-rec__icon-play { display: none; }
.fc-rec.is-playing .fc-rec__icon-pause { display: block; }

/* --p is the played fraction, written by the script. Both vendor tracks read
   it, so the fill cannot drift from the thumb. */
.fc-rec__seek {
	flex: 1;
	min-width: 0;
	height: 22px;
	margin: 0;
	padding: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.fc-rec__seek::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--fc-ember) var(--p, 0%), rgba(214, 205, 194, .2) var(--p, 0%));
}

.fc-rec__seek::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--fc-ember) var(--p, 0%), rgba(214, 205, 194, .2) var(--p, 0%));
}

.fc-rec__seek::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: var(--fc-amber);
	-webkit-appearance: none;
	appearance: none;
}

.fc-rec__seek::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: var(--fc-amber);
}

.fc-rec__seek:focus-visible { outline: 2px solid var(--fc-amber); outline-offset: 3px; }

/* Tabular figures: the counter must not jolt sideways every tick. */
.fc-rec__time {
	flex: none;
	color: var(--fc-amber);
	font-family: "Special Elite", ui-monospace, monospace;
	font-size: .82rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
}

.fc-rec__time b { font-weight: 400; }
.fc-rec__time i { margin: 0 .35em; font-style: normal; opacity: .4; }

@media (max-width: 420px) {
	.fc-rec__reel { width: 42px; height: 42px; }
	.fc-rec__reel::after { inset: 17px; }
	.fc-rec__deck { gap: .6rem; padding: .9rem .6rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fc-rec.is-playing .fc-rec__reel { animation: none; }
}

.fc-case__body { font-size: 1.12rem; line-height: 1.78; }
.fc-case__body > :first-child { margin-top: 0; }
.fc-case__body img { max-width: 100%; height: auto; }
.fc-case__body figure { margin: 2rem 0; }
.fc-case__body figcaption { margin-top: .6rem; font-size: .85rem; font-style: italic; opacity: .6; }

.fc-case__body blockquote {
	margin: 2rem 0;
	padding: 1.2rem 1.5rem;
	border-left: 3px solid var(--fc-ember);
	background: var(--fc-panel);
	font-style: italic;
}

.fc-case__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fc-line);
}

.fc-case__sibling { margin-left: auto; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.fc-case__comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--fc-line); }

/* ---------- archive ---------- */

.fc-archive { max-width: 100rem; margin: 0 auto;  /* 1600px, matching the Breakdance container (FC-67) */ padding: 3rem 1.25rem 4rem; color: var(--fc-text); }

.fc-archive__kicker {
	margin: 0 0 .5rem;
	color: var(--fc-amber);
	font-size: .72rem;
	letter-spacing: .26em;
	text-transform: uppercase;
}

.fc-archive .fc-archive__title,
.fc-pagehead .fc-archive__title { margin: 0 0 1rem; color: var(--fc-text); font-size: clamp(2rem, 5vw, 3rem); }
/* The same heading on a Breakdance page (Page Heading element, FC-84). */
.fc-pagehead { margin: 2.2rem 0 2rem; color: var(--fc-text); }
.fc-pagehead__text { max-width: 46rem; margin: 0; line-height: 1.7; opacity: .8; }

.fc-archive__photo { margin: 0 0 1.2rem; }
/* FC-145: back to a short banner (300 px, cropped to fit, centred) so the case files come up the page. */
.fc-archive__photo img { display: block; width: 100%; height: clamp(170px, 32vw, 300px); object-fit: cover; filter: sepia(.4) contrast(1.05); }
.fc-archive__history { max-width: 46rem; margin: 0 0 1rem; line-height: 1.7; opacity: .8; }
.fc-archive__count { margin: 0 0 1.4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.fc-archive__empty { padding: 3rem 0; font-size: 1.05rem; opacity: .75; }

/* Cards are the homepage's (fc_hp_card, FC-81); the old .fc-card is gone. */
.fc-archive__grid { --fc-hp-cols: 4; }

/* The map's category chips without the map's toolbar strip behind them. */
.fc-cats--plain {
	flex-wrap: wrap;
	margin: 0 0 2rem;
	padding: 0;
	overflow: visible;
	border: 0;
	background: none;
}

.fc-cats--plain .fc-cat { text-decoration: none; }

.fc-archive .pagination,
.fc-archive .nav-links { display: flex; gap: .8rem; justify-content: center; margin-top: 2.5rem; }
.fc-archive .nav-links a,
.fc-archive .nav-links span { padding: .5em .9em; border: 1px solid var(--fc-line); color: var(--fc-text); text-decoration: none; font-size: .8rem; }
.fc-archive .nav-links a:hover { border-color: var(--fc-amber); color: var(--fc-amber); }

/* =========================================================================
   Site header and mobile drawer — FC-8
   ====================================================================== */

:root { --fc-header-h: 76px; }
@media (max-width: 781px) { :root { --fc-header-h: 58px; } }

html.fc-locked, html.fc-locked body { overflow: hidden; }

/* Aged board rather than a flat bar: two gradients and a hairline of light
   along the bottom edge, so the header reads as a surface the rest of the
   site is pinned to. */
.fc-head {
	/* Stays at the top while the page scrolls, under the admin bar when there
	   is one (FC-67). Sticky, not fixed: it keeps its place in the flow, so
	   nothing below has to be pushed down by its height. */
	position: sticky;
	top: var(--fc-adminbar-sticky, 0px);
	z-index: 900;
	display: flex;
	align-items: center;
	gap: 2.25rem;
	height: var(--fc-header-h);
	box-sizing: border-box;
	padding: 0 1.5rem;
	border-bottom: 1px solid var(--fc-line);
	border-bottom-color: var(--fc-edge);
	background:
		radial-gradient(120% 180% at 12% 0%, rgba(110, 84, 60, .22), transparent 60%),
		linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)),
		/* fixed: sized to the screen like the page layer, so the header is a
		   window onto the same background instead of a strip of its own. */
		var(--fc-page-bg) center / cover fixed,
		var(--fc-sheet);
	box-shadow: inset 0 -1px 0 rgba(245, 239, 232, .04), 0 6px 20px rgba(0, 0, 0, .45);
}

.fc-head .fc-head__brand {
	display: flex;
	align-items: center;
	gap: .7rem;
	flex-shrink: 0;
	color: var(--fc-ink);
	text-decoration: none;
}

.fc-head__brand img { max-height: calc(var(--fc-header-h) - 26px); width: auto; display: block; }

.fc-head__sigil svg { display: block; width: 30px; height: 30px; color: var(--fc-ink); opacity: .9; }

/* "The" rides above the name rather than beside it, which is what makes the
   lockup read as a masthead instead of a sentence. */
.fc-head__words { display: grid; gap: .1rem; line-height: 1; }

.fc-head__words small {
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .58rem;
	letter-spacing: .3em;
	text-transform: uppercase;
	opacity: .6;
}

.fc-head__words strong {
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1.12rem;
	font-weight: 400;
	letter-spacing: .13em;
	text-transform: uppercase;
	white-space: nowrap;
}

.fc-nav { flex-grow: 1; }

.fc-nav__list {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-nav .fc-nav__list a {
	position: relative;
	display: block;
	padding-bottom: 6px;
	color: rgba(214, 205, 194, .72);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .8rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .15s ease;
}

/* The rule under the current page is drawn, not a border: a border would move
   the text, and this one glows. */
.fc-nav .fc-nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--fc-red-text);
	box-shadow: 0 0 10px rgba(221, 90, 68, .8);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .18s ease;
}

.fc-nav .fc-nav__list a:hover { color: var(--fc-ink); }
.fc-nav .fc-nav__list a:hover::after { transform: scaleX(1); }

.fc-nav .fc-nav__list .current-menu-item > a,
.fc-nav .fc-nav__list a[aria-current="page"] { color: var(--fc-red-text); }

.fc-nav .fc-nav__list .current-menu-item > a::after,
.fc-nav .fc-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* Primary button: solid stamp red, grain pressed into it, worn edges. The
   fill and frame live on ::before through #fc-worn (shared rule above), so the
   lettering stays sharp while the outline goes ragged. */
.fc-head .fc-head__cta {
	flex-shrink: 0;
	padding: .75em 1.4em;
	color: #f6ece2;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
	transition: filter .15s ease;
}

.fc-head .fc-head__cta::before {
	border: 1px solid rgba(240, 200, 180, .28);
	border-radius: 2px;
	background:
		var(--fc-grain),
		radial-gradient(140% 120% at 50% 0%, #b8382a, var(--fc-red-fill) 70%, #5c150d);
	box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), 0 0 20px rgba(184, 56, 42, .35);
}

.fc-head .fc-head__cta:hover { filter: brightness(1.15); color: #fff; }

@media (max-width: 781px) {
	.fc-head { gap: 1rem; padding: 0 1rem; }
	.fc-head__sigil svg { width: 24px; height: 24px; }
	.fc-head__words strong { font-size: .92rem; letter-spacing: .1em; }
	.fc-head__words small { font-size: .52rem; }
}

/* ---------- burger ---------- */

.fc-burger {
	display: none;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.fc-burger span {
	display: block;
	width: 22px;
	height: 1px;
	background: var(--fc-text);
	transition: transform .2s, opacity .2s;
}

.fc-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fc-burger.is-open span:nth-child(2) { opacity: 0; }
.fc-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- drawer ---------- */

.fc-drawer {
	position: fixed;
	z-index: 890;
	inset: var(--fc-header-h) 0 0 0;
	padding: 1.5rem 1.25rem 2rem;
	background: var(--fc-bg);
	overflow-y: auto;
}

.fc-drawer[hidden] { display: none; }
.fc-drawer__nav { display: flex; flex-direction: column; }
.fc-drawer .fc-nav__list { flex-direction: column; gap: 0; }

.fc-drawer .fc-nav__list a {
	display: block;
	padding: 1rem 0;
	border-bottom: 1px solid var(--fc-line);
	color: var(--fc-text);
	font-size: 1rem;
	letter-spacing: .1em;
}

.fc-drawer .fc-drawer__cta {
	margin-top: 1.5rem;
	padding: 1em;
	background: var(--fc-accent);
	color: #f5efe8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .85rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	border-radius: 2px;
}

@media (max-width: 781px) {
	.fc-head { gap: .75rem; }
	.fc-nav,
	.fc-head__cta { display: none; }
	.fc-burger { display: flex; }
	.fc-head__brand { flex-grow: 1; font-size: .85rem; }
}

@media (min-width: 782px) {
	.fc-drawer { display: none; }
}

/* The atlas is full-screen MINUS the header, or the page scrolls by exactly
   the header's height — which is how the gap came back the first time.

   And minus WordPress's admin bar, which pushes <html> down for anyone logged
   in: 32px on desktop, 46px at 782px and below (WordPress's own breakpoint,
   one pixel off ours). Logged out it is zero, which is why the page fitted for
   visitors and overflowed for the client. */
body.admin-bar { --fc-adminbar-h: 32px; --fc-adminbar-sticky: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar { --fc-adminbar-h: 46px; --fc-adminbar-sticky: 46px; }
}

/* Below 600px WordPress lets the admin bar scroll away, so the header
   sticks to the very top instead of leaving a gap where the bar was. */
@media screen and (max-width: 600px) {
	body.admin-bar { --fc-adminbar-sticky: 0px; }
}

/* ---- header over the homepage hero (FC-67) --------------------------------
   When a page opens with the Folklore Hero, the header starts transparent and
   the hero slides up under it, so the two read as one picture. Once the page
   scrolls (folklore.js sets .is-scrolled) the header's paper fades back in.
   Scoped to a hero that is the very first thing on the page: anywhere else,
   pulling it up would cover whatever sits above it. */
body:has(main > .bde-section:first-of-type > .section-container > .fc-bd-hero:first-child) .fc-head {
	border-bottom-color: transparent;
	background: none;
	box-shadow: none;
	transition: border-color .3s ease, box-shadow .3s ease;
}

body:has(main > .bde-section:first-of-type > .section-container > .fc-bd-hero:first-child) .fc-head::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(120% 180% at 12% 0%, rgba(110, 84, 60, .22), transparent 60%),
		linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)),
		/* fixed: sized to the screen like the page layer, so the header is a
		   window onto the same background instead of a strip of its own. */
		var(--fc-page-bg) center / cover fixed,
		var(--fc-sheet);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

body:has(main > .bde-section:first-of-type > .section-container > .fc-bd-hero:first-child) .fc-head.is-scrolled {
	border-bottom-color: var(--fc-edge);
	box-shadow: inset 0 -1px 0 rgba(245, 239, 232, .04), 0 6px 20px rgba(0, 0, 0, .45);
}

body:has(main > .bde-section:first-of-type > .section-container > .fc-bd-hero:first-child) .fc-head.is-scrolled::before { opacity: 1; }

main > .bde-section:first-of-type > .section-container > .fc-bd-hero:first-child .fc-hp-hero {
	margin-top: calc(-1 * var(--fc-header-h));
	padding-top: var(--fc-header-h);
}

@media (prefers-reduced-motion: reduce) {
	.fc-head,
	.fc-head::before { transition: none; }
}

.fc-atlas.is-screen {
	height: calc(100vh - var(--fc-header-h) - var(--fc-adminbar-h, 0px));
	height: calc(100dvh - var(--fc-header-h) - var(--fc-adminbar-h, 0px));
}

@media (prefers-reduced-motion: reduce) {
	.fc-burger span { transition: none; }
}

/* =========================================================================
   Comments — FC-10/11

   WordPress renders its comment textarea with cols="45", which computes to
   ~460px and overflowed a 375px screen, scrolling every story page sideways.
   Constraining the fields is the fix; the rest is making the form match.
   ====================================================================== */

.fc-case__comments { color: var(--fc-text); }

.fc-case__comments .comment-reply-title,
.fc-case__comments .comments-title {
	margin: 0 0 1rem;
	color: var(--fc-text);
	font-size: 1.3rem;
}

.fc-case__comments .comment-notes,
.fc-case__comments .comment-form-cookies-consent label,
.fc-case__comments .logged-in-as {
	font-size: .85rem;
	opacity: .6;
}

.fc-case__comments label {
	display: block;
	margin-bottom: .35rem;
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .75;
}

.fc-case__comments input[type="text"],
.fc-case__comments input[type="email"],
.fc-case__comments input[type="url"],
.fc-case__comments textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: .7em .8em;
	border: 1px solid var(--fc-line);
	background: var(--fc-panel);
	color: var(--fc-text);
	font: inherit;
	font-size: 1rem;
	border-radius: 2px;
}

.fc-case__comments textarea { min-height: 9rem; resize: vertical; }

.fc-case__comments input:focus,
.fc-case__comments textarea:focus {
	outline: 2px solid var(--fc-amber);
	outline-offset: 1px;
}

.fc-case__comments .comment-form-cookies-consent {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
}

.fc-case__comments .comment-form-cookies-consent input { width: auto; margin-top: .3rem; }
.fc-case__comments .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; }

.fc-case__comments .submit {
	padding: .75em 1.5em;
	border: 1px solid var(--fc-accent);
	background: var(--fc-accent);
	color: #f5efe8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 2px;
}

.fc-case__comments .submit:hover { background: #a04532; }

.fc-case__comments .comment-list {
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.fc-case__comments .comment-list li {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--fc-line);
}

.fc-case__comments .comment-list .children { margin: 1rem 0 0 1.2rem; padding: 0; list-style: none; }
.fc-case__comments .comment-author { font-size: .95rem; }
.fc-case__comments .comment-author .says { opacity: .5; }
.fc-case__comments .comment-metadata { font-size: .75rem; opacity: .5; }
.fc-case__comments .comment-awaiting-moderation { color: var(--fc-amber); font-size: .85rem; font-style: italic; }
.fc-case__comments .avatar { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }

/* Doubled: a theme's `.theme a` rule would otherwise take the colour. */
.fc-case__comments .comment-list a,
.fc-case__comments .comment-metadata a { color: var(--fc-amber); }

/* Last line of defence: nothing in a story may scroll the page sideways. */
.fc-case,
.fc-case__comments { overflow-wrap: break-word; }

/* ---- The haunt (FC-2) ------------------------------------------------- */

/* The figure that stands beside the story while you read. Fixed to the
   viewport and printed in the footer, so she belongs to no column and no
   template has to leave a gap for her. `pointer-events: none` because she is
   scenery: she must never eat a click meant for the story underneath. */
.fc-haunt {
	/* The story page's content width (FC-85's two columns), so she can stand
	   just outside it on the right (FC-106) rather than against the window.
	   Override this one value if the page width changes. */
	--fc-haunt-column: calc(84rem - 2 * var(--fc-gutter));
	/* Sized to the gutter beside the column, not to the window: with the wide
	   story column a laptop leaves her ~210px, and a fixed 22vw put her over
	   the last hundred pixels of every line. */
	--fc-haunt-w: clamp(150px, min(22vw, calc((100vw - var(--fc-haunt-column)) / 2 + var(--fc-haunt-overlap) - 12px)), 330px);
	/* How far she dips behind the text. Her edge is transparent, so a little
	   overlap reads as depth rather than as a collision. */
	--fc-haunt-overlap: 1.25rem;
	/* One box for every frame, whatever size the client uploads (FC-98):
	   height = width × this. Change it here to make her taller or squarer. */
	--fc-haunt-ratio: 1.5;

	position: fixed;
	/* Bottom right (FC-106; FC-99 had her on the left), just outside the
	   content; when the gutter is too narrow for her, max() parks her at the
	   window edge instead of pushing her off it. The percentage resolves
	   against the viewport without the scrollbar, which 100vw would wrongly
	   include. */
	right: max(0px, calc((100% - var(--fc-haunt-column)) / 2 - var(--fc-haunt-w) + var(--fc-haunt-overlap)));
	/* Below the fold by a hair, so the float never lifts her off the bottom
	   edge and reveals a gap under her feet. */
	bottom: -18px;
	/* Under the site header (900) and the mobile drawer, over the story. */
	z-index: 300;
	margin: 0;
	pointer-events: none;
}

/* Two classes deep on purpose. Breakdance ships `.breakdance img { max-width:
   100%; height: auto }`, which is (0,1,1) and outranks a single-class rule —
   a plugin stylesheet on a builder site has to clear the builder's reset. */
.fc-haunt .fc-haunt__frame {
	display: block;
	/* Fixed box (FC-98), so a wide frame and a tall one flash at the same
	   size. The frames are transparent cutouts of a creature (FC-106), so the
	   box fits them whole (`contain`) and stands them on the bottom edge; the
	   old `cover` crop suited photo rectangles and would slice a cutout. */
	width: var(--fc-haunt-w);
	height: calc(var(--fc-haunt-w) * var(--fc-haunt-ratio));
	object-fit: contain;
	object-position: center bottom;
	/* Follows the cutout's own outline, not a rectangle. */
	filter: drop-shadow(0 0 18px rgba(13, 19, 16, .7));
	/* Slow enough that you notice it only once you have stopped reading. The
	   drift is on the image, not the container, so it cannot fight the
	   positioning above. */
	animation: fc-haunt-float 9s ease-in-out infinite;
	will-change: transform;
}

@keyframes fc-haunt-float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50%      { transform: translateY(-14px) rotate(.6deg); }
}

/* On a phone the column is the whole screen, so she cannot stand beside it —
   she stands in front of the bottom corner instead, small enough to leave the
   line of text she overlaps still readable. */
@media (max-width: 781px) {
	.fc-haunt {
		/* A third of a narrow screen. Wider than this and she stops being a
		   figure at the edge and starts being a thing covering the paragraph. */
		--fc-haunt-w: min(34vw, 130px);
		--fc-haunt-overlap: 0px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.fc-haunt .fc-haunt__frame { animation: none; }
}

/* Scenery has no caption and no label, but a reader who finds her distracting
   needs a way to stop her — so the one control takes clicks back. */
.fc-haunt .fc-haunt__hold {
	position: absolute;
	right: .5rem;
	bottom: 1.5rem;
	pointer-events: auto;
	padding: .3rem .6rem;
	border: 1px solid var(--fc-line);
	border-radius: 3px;
	background: rgba(13, 19, 16, .82);
	color: var(--fc-ink);
	font: inherit;
	font-size: .72rem;
	line-height: 1.2;
	letter-spacing: .04em;
	cursor: pointer;
	opacity: 0;
	transition: opacity .18s ease;
}

.fc-haunt:hover .fc-haunt__hold,
.fc-haunt__hold:focus-visible { opacity: 1; }

/* A phone has no hover, so the one way to stop her would otherwise never
   appear. Dim rather than hidden: there when looked for, quiet when not.
   Keyed to width rather than `hover: none`, which a desktop browser in device
   emulation does not report — and placed after the base rule, because both are
   (0,2,0) and at equal specificity the later one wins. */
@media (max-width: 781px) {
	.fc-haunt .fc-haunt__hold {
		opacity: .45;
		right: .25rem;
		bottom: 1rem;
		padding: .2rem .4rem;
		font-size: .62rem;
	}
}


/* =========================================================================
   Homepage sections (FC-66)
   Breakdance elements under "Folklore"; markup in inc/home.php. Built from
   the same kit as the map page: dark paper sheets with worn red edges, the
   stamp-red button, Special Elite for labels and Lora for reading.

   Headings and links are double-scoped throughout: Breakdance styles
   `.breakdance h2` and `.breakdance a` at (0,1,1), which beats one class.
   ====================================================================== */

/* The header CTA's worn red stamp, as one reusable class. */
.fc-stamp.fc-stamp {
	position: relative;
	isolation: isolate;
	display: inline-block;
	padding: .75em 1.4em;
	/* As a <button> too: no browser grey behind the see-through ghost fill. */
	border: 0;
	background: none;
	cursor: pointer;
	color: #f6ece2;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
	transition: filter .15s ease;
}

.fc-stamp::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 1px solid rgba(240, 200, 180, .28);
	border-radius: 2px;
	background:
		var(--fc-grain),
		radial-gradient(140% 120% at 50% 0%, #b8382a, var(--fc-red-fill) 70%, #5c150d);
	box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), 0 0 20px rgba(184, 56, 42, .35);
	filter: url(#fc-worn);
	pointer-events: none;
}

.fc-stamp.fc-stamp:hover,
.fc-stamp.fc-stamp:focus-visible { filter: brightness(1.15); color: #fff; }

/* Secondary: same edge, no red — a frame on the dark. */
.fc-stamp--ghost::before {
	border-color: rgba(214, 205, 194, .55);
	background: rgba(13, 19, 16, .45);
	box-shadow: none;
}

.fc-stamp--sm.fc-stamp--sm { padding: .5em 1em; font-size: .66rem; letter-spacing: .14em; }

/* ---- shared --------------------------------------------------------------- */

.fc-hp-grid,
.fc-hp-map,
.fc-hp-cats,
.fc-hp-rec {
	margin: 0 0 3.5rem;
	color: var(--fc-text);
}

/* One dark paper sheet with a worn red edge — cards, tiles, the feature,
   and the story page's case file and panels (FC-85). */
.fc-hp-card,
.fc-hp-cat,
.fc-hp-rec__item,
.fc-sv__file,
.fc-sv__panel,
.fc-contact__aside {
	position: relative;
	isolation: isolate;
}

.fc-hp-card::before,
.fc-hp-cat::before,
.fc-hp-rec__item::before,
.fc-sv__file::before,
.fc-sv__panel::before,
.fc-contact__aside::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 1px solid var(--fc-edge);
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(255, 236, 214, .03), rgba(0, 0, 0, .2)), var(--fc-tex), var(--fc-sheet);
	box-shadow: inset 0 0 24px rgba(110, 36, 20, .35), inset 0 0 3px rgba(0, 0, 0, .8), 0 6px 16px rgba(0, 0, 0, .5);
	filter: url(#fc-worn);
	pointer-events: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.fc-hp-card:hover::before,
.fc-hp-card:focus-within::before,
.fc-hp-cat:hover::before,
.fc-hp-cat:focus-visible::before {
	border-color: rgba(221, 90, 68, .85);
	box-shadow: inset 0 0 24px rgba(130, 40, 22, .45), inset 0 0 3px rgba(0, 0, 0, .8), 0 6px 16px rgba(0, 0, 0, .55), 0 0 16px rgba(221, 90, 68, .25);
}

.fc-hp-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.1rem;
}

.fc-hp-head .fc-hp-head__title {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: 0;
	color: #efe5d8;
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	font-weight: 400;
	line-height: 1.2;
}

.fc-hp-head__icon { flex-shrink: 0; width: 1.1em; height: 1.1em; color: var(--fc-red-text); }

.fc-hp-head__sub { margin: .25rem 0 0; font-size: .85rem; opacity: .65; }

.fc-hp-head .fc-hp-head__all {
	flex-shrink: 0;
	padding-bottom: .15em;
	border-bottom: 1px solid var(--fc-edge);
	color: var(--fc-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}

.fc-hp-head .fc-hp-head__all:hover,
.fc-hp-head .fc-hp-head__all:focus-visible { color: var(--fc-red-text); border-color: var(--fc-red-text); }

.fc-hp-eyebrow {
	margin: 0;
	color: var(--fc-amber);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .7rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.fc-hp-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 0; }

.fc-hp-tags span {
	padding: .3em .75em;
	border: 1px solid var(--fc-line);
	border-radius: 2px;
	font-size: .66rem;
	letter-spacing: .06em;
	opacity: .85;
}

/* "Active Threat", stamped on slightly askew — a mark, not a fill. */
.fc-hp-stampmark {
	display: inline-block;
	padding: .4em .85em;
	border: 1.5px solid var(--fc-red-text);
	border-radius: 2px;
	color: var(--fc-red-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	transform: rotate(-3deg);
}

/* A Status the editor typed, other than Active / Visited: neutral paper tone (FC-149). */
.fc-hp-stampmark--plain { border-color: var(--fc-line); color: var(--fc-text); }
.fc-hp-stampmark--visited { border-color: var(--fc-visited); color: var(--fc-visited); }
/* The "been there" seal beside the word Visited (FC-150). */
.fc-visited-mark { display: inline-block; width: 1.15em; height: 1.15em; margin: -.2em .4em -.2em 0; vertical-align: middle; }
.fc-story__flag--plain { color: var(--fc-text); opacity: .85; }

.fc-hp-stampmark--big {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	background: rgba(13, 19, 16, .6);
	font-size: .8rem;
}

.fc-hp-empty {
	padding: 1rem;
	border: 1px dashed var(--fc-edge);
	color: var(--fc-text);
	font-size: .85rem;
	opacity: .75;
}

/* ---- hero ----------------------------------------------------------------- */

/* Full-bleed out of the builder's centred container, same escape as the
   story hero; body clips the overflow (rule near .fc-cine). */
.fc-hp-hero {
	position: relative;
	left: 50%;
	display: grid;
	place-items: center;
	width: 100vw;
	min-height: var(--fc-hero-h, clamp(460px, 78vh, 760px));
	margin: 0 0 3rem -50vw;
	overflow: hidden;
	isolation: isolate;
	color: var(--fc-text);
	text-align: center;
}

/* Media and veil both fade out at the foot, so the page's own paper shows
   through and the hero has no bottom edge. */
.fc-hp-hero__media,
.fc-hp-hero__veil {
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
	mask-image: linear-gradient(to bottom, #000 62%, transparent);
}

/* The night camp sits low in its frame (tent, fire, jackal in the clearing),
   so it is anchored to the bottom and fades later than a photo would. */
.fc-hp-hero__media.is-scene {
	background-position: center 72%;
	-webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
	mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

.fc-hp-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-position: center var(--fc-focus, 50%);
	background-size: cover;
	filter: sepia(.3) contrast(1.06) saturate(.9) brightness(.85);
}

/* FC-133: several background images take turns, cross-fading. */
.fc-hp-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center var(--fc-focus, 50%); opacity: 0; transition: opacity 1.8s ease; }
.fc-hp-hero__slide.is-on { opacity: 1; }

.fc-hp-hero__media video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The built-in night camp (FC-70). Already graded, so no filter — and a
   filter here would be recomputed every frame of the animated layer. Anchored
   right-of-centre and low so a narrow or short hero keeps the moon and the
   tent in frame; it fades later than a photo, or the camp would vanish. */
.fc-hp-hero.is-scene .fc-hp-hero__media {
	background-position: 74% 64%;
	filter: none;
}

.fc-hp-hero.is-scene .fc-hp-hero__media,
.fc-hp-hero.is-scene .fc-hp-hero__veil {
	-webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
	mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

/* Dark at the top so the site header clears it, darkest at the foot so the
   hero melts into the page instead of ending on a hard edge. */
.fc-hp-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(90% 70% at 50% 45%, rgba(13, 19, 16, .35), rgba(13, 19, 16, .75)),
		linear-gradient(to bottom, rgba(13, 19, 16, .55), transparent 35%);
}

.fc-hp-hero__title.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }

.fc-hp-hero__inner { max-width: 46rem; padding: 4rem var(--fc-gutter); }
/* FC-144: buttons at the foot of the picture, which stays uncovered. */
.fc-hp-hero__inner.is-low { align-self: end; padding-bottom: 5.5rem; }

.fc-hp-hero__mark svg { display: block; width: 58px; height: 58px; margin: 0 auto; color: #efe5d8; opacity: .9; }

.fc-hp-hero .fc-hp-hero__title {
	margin: .7rem 0 .5rem;
	color: #f5efe8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: calc(clamp(2.4rem, 7vw, 4.8rem) * var(--fc-k, 1));
	font-weight: 400;
	letter-spacing: .1em;
	line-height: 1.02;
	text-transform: uppercase;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 2px 28px rgba(0, 0, 0, .8);
}

.fc-hp-hero__tagline {
	margin: 0 0 1rem;
	color: #efe5d8;
	font-family: 'Lora', Georgia, serif;
	font-size: calc(clamp(1.2rem, 2.6vw, 1.6rem) * var(--fc-k, 1));
	text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
}

.fc-hp-hero__text { font-size: calc(1rem * var(--fc-k, 1)); margin: 0 0 1.9rem; line-height: 1.6; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

.fc-hp-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: 0; }

/* Marks a story whose hero is a film; the click goes to the story. */
.fc-hp-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 58px;
	height: 58px;
	border: 1.5px solid rgba(241, 228, 214, .85);
	border-radius: 50%;
	background: rgba(13, 19, 16, .55);
	transform: translate(-50%, -50%);
}

.fc-hp-play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 15px solid #f1e4d6;
	transform: translate(-50%, -50%);
}

/* ---- case file cards ------------------------------------------------------ */

.fc-hp-grid__list {
	display: grid;
	grid-template-columns: repeat(var(--fc-hp-cols, 4), minmax(0, 1fr));
	gap: 1rem;
}

.fc-hp-card { display: flex; flex-direction: column; min-width: 0; }

.fc-hp-card__media {
	aspect-ratio: 16 / 11;
	margin: .55rem .55rem 0;
	overflow: hidden;
	border: 1px solid rgba(214, 205, 194, .12);
	background: var(--fc-tex), #120e0b;
}

/* Two classes: `.breakdance img { height: auto }` ties with one and loads
   later, which left a dark strip under every picture. */
.fc-hp-card .fc-hp-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: sepia(.45) contrast(1.06) brightness(.8);
	transition: transform .4s ease, filter .4s ease;
}

.fc-hp-card:hover .fc-hp-card__media img { transform: scale(1.04); filter: sepia(.3) contrast(1.08) brightness(.95); }

.fc-hp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: .35rem;
	padding: .8rem .85rem .9rem;
}

/* The filled case stamp, as on the map sidebar cards. */
.fc-hp-card__case {
	margin: 0;
	padding: .15em .55em;
	border-radius: 2px;
	background: var(--fc-red-fill);
	color: #f1e4d6;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .62rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* One line however long (FC-55); the full title is the tooltip. */
.fc-hp-card .fc-hp-card__title {
	max-width: 100%;
	margin: .15rem 0 0;
	overflow: hidden;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fc-hp-card .fc-hp-card__title a { color: #efe5d8; text-decoration: none; }

/* The whole card is the link. */
.fc-hp-card .fc-hp-card__title a::after { content: ''; position: absolute; inset: 0; }

.fc-hp-card__place {
	display: flex;
	align-items: center;
	gap: .3em;
	margin: 0;
	font-size: .76rem;
	opacity: .75;
}

.fc-hp-card__place svg { flex-shrink: 0; width: 11px; height: 11px; color: var(--fc-red-text); }

/* Decoration: the stretched title link underneath takes the click. */
.fc-hp-card__read { margin-top: auto; pointer-events: none; }
.fc-hp-card .fc-hp-tags { margin-bottom: .55rem; }
.fc-hp-card .fc-hp-stampmark { margin-bottom: .55rem; }

.fc-hp-card.is-active::before { border-color: rgba(221, 90, 68, .7); }

/* Text over the picture — the "Active Threats" row in the mockup. */
.fc-hp-grid--overlay .fc-hp-card { justify-content: flex-end; min-height: 15rem; }

.fc-hp-grid--overlay .fc-hp-card__media {
	position: absolute;
	inset: .55rem;
	z-index: -1;
	margin: 0;
	aspect-ratio: auto;
}

.fc-hp-grid--overlay .fc-hp-card__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13, 10, 8, .94) 18%, rgba(13, 10, 8, .4) 62%, rgba(13, 10, 8, .1));
}

.fc-hp-grid--overlay .fc-hp-card__body { flex: 0 0 auto; padding: 1rem 1.15rem 1.15rem; }

.fc-hp-grid--overlay .fc-hp-tags,
.fc-hp-grid--overlay .fc-hp-card__read { display: none; }

.fc-hp-grid--overlay .fc-hp-card .fc-hp-stampmark { margin: .35rem 0 0; }

/* ---- map preview ---------------------------------------------------------- */

.fc-hp-map__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15rem;
	gap: 1.75rem;
	align-items: center;
}

.fc-hp-map__atlas { overflow: hidden; border: 1px solid var(--fc-edge); border-radius: 3px; }

/* Bound the sidebar to the map's height so its list scrolls, rather than
   the whole archive unrolling down the homepage. */
.fc-hp-map .fc-atlas__body { height: var(--fc-hp-map-h, 480px); }
.fc-hp-map .fc-side { width: 290px; }

.fc-hp-map__pitch { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.fc-hp-map__pitch p { margin: 0; line-height: 1.55; opacity: .85; }
.fc-hp-map__pitch .fc-hp-map__lead { color: #efe5d8; font-family: 'Lora', Georgia, serif; font-size: 1.35rem; opacity: 1; }
.fc-hp-map__pitch .fc-stamp { margin-top: .4rem; }

/* ---- categories ----------------------------------------------------------- */

.fc-hp-cats__list {
	display: grid;
	/* 17rem: room for icon, "Local Legends" and the count without "…".
	   Eight categories sit four to a row; four fill one row. */
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	gap: .9rem;
}

.fc-hp-cats .fc-hp-cat {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1.1rem;
	color: #efe5d8;
	font-family: 'Lora', Georgia, serif;
	text-decoration: none;
}

.fc-hp-cat__icon { flex-shrink: 0; width: 30px; height: 30px; color: var(--fc-paper); transition: color .2s ease; }
.fc-hp-cat:hover .fc-hp-cat__icon,
.fc-hp-cat:focus-visible .fc-hp-cat__icon { color: var(--fc-red-text); }
.fc-hp-cat__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fc-hp-cat__n {
	color: var(--fc-red-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
}

/* ---- share your story band ------------------------------------------------ */

.fc-hp-cta {
	position: relative;
	left: 50%;
	width: 100vw;
	margin: 0 0 3.5rem -50vw;
	padding: 4.5rem var(--fc-gutter);
	box-sizing: border-box;  /* 100vw plus padding would overflow the page */
	isolation: isolate;
	color: var(--fc-text);
	text-align: center;
}

/* No fill of its own: the band is the page paper, darkened in the middle.
   A chosen photo fades out top and bottom the same way, so neither version
   has a hard edge. */
.fc-hp-cta[style] {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	-webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
	mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}

.fc-hp-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to bottom, transparent, rgba(8, 6, 5, .55) 28%, rgba(8, 6, 5, .55) 72%, transparent);
}

.fc-hp-cta__inner { max-width: 36rem; margin: 0 auto; }

.fc-hp-cta .fc-hp-cta__title {
	margin: 0 0 .6rem;
	color: #efe5d8;
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 400;
}

.fc-hp-cta p { margin: 0 0 1.5rem; line-height: 1.6; opacity: .88; }

/* ---- field recordings ----------------------------------------------------- */

.fc-hp-rec__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1rem;
}

.fc-hp-rec__item { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; padding: .9rem; }

.fc-hp-rec .fc-hp-rec__title {
	max-width: 100%;
	margin: .1rem 0 0;
	overflow: hidden;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.02rem;
	font-weight: 400;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fc-hp-rec .fc-hp-rec__title a { color: #efe5d8; text-decoration: none; }
.fc-hp-rec .fc-rec { align-self: stretch; margin-top: .45rem; }

/* ---- smaller screens ------------------------------------------------------ */

@media (max-width: 1024px) {
	.fc-hp-map__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.fc-hp-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 600px) {
	.fc-hp-grid__list { grid-template-columns: 1fr; }
	.fc-hp-head { flex-wrap: wrap; }
	.fc-hp-hero__inner { padding: 3rem var(--fc-gutter); }
}

@media (prefers-reduced-motion: reduce) {
	.fc-hp-card__media img,
	.fc-hp-card::before,
	.fc-hp-cat::before { transition: none; }
	.fc-hp-card:hover .fc-hp-card__media img { transform: none; }
}

/* ---- peeking figure (FC-68) -----------------------------------------------
   Parked just off one edge of the screen; .is-out slides it in by
   --fc-peek-depth of its own size, and taking the class off slides it back.
   Over the sticky header on purpose (a face over the menu is the scare), and
   never catches a click. */
.fc-peek {
	position: fixed;
	z-index: 950;
	width: var(--fc-peek-size, 240px);
	height: var(--fc-peek-size, 240px);
	pointer-events: none;
	visibility: hidden;
	/* The retreat: unhurried, as if it chose to go. */
	transition: transform .9s cubic-bezier(.5, 0, .75, 0), visibility 0s linear .9s;
}

/* object-position bottom keeps the figure's base on the edge it rises from;
   from the top it hangs upside down (.is-rotated). */
.fc-peek img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom;
	filter: drop-shadow(0 0 18px rgba(0, 0, 0, .65)) sepia(.2) contrast(1.05);
}

.fc-peek.is-bottom {
	bottom: 0;
	left: var(--fc-peek-pos, 82%);
	--fc-peek-hide: translate(-50%, 100%);
	--fc-peek-show: translate(-50%, calc(100% - var(--fc-peek-depth, 55%)));
}

.fc-peek.is-top {
	top: 0;
	left: var(--fc-peek-pos, 82%);
	--fc-peek-hide: translate(-50%, -100%);
	--fc-peek-show: translate(-50%, calc(-100% + var(--fc-peek-depth, 55%)));
}

/* Sides: standing upright in the bottom corner, leaning in from behind the
   edge of the screen — never halfway up the side. The figure is pushed to
   the inner side of its box so "how much shows" reveals figure, not the
   empty margin of a portrait image. */
.fc-peek.is-left {
	left: 0;
	bottom: 0;
	--fc-peek-hide: translateX(-100%);
	--fc-peek-show: translateX(calc(-100% + var(--fc-peek-depth, 55%)));
}

.fc-peek.is-right {
	right: 0;
	bottom: 0;
	--fc-peek-hide: translateX(100%);
	--fc-peek-show: translateX(calc(100% - var(--fc-peek-depth, 55%)));
}

.fc-peek.is-left img  { object-position: right bottom; }
.fc-peek.is-right img { object-position: left bottom; }

.fc-peek { transform: var(--fc-peek-hide); }

.fc-peek.is-rotated.is-top img { transform: rotate(180deg); }

/* The arrival: fast, with a little overshoot, so it lands as a jolt. */
.fc-peek.is-out {
	visibility: visible;
	transform: var(--fc-peek-show);
	transition: transform .28s cubic-bezier(.2, .9, .3, 1.25), visibility 0s;
}

.fc-peek.is-creep.is-out { transition: transform 2.2s cubic-bezier(.4, 0, .2, 1), visibility 0s; }

/* FC-128: no slide, no jolt — the figure is simply there, fading up where it
   stands. Pair with "How much shows" 100 so the whole figure is in view. */
.fc-peek.is-fade { transform: var(--fc-peek-show); opacity: 0; transition: opacity .9s ease, visibility 0s linear .9s; }
.fc-peek.is-fade.is-out { opacity: 1; transition: opacity 1.8s ease, visibility 0s; }

@media (max-width: 600px) {
	.fc-peek {
		width: calc(var(--fc-peek-size, 240px) * .6);
		height: calc(var(--fc-peek-size, 240px) * .6);
	}
}

/* A sudden figure is exactly what reduced motion opts out of. */
@media (prefers-reduced-motion: reduce) {
	.fc-peek { display: none; }
}

/* Editor preview: a stage standing in for the screen, the figure looping
   through the same hide/show positions the live page uses. */
.fc-peek-preview { color: var(--fc-text); }

.fc-peek-stage {
	position: relative;
	height: 300px;
	overflow: hidden;
	border: 1px dashed var(--fc-edge);
	background: var(--fc-tex), var(--fc-sheet);
}

.fc-peek.is-demo {
	position: absolute;
	visibility: visible;
	transition: none;
	animation: fc-peek-demo 4.5s infinite;
}

.fc-peek.is-demo.is-creep { animation-name: fc-peek-demo-creep; animation-duration: 6s; }

@keyframes fc-peek-demo {
	0%, 30%  { transform: var(--fc-peek-hide); animation-timing-function: cubic-bezier(.2, .9, .3, 1.25); }
	37%, 72% { transform: var(--fc-peek-show); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
	88%, 100% { transform: var(--fc-peek-hide); }
}

@keyframes fc-peek-demo-creep {
	0%, 15%  { transform: var(--fc-peek-hide); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
	50%, 75% { transform: var(--fc-peek-show); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
	92%, 100% { transform: var(--fc-peek-hide); }
}

.fc-peek-stage__label {
	position: absolute;
	top: .6rem;
	left: .7rem;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .65rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .55;
}

.fc-peek-stage__empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; opacity: .7; }

.fc-peek-preview__note { margin: .5rem 0 0; font-size: .8rem; opacity: .75; }

/* The live figure is hidden for reduced motion; the editor preview shows it
   standing still instead, so the client can still see what they chose. */
@media (prefers-reduced-motion: reduce) {
	.fc-peek.is-demo { display: block; animation: none; transform: var(--fc-peek-show); }
}


/* =========================================================================
   Featured case files (FC-71) — framed slider, markup in fc_hp_feature()
   ====================================================================== */

.fc-feat {
	position: relative;
	isolation: isolate;
	margin: 0 0 3.5rem;
	color: var(--fc-text);
	background:
		radial-gradient(120% 140% at 70% 30%, transparent 40%, rgba(0, 0, 0, .45)),
		var(--fc-tex),
		var(--fc-sheet);
}

/* The border: the same thin worn rust line as the cards and the map panel —
   a plain border, roughened by the site-wide #fc-worn filter. On its own
   layer so the filter frays the line, not the picture or the text. */
.fc-feat::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 3;
	border: 1px solid rgba(160, 66, 46, .8);
	border-radius: 2px;
	filter: url(#fc-worn);
	pointer-events: none;
}

/* Slides stack in one grid cell, so the box is as tall as the tallest case
   and nothing jumps when they change. */
.fc-feat__slides { display: grid; }

.fc-feat__slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	min-height: 340px;
	opacity: 0;
	visibility: hidden;
	/* Out quickly... */
	transition: opacity .3s ease, visibility 0s linear .3s;
}

/* ...then in, after a beat, so two cases' text never shows on top of each other. */
.fc-feat__slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease .28s, visibility 0s; }

/* Picture runs to the frame's edges and dissolves into the paper on the right. */
.fc-feat__media { position: relative; overflow: hidden; background: var(--fc-tex), #120e0b; }

.fc-feat__imglink { position: absolute; inset: 0; display: block; }

.fc-feat__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: sepia(.35) contrast(1.08) brightness(.82);
}

.fc-feat__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, transparent 55%, var(--fc-sheet) 100%),
		linear-gradient(to top, rgba(10, 8, 6, .8), rgba(10, 8, 6, .35) 22%, transparent 42%);
	pointer-events: none;
}

.fc-feat__body {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: .5rem;
	padding: 2rem 2.4rem 2rem 1.6rem;
}

.fc-feat__eyebrow {
	margin: 0;
	color: var(--fc-red-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.fc-feat__case {
	margin: 0;
	color: #e6dccd;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1.05rem;
	letter-spacing: .04em;
}

.fc-feat .fc-feat__title {
	margin: .1rem 0 .2rem;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: .01em;
}

.fc-feat .fc-feat__title a { color: #f2e9dc; text-decoration: none; }
.fc-feat .fc-feat__title a:hover { color: #fff; }

.fc-feat__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.4rem;
	margin: 0;
	font-size: .82rem;
	opacity: .9;
}

.fc-feat__meta span { display: inline-flex; align-items: center; gap: .4em; }
.fc-feat__meta svg { flex-shrink: 0; width: 13px; height: 13px; color: var(--fc-ember); }

.fc-feat__excerpt {
	max-width: 40rem;
	margin: .3rem 0 .6rem;
	font-family: 'Lora', Georgia, serif;
	font-size: .95rem;
	line-height: 1.6;
	opacity: .85;
}

.fc-feat__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0; }

/* Rubber stamp, askew, in the case's top corner. */
.fc-feat__stamp {
	position: absolute;
	top: 1.4rem;
	right: 1.6rem;
	padding: .5em .9em;
	border: 1.5px solid var(--fc-red-text);
	border-radius: 2px;
	color: var(--fc-red-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .85;
	transform: rotate(-12deg);
	box-shadow: inset 0 0 0 1px rgba(221, 90, 68, .25);
}

.fc-feat__stamp.is-active { background: rgba(143, 38, 24, .25); opacity: 1; }
.fc-feat__stamp.is-visited { background: rgba(214, 162, 74, .18); color: var(--fc-visited); opacity: 1; }

/* Controls sit on the picture, bottom-left, as in the mockup. */
.fc-feat__nav {
	position: absolute;
	left: 1.3rem;
	bottom: 1.1rem;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: .5rem;
	color: #efe5d8;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

.fc-feat .fc-feat__arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
}

.fc-feat .fc-feat__arrow:hover,
.fc-feat .fc-feat__arrow:focus-visible { opacity: 1; color: var(--fc-red-text); }

.fc-feat__count {
	margin: 0 .4rem 0 .2rem;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
	letter-spacing: .12em;
}

.fc-feat__count b { font-weight: 400; }

.fc-feat__dashes { display: flex; gap: .3rem; }

.fc-feat .fc-feat__dash {
	width: 16px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 1px;
	background: rgba(239, 229, 216, .35);
	cursor: pointer;
}

.fc-feat .fc-feat__dash.is-active { width: 26px; background: var(--fc-red-text); }

@media (max-width: 860px) {
	.fc-feat__slide { grid-template-columns: 1fr; }
	.fc-feat__media { aspect-ratio: 16 / 10; }
	.fc-feat__media::after { background: linear-gradient(to bottom, transparent 55%, var(--fc-sheet)); }
	.fc-feat__body { padding: 1.2rem 1.2rem 4rem; }
	.fc-feat__stamp { top: auto; bottom: calc(100% + 1rem); }

	/* On one column the picture is on top; controls move under the text. */
	.fc-feat__nav { left: 1.2rem; bottom: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fc-feat__slide,
	.fc-feat__slide.is-active { transition: none; }
}


/* =========================================================================
   Pin key (FC-72): what each pin icon means, in the map legend and as a label
   beside every case number. Names come from Case Files → Pin Icons.
   ====================================================================== */

/* Folded into one button (fc-pkey) so the bar never grows with the pin
   types; the full key opens above it as a two-column panel. */
.fc-pkey { position: relative; padding-left: .95rem; border-left: 1px solid var(--fc-edge); }

.fc-pkey summary {
	display: flex;
	align-items: center;
	gap: .55rem;
	color: #efe5d8;
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
}

.fc-pkey summary::-webkit-details-marker { display: none; }
.fc-pkey summary:hover,
.fc-pkey[open] summary { color: var(--fc-red-text); }
.fc-pkey summary:focus-visible { outline: 1px solid var(--fc-red-text); outline-offset: 4px; }

/* Overlapping like a stack of tokens; the ring keeps each disc distinct. */
.fc-pkey__stack { display: flex; }
.fc-pkey__stack i { margin-left: -7px; box-shadow: 0 0 0 2px #1a1512; }
.fc-pkey__stack i:first-child { margin-left: 0; }

.fc-pkey__more { color: var(--fc-paper); font-family: 'Special Elite', 'Courier New', monospace; }
.fc-pkey__chev { transform: rotate(180deg); opacity: .7; transition: transform .2s; }
.fc-pkey[open] .fc-pkey__chev { transform: none; }

.fc-pkey__panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 18px);
	z-index: 5;
	min-width: 340px;
	padding: .9rem 1.05rem 1rem;
	border: 1px solid var(--fc-edge);
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(255, 236, 214, .05), rgba(0, 0, 0, .15)), var(--fc-tex), var(--fc-sheet-2);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .65);
}

.fc-pkey__title {
	margin: 0 0 .7rem;
	color: var(--fc-paper);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .62rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.fc-legend__keys { display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: .6rem 1.4rem; }

.fc-legend__key {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	color: #efe5d8;
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* A small copy of the pin: the same glass disc, ringed in the icon's colour. */
.fc-legend__key i,
.fc-pkey__stack i {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 2px solid rgba(0, 0, 0, .4);
	border-radius: 50%;
	background: var(--fc-key, #4a4a42);
}

.fc-legend__key img,
.fc-pkey__stack img { display: block; width: 18px; height: 18px; object-fit: contain; }

/* Open, the key rises over Leaflet's zoom buttons (z-index 800+), which
   otherwise sit on top of a full-width panel on a phone. */
.fc-atlas .fc-legend:has(.fc-pkey[open]) { z-index: 1001; }

/* A phone: the panel spans the bar instead of hanging off its left edge, and
   the bar drops what doesn't fit — the icon stack, the count, and the words
   "Location active" (the red dot stays). */
@media (max-width: 781px) {
	.fc-legend__text b { white-space: nowrap; }
	.fc-pkey__stack,
	.fc-pkey__more { display: none; }
	.fc-legend__live { font-size: 0; }
	.fc-pkey { position: static; padding-left: .6rem; }
	.fc-pkey__panel { left: 0; right: 0; min-width: 0; }
	.fc-legend__keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .8rem; }
	.fc-legend__key { white-space: normal; }
}

.fc-story__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }

/* The icon's name beside a case number: quiet, typewritten, like a file tab. */
.fc-kind {
	color: var(--fc-paper);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .62rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .9;
}


/* =========================================================================
   Teardrop pins (FC-73): the icon's colour on the body, its silhouette on a
   cream disc. Markup from pinFace() in map.js; the colour arrives as
   --fc-pin-c (Case Files → Pin Icons → Pin colour).
   ====================================================================== */
.fc-tpin__pin {
	position: relative;
	display: block;
	/* 38 x 50 until FC-105: the drawings' detail (the ghost's grass, the
	   wendigo's antlers) was too small to read at that size. */
	width: 48px;
	height: 63px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .65));
	transition: transform .15s ease;
	transform-origin: 50% 100%;
}

.fc-tpin:hover .fc-tpin__pin,
.fc-tpin:focus-visible .fc-tpin__pin { transform: scale(1.12); }

.fc-tpin__jump { position: absolute; inset: 0; display: block; }

.fc-tpin__pin svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Ground shadow under the point (cx 32, cy 81 of the 64x84 drawing). */
.fc-tpin__ground {
	position: absolute;
	left: 50%;
	top: 96.4%;
	width: 37.5%;
	height: 6.2%;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	transform: translate(-50%, -50%);
}
.fc-tpin__body   { fill: var(--fc-pin-c, #4a4a42); stroke: #101a15; stroke-width: 3; }
/* Glossy finish: light-to-dark wash, faint inner ring and a top shine over the colour. */
.fc-tpin__gloss { fill: url(#fc-pg); stroke: none; pointer-events: none; }
.fc-tpin__ring  { fill: none; stroke: #000; stroke-opacity: .2; stroke-width: 1.2; pointer-events: none; }
.fc-tpin__shine { fill: url(#fc-ps); pointer-events: none; }

/* Disc centre is (32, 32) of 64x84: 50% across, 38% down. FC-183: art 56% wide leaves even padding. */
.fc-tpin__art,
.fc-tpin__num {
	position: absolute;
	left: 50%;
	top: 38%;
	transform: translate(-50%, -50%);
}

/* Three classes deep to beat Leaflet's `.leaflet-container .leaflet-marker-pane
   img { width: auto }`, which would show a PNG at its own size (FC-78). */
/* FC-131: whatever is uploaded (a square, a round photo) fills the disc as a
   circle, so it never shows as a square inside it. */
.fc-tpin .fc-tpin__jump .fc-tpin__art { width: 56%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; }
/* FC-202/216: per-picture widths, see ART_W in map.js. Bigfoot sits lower for space on top. */
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w58 { width: 58%; }
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w62 { width: 62%; }
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w64 { width: 64%; }
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w68 { width: 68%; }
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w72 { width: 72%; }
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w76 { width: 76%; }
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w82 { width: 82%; }
.fc-tpin .fc-tpin__jump .fc-tpin__art.fc-tpin__art--w64 { top: 41%; }

.fc-tpin__num {
	color: #14201a;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
}

/* FC-154: a clicked pin grows a little, with a white edge and a glow in its colour. */
.fc-tpin.is-on .fc-tpin__pin {
	transform: scale(1.15);
	filter: drop-shadow(0 0 7px var(--fc-pin-c)) drop-shadow(0 3px 5px rgba(0, 0, 0, .7));
}
.fc-tpin.is-on .fc-tpin__body { stroke: #fff; stroke-width: 3; }

/* A cluster: a size up, so the collapse reads as "several places". */
.fc-tpin--cluster .fc-tpin__pin { width: 56px; height: 73px; }
.fc-tpin--cluster .fc-tpin__num { font-size: 18px; }

/* Several stories at the place. */
.fc-tpin__badge {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 17px;
	height: 17px;
	padding: 0 3px;
	box-sizing: border-box;
	border: 2px solid var(--fc-pin-c, #4a4a42);
	border-radius: 999px;
	background: #101a15;
	color: #efe7d6;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 10px;
	font-style: normal;
	line-height: 13px;
	text-align: center;
}

.fc-tpin--cluster .fc-tpin__badge { min-width: 21px; height: 21px; font-size: 12px; line-height: 17px; }

/* Active threat: the pin hops, slowly — a short rest, a lift, a small second
   bounce — while its shadow stays put and shrinks as it rises. Its colour
   stays the type's; the motion is the warning. */
.fc-tpin--visited .fc-tpin__body { stroke: var(--fc-visited); }
.fc-tpin--active .fc-tpin__jump   { animation: fc-tpin-hop 2.8s ease-in-out infinite; }
.fc-tpin--active .fc-tpin__ground { animation: fc-tpin-ground 2.8s ease-in-out infinite; }

@keyframes fc-tpin-hop {
	0%, 48%, 100% { transform: translateY(0); }
	60%           { transform: translateY(-11px); }
	72%           { transform: translateY(0); }
	79%           { transform: translateY(-4px); }
	86%           { transform: translateY(0); }
}

@keyframes fc-tpin-ground {
	0%, 48%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	60%           { transform: translate(-50%, -50%) scale(.55); opacity: .45; }
	72%           { transform: translate(-50%, -50%) scale(1); opacity: 1; }
	79%           { transform: translate(-50%, -50%) scale(.85); opacity: .8; }
	86%           { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.fc-tpin--active .fc-tpin__jump,
	.fc-tpin--active .fc-tpin__ground { animation: none; }
	.fc-tpin--active .fc-tpin__body { stroke: #dd5a44; }
	.fc-tpin__pin { transition: none; }
}


/* ---- site footer (FC-94) ---- */

.fc-foot {
	position: relative;
	margin-top: 2rem;
	padding: 2.4rem var(--fc-gutter) 1.6rem;
	border-top: 1px solid var(--fc-edge);
	background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .6)), var(--fc-page-bg) center / cover fixed, var(--fc-sheet);
	color: var(--fc-text);
}

.fc-foot__top,
.fc-foot__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem 2rem;
	align-items: center;
	justify-content: space-between;
	max-width: 100rem;
	margin: 0 auto;
}

.fc-foot .fc-foot__brand { display: inline-flex; gap: .7rem; align-items: center; color: var(--fc-ink); text-decoration: none; }
.fc-foot__brand svg { width: 30px; height: 30px; }

.fc-foot__brand span {
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1.05rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.fc-foot__brand small { font-size: .7em; opacity: .7; }
.fc-foot__id p { margin: .45rem 0 0; font-size: .85rem; opacity: .6; }

.fc-foot__nav { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.fc-foot__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 0; padding: 0; list-style: none; }

.fc-foot .fc-foot__links a {
	color: var(--fc-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .76rem;
	letter-spacing: .16em;
	text-decoration: none;
	text-transform: uppercase;
	opacity: .8;
}

.fc-foot .fc-foot__links a:hover { color: var(--fc-red-text); opacity: 1; }

.fc-foot__bottom {
	margin-top: 1.8rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--fc-line);
	font-size: .78rem;
}

.fc-foot__bottom p { margin: 0; opacity: .6; }
.fc-foot .fc-foot__bottom a { color: var(--fc-paper); text-underline-offset: 3px; }
.fc-foot .fc-foot__bottom a:hover { color: var(--fc-red-text); }

@media (max-width: 600px) {
	.fc-foot__top,
	.fc-foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* Not under the full-screen map (FC-96): the map is the whole page there. */
body:has(.fc-atlas.is-screen) .fc-foot { display: none; }


/* =========================================================================
   Story page (FC-85) — the story on the left, the case file on the right.
   Markup in templates/single-story.php. The page background shows through.
   ====================================================================== */

.fc-sv {
	max-width: 84rem;
	margin: 0 auto;
	padding: 1.6rem var(--fc-gutter) 4rem;
	box-sizing: border-box;
	color: var(--fc-text);
}

.fc-sv .fc-sv__back {
	display: inline-flex;
	gap: .5em;
	margin: 0 0 1.2rem;
	color: var(--fc-paper);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .74rem;
	letter-spacing: .14em;
	text-decoration: none;
	text-transform: uppercase;
}

.fc-sv .fc-sv__back:hover { color: var(--fc-red-text); }

/* The case file spans the media and the top of the story, so the story starts
   right under the media and the panels below the file fill the right column. */
/* The right column spans both rows and sticks (FC-86). It is the story that
   must not span: a long story spanning rows stretched them and opened a gap. */
.fc-sv__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem);
	grid-template-areas:
		"head  side"
		"media side"
		"main  side";
	gap: 1.6rem 2.2rem;
	align-items: start;
}

/* No media: the story moves up beside the file. */
.fc-sv__grid:not(:has(.fc-sv__media)) { grid-template-areas: "head side" "main side"; }

.fc-sv__head   { grid-area: head; min-width: 0; }
.fc-sv__media  { grid-area: media; }
.fc-sv__main   { grid-area: main; min-width: 0; }
.fc-sv__extras { display: grid; gap: 1.6rem; }

/* Stays in view under the sticky header beside a long story. No scroll box
   of its own (FC-93): that capped it at the screen height, so on a short
   story the page could hardly scroll and the wheel moved only this column,
   which made the story look stuck. Now the page is always as long as this
   column, so everything scrolls normally.
   The column is one sheet of old paper (FC-87) with the dark panels on it. */
.fc-sv__side {
	position: sticky;
	top: calc(var(--fc-header-h) + var(--fc-adminbar-sticky, 0px) + 1rem);
	grid-area: side;
	display: grid;
	gap: 1.1rem;
	padding: 1.1rem;
	background: url("img/paper-sheet.webp") center / 100% 100% no-repeat, #6b6253;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .65);
}

/* ---- the case file ---- */

.fc-sv__file { padding: 3.3rem 1.5rem 1.4rem; }

.fc-sv__stamp {
	position: absolute;
	top: 1.1rem;
	right: 1rem;
	padding: .5em .85em;
	border: 1.5px solid var(--fc-paper);
	border-radius: 2px;
	color: var(--fc-paper);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .66rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	transform: rotate(8deg);
	opacity: .85;
	/* An editor-chosen status (FC-117) can be longer than "Unverified". */
	max-width: 8rem;
	text-align: center;
	line-height: 1.3;
}

.fc-sv__stamp.is-active { border-color: var(--fc-red-text); color: var(--fc-red-text); }
.fc-sv__stamp.is-visited { border-color: var(--fc-visited); color: var(--fc-visited); }

.fc-sv__case {
	margin: 0 0 .35rem;
	color: var(--fc-amber);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .74rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.fc-sv .fc-sv__title {
	margin: 0;
	color: #f2e9dc;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 400;
	line-height: 1.15;
}

/* FC-165: small tags, one colour each: amber = I went there, teal = a reader sent it. */
.fc-badge {
	display: inline-block;
	padding: .2em .65em;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .62rem;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}
.fc-badge--visited { color: #d6a24a; }
.fc-badge--reader  { color: #5fb3a6; }
.fc-sv__badges { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin: 1.1rem 0 0; }
.fc-sv__by { font-size: .95rem; opacity: .9; }
.fc-sv__badge { width: 84px; height: 84px; flex: none; }
.fc-hp-card__body > .fc-badge { align-self: flex-start; margin: 0 0 .4rem; }

.fc-sv__where { display: grid; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .9rem; }
.fc-sv__where li { display: flex; gap: .5rem; align-items: center; }
.fc-sv__where svg { flex: none; width: 15px; height: 15px; color: var(--fc-red-text); }
.fc-sv .fc-sv__where a { color: var(--fc-text); text-decoration: none; }
.fc-sv .fc-sv__where a:hover { color: var(--fc-red-text); }

.fc-sv__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }

.fc-sv .fc-sv__tags > * {
	padding: .4em .85em;
	border: 1px solid var(--fc-line);
	border-radius: 2px;
	color: var(--fc-text);
	font-size: .72rem;
	letter-spacing: .06em;
	text-decoration: none;
}

.fc-sv .fc-sv__tags a:hover { border-color: var(--fc-red-text); }

.fc-sv__facts { display: grid; gap: .9rem; margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--fc-line); }
.fc-sv__facts div { display: grid; gap: .15rem; }

.fc-sv__facts dt {
	color: var(--fc-paper);
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .85;
}

.fc-sv__facts dd { margin: 0; font-size: .95rem; }
.fc-sv__kind { display: flex; gap: .75rem; align-items: center; }
/* Larger than the 24px it began as (FC-104): the artwork is the point of the row. */
.fc-sv__kind img { box-sizing: border-box; flex: none; width: 48px; height: 48px; padding: 6px; border-radius: 50%; background: #4a4a42; object-fit: contain; }

/* ---- the media: a real player, not scenery ---- */

.fc-sv__media {
	position: relative;
	isolation: isolate;
	aspect-ratio: 16 / 10;
	background: #0a0807 center / cover no-repeat;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}

/* The worn red edge every panel has (FC-100): a plain border on its own
   layer, roughened by #fc-worn, so the picture itself is not distorted. */
.fc-sv__media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	border: 1px solid rgba(160, 66, 46, .8);
	border-radius: 2px;
	filter: url(#fc-worn);
	pointer-events: none;
}

.fc-sv .fc-sv__media img,
.fc-sv .fc-sv__media video,
.fc-sv .fc-sv__media iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	filter: sepia(.3) contrast(1.05) brightness(.9);
}

.fc-sv__sound {
	position: absolute;
	right: .7rem;
	top: .7rem;
	z-index: 3;
	padding: .45rem .8rem;
	border: 1px solid rgba(239, 229, 216, .55);
	border-radius: 2px;
	background: rgba(13, 19, 16, .78);
	color: #efe5d8;
	font: inherit;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
}
.fc-sv__sound:hover,
.fc-sv__sound[aria-pressed="true"] { background: #a0422e; border-color: #a0422e; }

/* Scenery, not a player: no clicks on the embed (FC-100). */
.fc-sv__media iframe { pointer-events: none; }

/* ---- the story ---- */

.fc-sv__tabs {
	display: flex;
	gap: 1.6rem;
	margin: 0 0 1.6rem;
	overflow-x: auto;
	border-bottom: 1px solid var(--fc-line);
	scrollbar-width: none;
}

.fc-sv .fc-sv__tabs a {
	flex: none;
	padding: .2rem 0 .7rem;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	color: var(--fc-text);
	font-size: .8rem;
	letter-spacing: .08em;
	opacity: .65;
	text-decoration: none;
}

.fc-sv .fc-sv__tabs a:hover,
.fc-sv .fc-sv__tabs a.is-on { border-bottom-color: var(--fc-red-text); opacity: 1; }

/* Clear the sticky header when a section link scrolls to it. */
.fc-sv__section { margin: 0 0 2.4rem; scroll-margin-top: calc(var(--fc-header-h) + var(--fc-adminbar-sticky, 0px) + 1rem); }

.fc-sv .fc-sv__section > h2 {
	margin: 0 0 .9rem;
	color: #f2e9dc;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
}

.fc-sv__summary { margin: 0; font-size: 1.08rem; line-height: 1.75; opacity: .9; }
.fc-sv .fc-case__audio { margin: 0; }
.fc-sv .fc-case__comments { margin-top: 0; }

/* A quote in the story reads as a witness statement, on its own slip. */
.fc-sv .fc-case__body blockquote {
	border: 1px solid var(--fc-line);
	border-left: 3px solid var(--fc-red-text);
	border-radius: 2px;
	background: rgba(12, 9, 7, .55);
}

/* ---- around the case ---- */

/* The place's photograph, pinned to the file like a print. */
.fc-sv__print {
	position: relative;
	margin: .4rem .6rem 0;
	padding: .7rem .7rem .8rem;
	background: #e9e0cc;
	box-shadow: 0 12px 26px rgba(0, 0, 0, .6), 0 0 0 1px rgba(40, 30, 20, .35);
	transform: rotate(-1.6deg);
}

.fc-sv__print::before {
	content: '';
	position: absolute;
	top: -.7rem;
	left: 50%;
	width: 5.5rem;
	height: 1.5rem;
	background: rgba(214, 200, 168, .55);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transform: translateX(-50%) rotate(2deg);
}

.fc-sv__shot { position: relative; display: block; }

/* FC-146: handwritten-style caption on the paper margin; long names wrap. */
.fc-sv .fc-sv__cap {
	margin: .7rem .2rem 0;
	color: #3a2d20;
	font-family: 'Lora', Georgia, serif;
	font-size: .95rem;
	font-style: italic;
	line-height: 1.3;
	text-align: center;
	overflow-wrap: anywhere;
}

.fc-sv .fc-sv__print img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.45) contrast(1.08) brightness(.85); }

/* FC-156: "Play audio story", sitting on the lower edge of the picture. */
.fc-sv__listen {
	position: absolute;
	left: 50%;
	bottom: 1.1rem;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem 1.1rem .55rem .8rem;
	border: 1px solid var(--fc-ember);
	border-radius: 999px;
	background: rgba(13, 19, 16, .88);
	color: #f2e9dc;
	font-size: .82rem;
	letter-spacing: .06em;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .6);
	transform: translateX(-50%);
}

.fc-sv__listen:hover,
.fc-sv__listen:focus-visible { background: var(--fc-ember); color: var(--fc-bg); outline: none; }

.fc-sv__listen svg { width: 20px; height: 20px; fill: currentColor; }
.fc-listen__pause,
.fc-sv__listen.is-playing .fc-listen__play { display: none; }
.fc-sv__listen.is-playing .fc-listen__pause { display: block; }

.fc-sv__panel { padding: 1.2rem 1.3rem 1.3rem; }

.fc-sv .fc-sv__label {
	margin: 0 0 .85rem;
	color: #f2e9dc;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 600;
}

.fc-sv__share { display: flex; gap: .55rem; margin: 0 0 1rem; }

.fc-sv .fc-sv__share a,
.fc-sv .fc-sv__share button {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--fc-line);
	border-radius: 50%;
	background: transparent;
	color: var(--fc-text);
	cursor: pointer;
}

.fc-sv .fc-sv__share a:hover,
.fc-sv .fc-sv__share button:hover,
.fc-sv .fc-sv__share button.is-done { border-color: var(--fc-red-text); color: var(--fc-red-text); }
.fc-sv__share svg { width: 16px; height: 16px; }

.fc-sv__act { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

.fc-sv__related { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.fc-sv .fc-sv__related a { display: flex; gap: .8rem; align-items: center; color: var(--fc-text); text-decoration: none; }

.fc-sv__rthumb {
	flex: none;
	width: 72px;
	height: 54px;
	overflow: hidden;
	border: 1px solid var(--fc-line);
	background: var(--fc-tex), #120e0b;
}

.fc-sv .fc-sv__rthumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: sepia(.4) brightness(.85); }
.fc-sv__rtext { display: grid; gap: .1rem; min-width: 0; }
.fc-sv__rcase { color: var(--fc-amber); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.fc-sv__rtitle { overflow: hidden; font-size: .92rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.fc-sv__rplace { font-size: .74rem; opacity: .6; }
.fc-sv .fc-sv__related a:hover .fc-sv__rtitle { color: var(--fc-red-text); }

/* One column: the case file first, so the title still leads. */
@media (max-width: 900px) {
	.fc-sv__grid,
	.fc-sv__grid:not(:has(.fc-sv__media)) {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas: "head" "file" "media" "main" "extras";
	}

	.fc-sv__side { position: static; display: contents; background: none; box-shadow: none; }
	.fc-sv__file { grid-area: file; }
	.fc-sv__extras { grid-area: extras; }

}


/* =========================================================================
   Contact page (FC-88) — the form, with a "share your story" panel beside it.
   ====================================================================== */

.fc-contact {
	display: grid;
	grid-template-columns: minmax(0, 46rem) minmax(16rem, 22rem);
	gap: 2.5rem;
	align-items: start;
	margin: 0 0 3.5rem;
	color: var(--fc-text);
	scroll-margin-top: calc(var(--fc-header-h) + var(--fc-adminbar-sticky, 0px) + 1rem);
}

.fc-contact__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.fc-contact .fc-form { max-width: none; }

.fc-contact__aside { padding: 1.4rem 1.4rem 1.5rem; }
.fc-contact__aside p { margin: 0 0 1.1rem; line-height: 1.6; opacity: .85; }

.fc-contact .fc-contact__label {
	margin: 0 0 .7rem;
	color: #f2e9dc;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.1rem;
	font-weight: 600;
}

@media (max-width: 900px) {
	.fc-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
	.fc-contact__pair { grid-template-columns: 1fr; }
}


/* =========================================================================
   Share Your Story page (FC-89) — the archive intake: a picture and a
   heading, then the form in four numbered parts on one worn sheet.
   Markup in the [folklore_submit] shortcode (inc/submit.php).
   ====================================================================== */

.fc-intake { max-width: 48rem; margin: 0 auto; padding: 1rem 0 3rem; color: var(--fc-text); }

/* Breakdance gives every section 100px of top padding; on this page that
   pushed the first field off the first screen. */
.bde-section .section-container:has(> .bde-code-block > .fc-intake) { padding-top: 1.2rem; }

/* Compact (FC-91): the artwork as a small print beside the heading, so the
   first field is on the first screen. */
.fc-intake__hero {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	gap: 1.4rem;
	align-items: center;
	margin: 0 0 1.2rem;
}

/* The artwork sits on black; `lighten` lets the page show through the black
   instead of a dark box, and the soft mask melts what is left at the edges. */
.fc-intake__art {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: lighten;
	-webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 70%, transparent 100%);
	mask-image: radial-gradient(75% 75% at 50% 50%, #000 70%, transparent 100%);
}

/* The story editor's toolbar (TinyMCE's light skin) in the site's dark paper. */
.fc-intake .mce-panel,
.fc-intake .mce-container,
.fc-intake .mce-toolbar-grp { background: #1a1512 !important; border-color: var(--fc-line) !important; }
.fc-intake .mce-tinymce { border: 1px solid var(--fc-line) !important; box-shadow: none !important; }
.fc-intake .mce-btn { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.fc-intake .mce-btn:hover,
.fc-intake .mce-btn.mce-active { background: rgba(221, 90, 68, .15) !important; border-color: rgba(221, 90, 68, .4) !important; }
.fc-intake .mce-ico,
.fc-intake .mce-txt,
.fc-intake .mce-caret { color: #d6cdc2 !important; border-top-color: #d6cdc2 !important; }
.fc-intake .mce-listbox button { border: 1px solid var(--fc-line) !important; background: rgba(0, 0, 0, .25) !important; }

.fc-intake__kicker {
	margin: 0 0 .4rem;
	color: var(--fc-red-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.fc-intake .fc-intake__h1 {
	margin: 0 0 .5rem;
	color: #efe5d8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
	font-weight: 400;
	letter-spacing: .08em;
	line-height: 1.05;
	text-transform: uppercase;
}

.fc-intake__lead {
	display: flex;
	gap: .8rem;
	align-items: center;
	margin: 0;
	font-family: 'Lora', Georgia, serif;
	font-size: 1rem;
}

/* The short red rule before the line, as in the mockup. */
.fc-intake__lead::before { content: ''; flex: none; width: 2.4rem; height: 2px; background: var(--fc-red-text); }

.fc-intake__text {
	display: none; /* FC-91: the compact header drops the paragraph */
	max-width: 34rem;
	margin: 0;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .9rem;
	line-height: 1.75;
	opacity: .8;
}

/* One sheet for the whole form; the parts are ruled off inside it. */
.fc-intake__form.fc-form {
	position: relative;
	isolation: isolate;
	max-width: none;
	padding: .5rem 1.8rem 1.4rem;
}

.fc-intake__form::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	border: 1px solid var(--fc-edge);
	border-radius: 3px;
	background: linear-gradient(180deg, rgba(255, 236, 214, .03), rgba(0, 0, 0, .22)), var(--fc-tex), var(--fc-sheet);
	box-shadow: inset 0 0 40px rgba(110, 36, 20, .3), 0 14px 34px rgba(0, 0, 0, .6);
	filter: url(#fc-worn);
	pointer-events: none;
}

.fc-intake__part { padding: 1.8rem 0 .4rem; border-bottom: 1px solid var(--fc-line); }
.fc-intake__part:last-of-type { border-bottom: 0; }

.fc-intake__step { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.5rem; }

.fc-intake__n {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.6rem;
	height: 2.6rem;
	border: 1.5px solid var(--fc-red-text);
	border-radius: 50%;
	color: var(--fc-red-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1.05rem;
}

.fc-intake__icon { display: flex; flex: none; padding-left: 1rem; border-left: 1px solid var(--fc-line); color: var(--fc-red-text); }
.fc-intake__icon svg { width: 30px; height: 30px; }

.fc-intake .fc-intake__title {
	margin: 0;
	color: #efe5d8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.fc-intake__line { font-size: .85rem; opacity: .7; }

.fc-intake .fc-form label { font-size: .88rem; }
.fc-intake .fc-form small { font-size: .78rem; }

/* 02: the search and map on the left, what was picked and the safety note on the right. */
.fc-intake__where { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 1.4rem; align-items: start; }

.fc-intake__search { position: relative; display: block; }
.fc-intake__search svg { position: absolute; top: 50%; left: .8rem; width: 16px; height: 16px; opacity: .6; transform: translateY(-50%); }
.fc-intake .fc-intake__search input { padding-left: 2.4rem; }

.fc-intake__box {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	padding: .9rem 1rem;
	border: 1px solid var(--fc-line);
	background: rgba(10, 8, 6, .45);
	font-size: .85rem;
}

.fc-intake__box > svg { flex: none; width: 16px; height: 16px; margin-top: .15rem; color: var(--fc-red-text); }
.fc-intake__box b { display: block; font-weight: 600; }
.fc-intake__box .fc-pick__note { display: block; margin: .15rem 0 0; font-size: .82rem; }
.fc-intake__box .fc-pick__note:empty::before { content: 'Not selected yet'; color: var(--fc-text); opacity: .6; }

.fc-intake__tip { margin: .9rem 0 0; font-size: .78rem; line-height: 1.55; opacity: .7; }
.fc-intake__credit { margin: .5rem 0 0; font-size: .7rem; opacity: .45; }

/* 03: a dashed drop zone; the file input covers it, so a click or a drop both work. */
.fc-intake__evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; margin: 0 0 1.4rem; }

.fc-intake__drop {
	position: relative;
	display: grid;
	place-items: center;
	align-content: center;
	gap: .35rem;
	min-height: 8.5rem;
	padding: 1rem;
	border: 1.5px dashed rgba(221, 90, 68, .55);
	border-radius: 3px;
	text-align: center;
	cursor: pointer;
}

.fc-intake__drop:hover,
.fc-intake__drop:focus-within { border-color: var(--fc-red-text); background: rgba(221, 90, 68, .05); }
.fc-intake__drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fc-intake__drop svg { width: 34px; height: 34px; color: var(--fc-red-text); }
.fc-intake__droptext { color: var(--fc-red-text); font-size: .88rem; }
.fc-intake .fc-intake__drop small { margin: 0; }

.fc-intake__label { margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 1px solid var(--fc-line); font-size: .85rem; }

.fc-intake__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 5.5rem)); gap: .6rem; min-height: 1rem; margin: 0 0 .6rem; }
.fc-intake__thumbs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--fc-line); filter: sepia(.25); }
.fc-intake__thumbs p { grid-column: 1 / -1; margin: 0; color: var(--fc-red-text); font-size: .78rem; }

/* 04 */
.fc-intake__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.2rem; }

.fc-intake__privacy {
	display: flex;
	gap: .9rem;
	margin: 0 0 1.4rem;
	padding: 1rem 1.2rem;
	border: 1px solid var(--fc-line);
	background: rgba(10, 8, 6, .45);
}

.fc-intake__privacy > svg { flex: none; width: 22px; height: 22px; color: var(--fc-red-text); }
.fc-intake__privacy b { color: var(--fc-red-text); font-weight: 600; }
.fc-intake__privacy p { margin: .3rem 0 .8rem; font-size: .82rem; line-height: 1.55; opacity: .8; }
.fc-intake .fc-intake__privacy .fc-consent { display: flex; gap: .6rem; align-items: flex-start; margin: 0; font-size: .82rem; line-height: 1.5; }
.fc-intake__privacy .fc-consent input { flex: none; margin-top: .2rem; }

.fc-intake__send { display: grid; justify-items: center; gap: .6rem; margin: 1.6rem 0 0; text-align: center; }
.fc-intake__send .fc-stamp { padding: .9em 2.2em; font-size: .85rem; }

/* ---- the stepper (FC-90): only once folklore.js adds .is-stepper ---- */

.fc-intake__progress,
.fc-intake__nav { display: none; }
/* Two classes: .is-stepper .fc-intake__send (display: flex) comes later. */
.fc-intake__send.fc-intake__send[hidden] { display: none; }

/* "01 / 04 — The account · 25% complete" over a thin bar (FC-91). */
.is-stepper .fc-intake__progress { display: block; margin: 1.3rem 0 .2rem; }
.fc-intake__progress:focus { outline: none; }

.fc-intake__where-at {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 .55rem;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.fc-intake__where-at b { color: var(--fc-red-text); font-weight: 400; }
.fc-intake__where-at [data-fc-pct] { opacity: .6; letter-spacing: .08em; }

.fc-intake__bar { display: block; height: 3px; overflow: hidden; border-radius: 2px; background: var(--fc-line); }
.fc-intake__bar i { display: block; width: 25%; height: 100%; background: var(--fc-red-text); transition: width .3s ease; }
.fc-intake__hint { margin: .6rem 0 0; font-size: .85rem; opacity: .7; }

/* The step's own big header says what the bar already says. */
.is-stepper .fc-intake__step { display: none; }
.is-stepper .fc-intake__part { padding-top: 1.2rem; border-bottom: 0; }

/* Back / Continue stay on screen at the bottom while the step is long. */
.is-stepper .fc-intake__nav,
.is-stepper .fc-intake__send {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	gap: 1rem;
	align-items: center;
	margin: 1.2rem -1.8rem 0;
	padding: .9rem 1.8rem;
	border-top: 1px solid var(--fc-line);
	background: linear-gradient(rgba(20, 16, 13, .94), rgba(20, 16, 13, .98)), var(--fc-tex);
}

.is-stepper .fc-intake__nav [data-fc-next] { margin-left: auto; }
.is-stepper .fc-intake__send { flex-wrap: wrap; justify-content: space-between; }
.is-stepper .fc-intake__send small { flex-basis: 100%; text-align: right; }

/* The map step: the map gets the width, the details sit under it. */
.is-stepper .fc-intake__where { grid-template-columns: 1fr; }
.is-stepper .fc-pick__stage { height: 380px; }
.is-stepper .fc-intake__aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.is-stepper .fc-intake__tip { margin: 0; }

.fc-intake__err { margin: .5rem 0 0; color: var(--fc-red-text); font-size: .85rem; }
.fc-intake__err[hidden] { display: none; }
.fc-intake__form { scroll-margin-top: calc(var(--fc-header-h) + var(--fc-adminbar-sticky, 0px) + 1rem); }

@media (max-width: 600px) {
	.is-stepper .fc-intake__nav,
	.is-stepper .fc-intake__send { margin: 1rem -1.1rem 0; padding: .8rem 1.1rem; }
	.is-stepper .fc-intake__aside { grid-template-columns: 1fr; }
	.is-stepper .fc-pick__stage { height: 300px; }
}

/* Desktop (FC-92): the intake heading on the left, held in view while the
   form on the right scrolls; there is room for the artwork and the
   paragraph again. */
@media (min-width: 901px) {
	.fc-intake {
		display: grid;
		grid-template-columns: minmax(15rem, 21rem) minmax(0, 48rem);
		gap: 3rem;
		justify-content: center;
		align-items: start;
		max-width: 76rem;
	}

	/* Sticky makes the column its own stacking context, so the artwork's
	   `lighten` could no longer see the page; the column blends instead (its
	   text is light, so it is unchanged). */
	.fc-intake__hero {
		position: sticky;
		top: calc(var(--fc-header-h) + var(--fc-adminbar-sticky, 0px) + 1.5rem);
		display: block;
		margin: 1.2rem 0 0;
		mix-blend-mode: lighten;
	}

	.fc-intake__art { max-width: 19rem; margin: 0 0 1.4rem -1rem; }
	.fc-intake .fc-intake__h1 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
	.fc-intake__lead { align-items: flex-start; }
	.fc-intake__lead::before { margin-top: .7em; }
	.fc-intake__text { display: block; margin-top: 1.1rem; font-size: .84rem; }
}

@media (max-width: 900px) {
	.fc-intake__hero { grid-template-columns: 1fr; gap: 1.5rem; }
	.fc-intake__art { display: none; } /* phones: the title and first field lead */
	.fc-intake__where,
	.fc-intake__evidence { grid-template-columns: 1fr; }
	.fc-intake__row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.fc-intake__form.fc-form { padding: .2rem 1.1rem 1.4rem; }
	.fc-intake__icon { display: none; }
}


/* =========================================================================
   404 page (FC-97) — the "404 Page" element in Breakdance's 404 template.
   ====================================================================== */

.fc-404 {
	position: relative;
	display: grid;
	justify-items: center;
	align-content: center;
	min-height: 62vh;
	padding: 3rem var(--fc-gutter) 4rem;
	color: var(--fc-text);
	text-align: center;
}

/* A red haze behind the ghost, as in the design. */
.fc-404::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	z-index: -1;
	width: min(40rem, 100%);
	height: 22rem;
	background: radial-gradient(closest-side, rgba(190, 60, 45, .22), transparent);
	transform: translateX(-50%);
	pointer-events: none;
}

.fc-404__ghost {
	width: 5.5rem;
	height: 5.5rem;
	margin: 0 0 1rem;
	fill: #c4473a;
	filter: drop-shadow(0 0 18px rgba(221, 90, 68, .55));
	animation: fc-404-float 4.5s ease-in-out infinite;
}

@keyframes fc-404-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}

.fc-404 .fc-404__num {
	margin: 0;
	color: #c4473a;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: clamp(5rem, 14vw, 8.5rem);
	line-height: 1;
	text-shadow: 0 0 30px rgba(196, 71, 58, .35);
}

.fc-404 .fc-404__title {
	margin: .4rem 0 1.1rem;
	color: #efe5d8;
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: clamp(1.5rem, 3.4vw, 2.3rem);
	font-weight: 400;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.fc-404__text { max-width: 36rem; margin: 0 0 2rem; font-size: 1.05rem; line-height: 1.7; opacity: .8; }

.fc-404__ways { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: center; margin: 0; }
.fc-404__ways svg { width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -.18em; }

.fc-404 .fc-404__link {
	color: var(--fc-text);
	font-family: 'Special Elite', 'Courier New', monospace;
	font-size: .78rem;
	letter-spacing: .16em;
	text-decoration: none;
	text-transform: uppercase;
}

.fc-404 .fc-404__link:hover { color: var(--fc-red-text); }

@media (prefers-reduced-motion: reduce) {
	.fc-404__ghost { animation: none; }
}
.fc-sv__titlerow { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.fc-sv__titlerow .fc-sv__title { min-width: 0; margin: 0; }
.fc-sv__titlerow .fc-sv__badges { margin: 0; flex: none; }
.fc-sv__titlerow .fc-sv__badge { width: 72px; height: 72px; }
@media (max-width: 600px) { .fc-sv__titlerow { flex-wrap: wrap; } }

/* =========================================================================
   FC-177: status as plain coloured words — no angled stamps, no pill badges.
   Teal = a reader sent it, amber = visited, red = active threat.
   ====================================================================== */
.fc-hp-stampmark,
.fc-feat__stamp,
.fc-file__stamp,
.fc-sv__stamp,
.fc-badge {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	transform: none;
	opacity: 1;
}
.fc-feat__stamp.is-active,
.fc-feat__stamp.is-visited { background: none; }
.fc-file__stamp { color: var(--fc-red-text); }
.fc-file__stamp--visited { background: none; color: var(--fc-visited); }

/* Story page: Status sits above the location, flat (it was a stamp in the corner). */
.fc-sv__stamp { position: static; display: block; max-width: none; margin: 0 0 .9rem; text-align: left; font-size: .8rem; }

/* Next to the title. */
.fc-sv__badges { margin: 0; }
.fc-badge { font-size: .74rem; }
.fc-badge--status { color: var(--fc-text); }
.fc-badge--status.is-active { color: var(--fc-red-text); }
.fc-badge--status.is-visited { color: var(--fc-visited); }

/* =========================================================================
   FC-178: place card — image, then the place and coordinates as links.
   ====================================================================== */
.fc-file .fc-file__title a { color: inherit; text-decoration: none; }
.fc-file .fc-file__title a:hover { color: var(--fc-red-text); }
.fc-file__coords { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .06em; }
.fc-file__coords a { color: var(--fc-paper); text-decoration: underline; text-underline-offset: 3px; }
.fc-file__coords a:hover { color: var(--fc-red-text); }

/* =========================================================================
   FC-179: map legend — bigger text and bigger pins.
   ====================================================================== */
.fc-pkey summary,
.fc-legend__key { font-size: .86rem; }
.fc-legend__key { gap: .6em; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.fc-legend__key i,
.fc-pkey__stack i {
	flex: 0 0 38px;
	box-sizing: border-box;
	width: 38px;
	min-width: 38px;
	height: 38px;
}
.fc-legend__key img,
.fc-pkey__stack img { width: 28px; min-width: 28px; height: 28px; min-height: 28px; max-height: 28px; object-fit: contain; }
.fc-pkey__stack i { margin-left: -10px; }
.fc-legend__keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-pkey__panel {
	box-sizing: border-box;
	width: 420px;
	min-width: 0;
	max-width: calc(100vw - 2rem);
	max-height: 70dvh;
	overflow-y: auto;
}
@media (max-width: 781px) {
	.fc-pkey__panel { width: auto; max-width: none; }
}
@media (max-width: 480px) {
	.fc-legend__keys { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   FC-180: category chips wear the matching pin icon.
   ====================================================================== */
.fc-cat__ico {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--fc-key, #4a4a42);
}
.fc-cat__ico img { display: block; width: 24px; height: 24px; object-fit: contain; }

/* FC-180: the pin disc on the Folklore page's category tiles. */
.fc-hp-cat .fc-cat__ico { width: 48px; height: 48px; }
.fc-hp-cat .fc-cat__ico img { width: 36px; height: 36px; }

/* Tick beside "Visited": centred on the text line, not floating above it. */
.fc-sv__stamp, .fc-hp-stampmark, .fc-feat__stamp, .fc-file__stamp, .fc-badge { display: inline-flex; align-items: center; line-height: 1.2; }
.fc-sv__stamp { display: flex; }
.fc-sv__stamp .fc-visited-mark, .fc-hp-stampmark .fc-visited-mark, .fc-feat__stamp .fc-visited-mark, .fc-file__stamp .fc-visited-mark { flex: none; width: 1.1em; height: 1.1em; margin: 0 .45em 0 0; vertical-align: baseline; }

/* FC-194/199: one swipeable row, with a visible scrollbar for more categories. */
.fc-atlas > .fc-cats {
	flex-wrap: nowrap;
	max-height: none;
	overflow-x: scroll;
	overflow-y: hidden;
	scroll-padding-inline: 1rem;
	scrollbar-color: var(--fc-amber) var(--fc-sheet);
}
.fc-atlas > .fc-cats::-webkit-scrollbar { height: 8px; }
.fc-atlas > .fc-cats::-webkit-scrollbar-track { background: var(--fc-sheet); }
.fc-atlas > .fc-cats::-webkit-scrollbar-thumb { background: var(--fc-amber); border-radius: 4px; }
.fc-atlas > .fc-cats .fc-cat { min-height: 44px; white-space: nowrap; }
.fc-file__coords button {
	border: 0;
	padding: .35em .1em;
	background: none;
	color: var(--fc-amber);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.fc-sv__after { display: grid; gap: 1.6rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--fc-edge); }
.fc-sv__file { padding-top: 1.4rem; }
.fc-archive__history { max-width: 75ch; font-size: 1.1rem; line-height: 1.8; opacity: 1; overflow-wrap: anywhere; }
.fc-archive__history p { margin: 0 0 1em; }
.fc-file__history { white-space: pre-line; overflow-wrap: anywhere; }
.fc-sv__side { align-self: start; }
@media (max-width: 900px) {
	.fc-sv__grid, .fc-sv__grid:not(:has(.fc-sv__media)) { grid-template-areas: "head" "side" "media" "main"; }
	.fc-sv__side { display: grid; grid-area: side; padding: 0; }
	.fc-sv__file, .fc-sv__extras { grid-area: auto; }
}

/* FC-197: the label and type carry meaning in addition to colour. */
.fc-status {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	max-width: 100%;
	margin: .45rem 0;
	color: #d6cdc2;
	font: 600 1rem/1.5 'Special Elite', 'Courier New', monospace;
	letter-spacing: .015em;
	text-transform: none;
}
.fc-status--visited { color: #edc778; }
.fc-status--heard { color: #c7b4eb; font-family: 'Lora', Georgia, serif; font-style: italic; }
.fc-status--reader { color: #77d9ce; font-family: 'Special Elite', 'Courier New', monospace; }
.fc-status--unverified { color: #d6cdc2; font-family: 'Lora', Georgia, serif; }
.fc-status__info {
	position: relative;
	z-index: 2;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font: 1.1rem/1 Georgia, serif;
	cursor: pointer;
}
.fc-status__info:hover { background: rgba(255,255,255,.09); }
.fc-status__info:focus-visible, .fc-file__coords button:focus-visible { outline: 2px solid var(--fc-amber); outline-offset: 2px; }
.fc-status__description[hidden] { display: none; }
.fc-status__description.is-open {
	position: fixed;
	z-index: 100001;
	display: block;
	width: max-content;
	max-width: min(26rem, calc(100vw - 24px));
	max-height: min(22rem, calc(100dvh - 24px));
	overflow: auto;
	box-sizing: border-box;
	padding: 1rem 1.15rem;
	border: 1px solid #82715b;
	border-radius: 6px;
	background: #1a1512;
	box-shadow: 0 8px 28px #0009;
	color: #eadfc9;
	font: 1rem/1.7 'Lora', Georgia, serif;
	letter-spacing: normal;
	text-transform: none;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* FC-209: four stories per page, Previous / Next (sidebar and place panel). */
.fc-entry[hidden],
.fc-story[hidden],
.fc-file__stories[hidden],
.fc-file__place[hidden] { display: none !important; }

.fc-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	margin: .8rem 0;
	font-size: .82rem;
}
.fc-pager[hidden] { display: none; }
.fc-pager__label { opacity: .75; }
.fc-pager__btn {
	padding: .4rem .9rem;
	background: transparent;
	color: inherit;
	font: inherit;
	border: 1px solid var(--fc-line, rgba(214, 205, 194, .3));
	border-radius: 2px;
	cursor: pointer;
}
.fc-pager__btn:hover:not(:disabled) { border-color: var(--fc-glass-ring); }
.fc-pager__btn:focus-visible { outline: 2px solid var(--fc-glass-ring); outline-offset: 2px; }
.fc-pager__btn:disabled { opacity: .35; cursor: default; }
