/* =============================================================
   Vertical Hold Shortcodes — style-shortcodes.css v5.1.1
   CACHE BUST: 2026-06-06-14-30-UTC
   
   Loaded on every page via wp_enqueue_style.
   Uses the same CSS custom properties as style.css / style-home.css.
   
   INCLUDES ALL FIXES:
   ✓ Verdict body contrast (white text)
   ✓ Table header contrast (white text)
   ✓ Specs key contrast (white text)
   ✓ Award label size (0.75rem)
   ✓ Price badge size (0.75rem)
   ✓ Button bold text
   ✓ Title emphasis
   ============================================================= */

/* ── Feature Box ─────────────────────────────────────────────── */
.fl-sc-feature-box {
	display: flex;
	gap: 0;
	align-items: stretch;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1.5em 0;
}

.fl-sc-feature-icon {
	flex-shrink: 0;
	width: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	background: var(--color-accent);
	color: #fff;
}

.fl-sc-feature-body {
	padding: 14px 16px;
	flex: 1;
	min-width: 0;
}

.fl-sc-feature-title {
	display: block;
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: bold;
	color: var(--color-text);
	margin-bottom: 4px;
}

.fl-sc-feature-desc {
	font-size: 0.9rem;
	color: var(--color-muted);
	line-height: 1.55;
	margin: 0;
}

.fl-sc-feature-desc p:last-child { margin-bottom: 0; }

/* ── Feature Grid ────────────────────────────────────────────── */
.fl-sc-feature-grid {
	display: grid;
	gap: 16px;
	margin: 1.5em 0;
}

