@charset "UTF-8";
/* ==========================================================================
   Investor Quotes — v7 "Deck"
   --------------------------------------------------------------------------
   The rotating quotation in the footer's middle column. Its ground is the
   inverted footer plate, so the default treatment is light-on-dark: an
   outlined panel holding the quotation set in the display face, the
   attribution beneath, a hairline progress bar and a row of dots.

   Class names are generated by assets/js/investor-quotes.js and must not
   change: .investor-quotes-widget, .quotes-container, .quotes-stage,
   .quote-content, .quote-text, .quote-author, .quote-progress,
   .quote-progress-bar, .quote-dots, .quote-dot, plus .active on the current
   slide and dot.
   ========================================================================== */

.investor-quotes-widget {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.quotes-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: clamp(1.1rem, 2.2vw, 1.5rem);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius-lg);
	height: 100%;
}

/* The stage holds every quotation stacked; only .active is painted. A fixed
   min-height stops the footer column resizing as quotations of different
   lengths cycle through. */
.quotes-stage {
	position: relative;
	min-height: 190px;
	flex: 1;
}

.quote-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.9rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out),
		visibility 0.5s var(--ease-out);
	pointer-events: none;
}

.quote-content.active {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

/* The quotation itself, set in the display face — the one place in the footer
   that carries type at any size. The opening quote mark is drawn rather than
   typed so it hangs outside the measure. */
.quote-text {
	position: relative;
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: var(--track-tight);
	color: var(--on-dark);
	text-wrap: balance;
}

.quote-text::before {
	content: "“";
	display: block;
	font-family: var(--font-display);
	font-size: 2.6em;
	font-weight: 700;
	line-height: 0.6;
	color: var(--on-dark-faint);
	margin-bottom: 0.1em;
}

.quote-author {
	display: flex;
	align-items: center;
	gap: 0.6em;
	font-family: var(--font-body);
	font-size: var(--fs-micro);
	font-weight: 500;
	letter-spacing: var(--track-eyebrow);
	text-transform: uppercase;
	color: var(--on-dark-dim);
}

/* A short rule leading the attribution, as on the plate headers. */
.quote-author::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background: var(--line-dark);
	flex-shrink: 0;
}

/* ── The progress bar ────────────────────────────────────────────────────
   Its width is driven inline by the widget's own timer, so only the track
   and the fill's colour are set here. */
.quote-progress {
	height: 2px;
	border-radius: 1px;
	background: var(--line-dark-soft);
	overflow: hidden;
}

.quote-progress-bar {
	height: 100%;
	width: 0;
	background: var(--on-dark);
	border-radius: inherit;
}

/* ── The dots ────────────────────────────────────────────────────────────── */
.quote-dots {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.quote-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: transparent;
	border: 1px solid var(--on-dark-faint);
	cursor: pointer;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}

.quote-dot:hover {
	border-color: var(--on-dark);
	transform: scale(1.2);
}

.quote-dot.active {
	background: var(--on-dark);
	border-color: var(--on-dark);
}

/* ── Loading and error states ────────────────────────────────────────────── */
.quotes-loading,
.quotes-error {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 190px;
	font-size: var(--fs-xs);
	color: var(--on-dark-dim);
	text-align: center;
}

.loading-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--line-dark);
	border-top-color: var(--on-dark);
	border-radius: 50%;
	animation: st-spin 0.8s linear infinite;
	flex-shrink: 0;
}

@keyframes st-spin {
	to { transform: rotate(360deg); }
}

/* ── On a LIGHT ground ───────────────────────────────────────────────────
   The widget ships a --light modifier for use outside the footer; the
   shortcode can also land in a page body. Both repaint to ink-on-plate.
   ------------------------------------------------------------------------ */
.investor-quotes-container--light .quotes-container,
.entry-content .quotes-container {
	border-color: var(--line);
}

.investor-quotes-container--light .quote-text,
.entry-content .quote-text {
	color: var(--ink-100);
}

.investor-quotes-container--light .quote-text::before,
.entry-content .quote-text::before {
	color: var(--ink-600);
}

.investor-quotes-container--light .quote-author,
.entry-content .quote-author {
	color: var(--ink-500);
}

.investor-quotes-container--light .quote-author::before,
.entry-content .quote-author::before {
	background: var(--line-firm);
}

.investor-quotes-container--light .quote-progress,
.entry-content .quote-progress {
	background: var(--line-soft);
}

.investor-quotes-container--light .quote-progress-bar,
.entry-content .quote-progress-bar {
	background: var(--ink-100);
}

.investor-quotes-container--light .quote-dot,
.entry-content .quote-dot {
	border-color: var(--ink-600);
}

.investor-quotes-container--light .quote-dot.active,
.entry-content .quote-dot.active {
	background: var(--ink-100);
	border-color: var(--ink-100);
}

.investor-quotes-container--light .quotes-loading,
.investor-quotes-container--light .quotes-error,
.entry-content .quotes-loading,
.entry-content .quotes-error {
	color: var(--ink-400);
}

.investor-quotes-container--light .loading-spinner,
.entry-content .loading-spinner {
	border-color: var(--line);
	border-top-color: var(--ink-100);
}

@media (prefers-reduced-motion: reduce) {
	.quote-content {
		transition-duration: 1ms;
	}

	.loading-spinner {
		animation-duration: 2s;
	}
}