.fl-sc-feature-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fl-sc-feature-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.fl-sc-feature-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 600px) {
	.fl-sc-feature-grid--cols-2,
	.fl-sc-feature-grid--cols-3,
	.fl-sc-feature-grid--cols-4 {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 601px) and (max-width: 900px) {
	.fl-sc-feature-grid--cols-3,
	.fl-sc-feature-grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Feature Tile ────────────────────────────────────────────── */
.fl-sc-feature-tile {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 20px 16px;
	text-align: center;
}

.fl-sc-tile-icon {
	font-size: 2rem;
	margin-bottom: 10px;
	line-height: 1;
}

.fl-sc-tile-title {
	font-family: var(--font-heading);
	font-size: 0.95rem;
	color: var(--color-text);
	margin: 0 0 8px;
}

.fl-sc-tile-body {
	font-size: 0.875rem;
	color: var(--color-muted);
	line-height: 1.5;
}

.fl-sc-tile-body p:last-child { margin-bottom: 0; }

/* ── Pros / Cons ─────────────────────────────────────────────── */
.fl-sc-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1.5em 0;
}

@media (max-width: 600px) {
	.fl-sc-pros-cons { grid-template-columns: 1fr; }
}

.fl-sc-pros { background: color-mix(in srgb, var(--color-good) 12%, var(--color-surface)); border-right: 1px solid var(--color-border); }
.fl-sc-cons { background: color-mix(in srgb, var(--color-bad) 12%, var(--color-surface)); }

@media (max-width: 600px) {
	.fl-sc-pros { border-right: none; border-bottom: 1px solid var(--color-border); }
}

.fl-sc-pros-cons-title {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0;
	padding: 10px 14px;
}

.fl-sc-pros-cons-title--pros {
	background: #2a7a2a;
	color: #fff;
}

.fl-sc-pros-cons-title--cons {
	background: #a02020;
	color: #fff;
}

.fl-sc-pros-cons-list {
	list-style: none;
	margin: 0;
	padding: 8px 14px 12px;
}

.fl-sc-pros-cons-list li {
	font-size: 0.875rem;
	padding: 5px 0;
	border-bottom: 1px solid rgba(0,0,0,0.06);
	line-height: 1.45;
}

.fl-sc-pros-cons-list li:last-child { border-bottom: none; }

.fl-sc-check { color: #2a7a2a; font-weight: bold; }
.fl-sc-cross { color: #a02020; font-weight: bold; }

/* ── Specs Table ─────────────────────────────────────────────── */
.fl-sc-specs { margin: 1.5em 0; }

.fl-sc-specs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.fl-sc-specs-caption {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	padding: 0 0 8px;
	color: var(--color-muted);
}

.fl-sc-specs-key {
	padding: 8px 12px;
	background: var(--color-dark);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: bold;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	width: 38%;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--color-darker);
}

.fl-sc-specs-val {
	padding: 8px 12px;
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 0.9rem;
	border-bottom: 1px solid var(--color-border);
	vertical-align: top;
}

.fl-sc-specs-table tbody tr:last-child .fl-sc-specs-key,
.fl-sc-specs-table tbody tr:last-child .fl-sc-specs-val {
	border-bottom: none;
}

/* ── Highlight / Callout ─────────────────────────────────────── */
.fl-sc-highlight {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: var(--radius);
	border-left: 4px solid;
	margin: 1.5em 0;
	font-size: 0.9rem;
	line-height: 1.55;
}

.fl-sc-highlight--info    { background: color-mix(in srgb, var(--color-info) 12%, var(--color-surface)); border-color: var(--color-info); }
.fl-sc-highlight--tip     { background: color-mix(in srgb, var(--color-good) 12%, var(--color-surface)); border-color: var(--color-good); }
.fl-sc-highlight--warning { background: color-mix(in srgb, var(--color-warn) 12%, var(--color-surface)); border-color: var(--color-warn); }
.fl-sc-highlight--danger  { background: color-mix(in srgb, var(--color-bad) 12%, var(--color-surface)); border-color: var(--color-bad); }

.fl-sc-highlight-icon {
	flex-shrink: 0;
	font-size: 1.2rem;
	line-height: 1;
	margin-top: 1px;
}

.fl-sc-highlight-title {
	display: block;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: bold;
	margin-bottom: 4px;
}

.fl-sc-highlight-body p:last-child { margin-bottom: 0; }

/* ── CTA Button ──────────────────────────────────────────────── */
.fl-sc-cta {
	margin: 1.5em 0;
	text-align: center;
}

.fl-sc-cta-btn,
.fl-sc-cta-btn:link,
.fl-sc-cta-btn:visited {
	display: inline-block;
	padding: 12px 28px;
	background: var(--color-accent);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.9rem;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--radius);
	transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	border: none;
}

.fl-sc-cta-btn:hover,
.fl-sc-cta-btn:focus,
.fl-sc-cta-btn:active {
	background: var(--color-accent-hover);
	color: #fff;
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
	outline: none;
}

.fl-sc-cta-btn:active {
	transform: translateY(0);
}

/* ── Comparison Table ────────────────────────────────────────── */
.fl-sc-comparison { margin: 1.5em 0; overflow-x: auto; }

.fl-sc-comparison-caption {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	padding: 0 0 8px;
	color: var(--color-muted);
}

.fl-sc-comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.fl-sc-comparison-table thead th {
	background: var(--color-dark);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: bold;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 10px 12px;
	text-align: left;
	border-bottom: 2px solid var(--color-darker);
}

.fl-sc-comparison-table tbody tr:nth-child(even) { background: #f5f5f5; }

.fl-sc-comparison-table tbody th,
.fl-sc-comparison-table tbody td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
	text-align: left;
	vertical-align: top;
}

.fl-sc-comparison-table tbody th {
	font-family: var(--font-heading);
	font-size: 0.82rem;
	background: rgba(0,0,0,0.04);
}

/* ── Star Rating ─────────────────────────────────────────────── */
.fl-sc-stars {
	display: inline-flex;
	gap: 1px;
	font-size: 1.2rem;
	line-height: 1;
	vertical-align: middle;
}

.fl-sc-star--full  { color: var(--color-warn); }
.fl-sc-star--half  { color: var(--color-warn); opacity: 0.6; }
.fl-sc-star--empty { color: var(--color-mid); }

/* ── Score Badge ─────────────────────────────────────────────── */
.fl-sc-score-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--color-dark);
	border-radius: var(--radius);
	margin: 0.5em 0;
}

.fl-sc-score-number {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	color: #fff;
	line-height: 1;
}

.fl-sc-score-max {
	font-size: 0.78rem;
	color: var(--color-muted-on-dark);
}

.fl-sc-score-label {
	font-size: 0.78rem;
	color: var(--color-muted-on-dark);
	margin-left: 4px;
}

/* ── Verdict Box ─────────────────────────────────────────────── */
.fl-sc-verdict {
	background: var(--color-dark);
	border-left: 4px solid var(--color-accent);
	border-radius: var(--radius);
	padding: 20px;
	margin: 1.5em 0;
	position: relative;
}

.fl-sc-award-badge {
	position: absolute;
	top: -1px;
	right: 16px;
	background: var(--color-highlight);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 0 0 var(--radius) var(--radius);
}

.fl-sc-verdict-header {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.fl-sc-verdict-score {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fl-sc-verdict-num {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	font-weight: bold;
	color: #fff;
	line-height: 1;
}

.fl-sc-verdict-max {
	font-size: 0.85rem;
	color: var(--color-muted-on-dark);
}

.fl-sc-verdict-label {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: bold;
	color: #fff;
	margin: 0;
}

.fl-sc-verdict-body {
	color: #fff;
	font-size: 0.9rem;
	line-height: 1.6;
}

.fl-sc-verdict-body p:last-child { margin-bottom: 0; }

/* ── Award Stamp ─────────────────────────────────────────────── */
.fl-sc-award {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	padding: 12px;
	text-align: center;
	background: var(--color-highlight);
	float: right;
	margin: 0 0 12px 16px;
	box-shadow: var(--shadow-md);
}

/* float:right is intentional for the common case — a single badge
   sitting beside a paragraph of text. But ANY element that follows a
   floated badge without something clearing the float will wrap up
   beside/under it rather than starting fresh below — including a
   second [fl_award], a heading, or any other block-level element.
   Without this, multiple badges in sequence overlap each other, and
   unrelated content after a badge can visually collide with it.

   Real fix: clear the float on the NEXT element, not on the badge
   itself (a `clear` property only affects the element it's set on —
   it can't retroactively change how already-floated content behaves).
   Since we can't predict what specific element will follow a badge
   in arbitrary post content, the safe, general-purpose fix is a
   wrapping shortcode that establishes its own block formatting
   context — every shortcode in this stylesheet that follows another
   already does this implicitly via padding/border/background, but
   floated badges with nothing else around them are the one case that
   doesn't. Wrapping the badge's float in a clearfix container ensures
   the badge's own box always contains its float, so the next element
   in the document — whatever it is — starts in normal flow below it. */
.fl-sc-award-wrap {
	overflow: hidden;
	margin: 0.5em 0;
}


.fl-sc-award-icon { font-size: 2rem; line-height: 1; }

.fl-sc-award-label {
	font-family: var(--font-heading);
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	line-height: 1.2;
	margin-top: 4px;
}

/* ── Price Box ───────────────────────────────────────────────── */
.fl-sc-price-box {
	background: var(--color-surface);
	border: 2px solid var(--color-accent);
	border-radius: var(--radius);
	padding: 20px 16px;
	text-align: center;
	margin: 1.5em 0;
	max-width: 280px;
}

.fl-sc-price-badge {
	display: inline-block;
	background: var(--color-highlight);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 10px;
}

.fl-sc-price-display {
	margin-bottom: 14px;
}

.fl-sc-price-amount {
	font-family: var(--font-heading);
	font-size: 2.2rem;
	color: var(--color-text);
	line-height: 1;
}

.fl-sc-price-period {
	font-size: 0.85rem;
	color: var(--color-muted);
	display: block;
	margin-top: 2px;
}

.fl-sc-price-btn,
.fl-sc-price-btn:link,
.fl-sc-price-btn:visited {
	display: block;
	padding: 11px 20px;
	background: var(--color-accent);
	color: #fff;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: bold;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--radius);
	transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	border: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.fl-sc-price-btn:hover,
.fl-sc-price-btn:focus,
.fl-sc-price-btn:active {
	background: var(--color-accent-hover);
	color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
	outline: none;
}

.fl-sc-price-btn:active {
	transform: translateY(0);
}

.fl-sc-price-note {
	font-size: 0.75rem;
	color: var(--color-muted);
	margin: 8px 0 0;
}

/* ── Review Summary Card ─────────────────────────────────────── */
.fl-sc-review-summary {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-top: 3px solid var(--color-dark);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 1.5em 0;
}

.fl-sc-rs-header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px;
	border-bottom: 1px solid var(--color-bg);
}

.fl-sc-rs-image {
	width: 80px;
	height: 80px;
	object-fit: contain;
	flex-shrink: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.fl-sc-rs-meta { flex: 1; min-width: 0; }

.fl-sc-rs-title {
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--color-text);
	margin: 0 0 6px;
}

.fl-sc-rs-score {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.fl-sc-rs-verdict {
	font-size: 0.875rem;
	color: var(--color-muted);
	font-style: italic;
	margin: 0;
}

.fl-sc-rs-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid var(--color-bg);
}

@media (max-width: 600px) {
	.fl-sc-rs-proscons { grid-template-columns: 1fr; }
}

.fl-sc-rs-pros { background: color-mix(in srgb, var(--color-good) 12%, var(--color-surface)); padding: 10px 14px; }
.fl-sc-rs-cons { background: color-mix(in srgb, var(--color-bad) 12%, var(--color-surface)); padding: 10px 14px; }

.fl-sc-rs-footer {
	padding: 14px 16px;
	text-align: center;
}

/* ── Star Breakdown ──────────────────────────────────────────── */
.fl-sc-star-breakdown {
	margin: 1.5em 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 14px 16px;
}

.fl-sc-breakdown-row {
	display: grid;
	grid-template-columns: 130px 1fr 36px;
	gap: 10px;
	align-items: center;
	padding: 6px 0;
	border-bottom: 1px solid var(--color-bg);
}

.fl-sc-breakdown-row:last-child { border-bottom: none; }

.fl-sc-breakdown-label {
	font-size: 0.85rem;
	color: var(--color-text);
	font-family: var(--font-heading);
}

.fl-sc-breakdown-bar-wrap {
	height: 8px;
	background: var(--color-bg);
	border-radius: 4px;
	overflow: hidden;
}

.fl-sc-breakdown-bar {
	height: 100%;
	background: var(--color-accent);
	border-radius: 4px;
	transition: width 0.4s ease;
}

.fl-sc-breakdown-score {
	font-family: var(--font-heading);
	font-size: 0.8rem;
	color: var(--color-muted);
	text-align: right;
}

/* ── Glossary ────────────────────────────────────────────────── */
.fl-sc-glossary-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 24px;
	padding: 12px;
	background: var(--color-dark);
	border-radius: var(--radius);
}

.fl-sc-glossary-nav-letter {
	display: inline-block;
	width: 28px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	background: var(--color-mid);
	color: var(--color-nav-text);
	font-family: var(--font-heading);
	font-size: 0.8rem;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: background var(--transition), color var(--transition);
}

.fl-sc-glossary-nav-letter:hover {
	background: var(--color-accent);
	color: #fff;
}

.fl-sc-glossary { margin: 0; }

.fl-sc-glossary-group { margin-bottom: 24px; }

.fl-sc-glossary-letter {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	color: var(--color-text);
	border-bottom: 2px solid var(--color-dark);
	padding-bottom: 4px;
	margin-bottom: 10px;
}

.fl-sc-glossary-entry {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--color-bg);
}

.fl-sc-glossary-entry:last-child {
	border-bottom: none;
}

.fl-sc-glossary-term {
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--color-text);
	margin: 0 0 4px;
}

.fl-sc-glossary-term a {
	color: var(--color-text);
	text-decoration: none;
}

.fl-sc-glossary-term a:hover { color: var(--color-accent); }

.fl-sc-glossary-def {
	margin: 0;
	font-size: 0.9rem;
	color: var(--color-muted);
	line-height: 1.6;
	padding-left: 16px;
	border-left: 2px solid var(--color-border);
}

.fl-sc-glossary-def p:last-child { margin-bottom: 0; }

.fl-sc-glossary-empty {
	color: var(--color-muted);
	font-style: italic;
}

/* ── Inline Glossary Term ────────────────────────────────────── */
.fl-sc-glossary-inline {
	color: var(--color-accent);
	border-bottom: 1px dotted var(--color-accent);
	text-decoration: none;
	cursor: help;
}

.fl-sc-glossary-inline:hover {
	color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
}

/* ── Definition Block ────────────────────────────────────────── */
.fl-sc-definition {
	margin: 1em 0;
	padding-left: 16px;
	border-left: 3px solid var(--color-accent);
}

.fl-sc-definition-term {
	font-family: var(--font-heading);
	font-size: 1rem;
	color: var(--color-text);
	margin: 0 0 4px;
}

.fl-sc-definition-body {
	font-size: 0.9rem;
	color: var(--color-muted);
	line-height: 1.6;
	margin: 0;
}

.fl-sc-definition-body p:last-child { margin-bottom: 0; }

/* ── No Sidebar template ─────────────────────────────────────── */
.fl-fullwidth-wrap {
	width: 100%;
}

.fl-fullwidth-main {
	background: var(--color-surface);
	padding: 20px 16px;
	width: 100%;
}

/* ── Gallery Slider (.fl-gallery-*) ─────────────────────────────────────────
   Zero external dependencies. CSS scroll-snap handles swipe/drag natively;
   JS (js/gallery-slider.js) drives the prev/next buttons, dot indicators,
   and keyboard navigation only.

   Layout:
     .fl-gallery-slider          root — region landmark, keyboard target
       .fl-gallery-track         horizontal scroll container, snap axis
         .fl-gallery-slide       one slide per image, snap-align:start
           img.fl-gallery-img    the image, object-fit:cover inside aspect box
           .fl-gallery-meta      caption + credit, bottom-left overlay
           .fl-gallery-counter   "1 / 5" counter, bottom-right
       .fl-gallery-controls      prev button · dots · next button
         .fl-gallery-prev        ‹ arrow
         .fl-gallery-dots        dot strip
           .fl-gallery-dot       individual dot button
             --active modifier
         .fl-gallery-next        › arrow
   ─────────────────────────────────────────────────────────────────────────── */

/* Root */
.fl-gallery-slider {
	position: relative;
	background: #000;
	overflow: hidden;
	outline: none; /* focus ring handled below via :focus-visible */
	margin: 1.5em 0;
}

.fl-gallery-slider:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 2px;
}

/* Track — horizontal scroll container with scroll-snap */
.fl-gallery-track {
	display: flex;
	position: relative; /* establishes offsetParent for slide.offsetLeft in gallery-slider.js */
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch; /* momentum scroll on iOS */
	scrollbar-width: none;             /* Firefox — hides native scrollbar */
	-ms-overflow-style: none;          /* IE11 */
}

.fl-gallery-track::-webkit-scrollbar {
	display: none; /* Chrome/Safari/Edge — hides native scrollbar */
}

/* Slide */
.fl-gallery-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

/* Image */
.fl-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	user-select: none;
}

/* Caption + credit overlay — bottom-left, matching .fl-image-meta convention
   on single-post featured images so metadata looks identical across contexts. */
.fl-gallery-meta {
	position: absolute;
	left: 10px;
	bottom: 44px; /* sits above the controls strip */
	display: flex;
	align-items: baseline;
	gap: 5px;
	max-width: calc(70% - 10px); /* leaves room for counter on right */
	padding: 5px 10px;
	background: rgba(20, 20, 20, 0.82);
	font-size: 0.72rem;
	color: #e8e8e8;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fl-gallery-meta-icon {
	flex-shrink: 0;
	font-size: 0.9em;
	opacity: 0.85;
}

/* Slide counter — bottom-right, above controls */
.fl-gallery-counter {
	position: absolute;
	right: 10px;
	bottom: 52px;
	padding: 4px 8px;
	background: rgba(20, 20, 20, 0.72);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: #ccc;
	line-height: 1;
	letter-spacing: 0.04em;
}

/* Controls bar — prev · dots · next */
.fl-gallery-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 4px;
	background: rgba(10, 10, 10, 0.88);
	height: 40px;
}

/* Prev / Next buttons */
.fl-gallery-prev,
.fl-gallery-next {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	border-radius: 3px;
	transition: background 0.15s ease;
}

.fl-gallery-prev:hover,
.fl-gallery-next:hover {
	background: rgba(255, 255, 255, 0.12);
}

.fl-gallery-prev:disabled,
.fl-gallery-next:disabled {
	opacity: 0.25;
	cursor: default;
}

.fl-gallery-prev:focus-visible,
.fl-gallery-next:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
}

/* Dot strip */
.fl-gallery-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1;
	overflow: hidden;
	padding: 0 4px;
}

/* Individual dot button */
.fl-gallery-dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fl-gallery-dot--active {
	background: #fff;
	border-color: #fff;
	transform: scale(1.25);
}

.fl-gallery-dot:hover:not(.fl-gallery-dot--active) {
	border-color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.25);
}

.fl-gallery-dot:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* ── Single-image galleries — hide controls entirely ──────────────────────── */
.fl-gallery-slider:has(.fl-gallery-slide:only-child) .fl-gallery-controls {
	display: none;
}
.fl-gallery-slider:has(.fl-gallery-slide:only-child) .fl-gallery-counter {
	display: none;
}

/* ── Story Link (.fl-story-link) ─────────────────────────────────────────────
   Compact single-line inline card for [fl_story_link] — small thumbnail
   + title, meant to sit inline within a paragraph of running text, not
   as its own block-level section like the other shortcodes on this
   page. display: inline-flex keeps it flowing with surrounding text
   rather than forcing a line break before/after it. */

.fl-story-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 20px;
	padding: 3px 14px 3px 3px;
	text-decoration: none;
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.92em;
	line-height: 1.3;
	vertical-align: middle;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fl-story-link:hover,
.fl-story-link:focus-visible {
	border-color: var(--color-accent);
}

.fl-story-link-thumb {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.fl-story-link-thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--color-mid);
	font-size: 0.9em;
}

.fl-story-link-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 320px;
}

/* Visible failure state when a slug/URL doesn't resolve to a real post
   — deliberately NOT styled to look like a normal working link, so an
   editor previewing the post notices something needs fixing rather
   than assuming it's correct. */
.fl-story-link--broken {
	display: inline-block;
	background: #fdecea;
	color: #8a1f11;
	border: 1px dashed #c0392b;
	border-radius: 4px;
	padding: 2px 10px;
	font-size: 0.85em;
	font-weight: 600;
}

@media (max-width: 480px) {
	.fl-story-link-title {
		max-width: 200px;
	}
}
