/**
 * The Word Index — market dashboard for language.
 * Dark DOI brand + a financial-terminal information density.
 */

.wi-page {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;

	--wi-bg: #232323;      /* DOI --dark */
	--wi-bg-2: #1c1c1c;
	--wi-surface: #2b2b2b;
	--wi-surface-2: #343434;
	--wi-ink: #fbfbf4;
	--wi-muted: rgba(251, 251, 244, 0.60);
	--wi-faint: rgba(251, 251, 244, 0.38);
	--wi-line: rgba(251, 251, 244, 0.10);
	--wi-up: #98f2a8;   /* Ledger Green (DOI brand green, provisional) */
	--wi-down: #ff4571; /* DOI embargo red (magenta) */
	--wi-accent: #ff4571;
	--wi-sans: "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wi-serif: "Libre Baskerville", Georgia, serif;
	--wi-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

	background: var(--wi-bg);
	color: var(--wi-ink);
	font-family: var(--wi-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	padding-bottom: 100px;
}

.wi-page .container { max-width: 1480px; }

/* Shared bits */
.wi-change--up { color: var(--wi-up); }
.wi-change--down { color: var(--wi-down); }
.wi-change--flat { color: var(--wi-muted); }
.wi-mono { font-family: var(--wi-mono); font-variant-numeric: tabular-nums; }

.wi-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wi-faint);
	margin-bottom: 10px;
}

.wi-ticker { font-weight: 800; letter-spacing: 0.03em; }
.wi-ticker--lg { font-size: 22px; }

/* Sparklines */
.wi-spark { display: block; width: 100%; height: auto; }
.wi-spark-line { stroke-width: 1.5px; }
.wi-spark--up .wi-spark-line { stroke: var(--wi-up); }
.wi-spark--down .wi-spark-line { stroke: var(--wi-down); }
.wi-spark--flat .wi-spark-line { stroke: var(--wi-muted); }
.wi-spark-fill { opacity: 0.12; }
.wi-spark--up .wi-spark-fill { fill: var(--wi-up); }
.wi-spark--down .wi-spark-fill { fill: var(--wi-down); }
.wi-spark--flat .wi-spark-fill { fill: transparent; }

/* ==================================================== Ticker tape */
.wi-ticker-tape {
	position: relative;
	overflow: hidden;
	background: transparent;
	padding: 12px 0;
	/* Fade the scrolling text into the page background at both edges */
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.wi-ticker-track {
	display: inline-flex;
	white-space: nowrap;
	will-change: transform;
	animation: wi-scroll 90s linear infinite;
}
@keyframes wi-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wi-tape-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 22px;
	font-size: 13px;
}
.wi-tape-tkr { font-weight: 700; letter-spacing: 0.04em; color: var(--wi-ink); }
@media (prefers-reduced-motion: reduce) { .wi-ticker-track { animation: none; } }

/* ==================================================== Masthead */
.wi-masthead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding-block: 20px 30px;
	border-bottom: 1px solid var(--wi-line);
}
.wi-masthead-text {
	margin-left: -15px; /* bleed flush to the container's left edge (15px pad) */
}
.wi-title {
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0 0 8px;
}
.wi-tagline {
	font-family: var(--wi-serif);
	font-size: 15px;
	font-style: italic;
	color: var(--wi-muted);
	margin: 0;
	max-width: 60ch;
}
.wi-tagline p { margin: 0 0 0.4em; }
.wi-tagline p:last-child { margin-bottom: 0; }
.wi-breadth {
	display: flex;
	gap: 34px;
}
.wi-stat { display: flex; flex-direction: column; align-items: flex-start; }
.wi-stat-num {
	font-family: var(--wi-mono);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.wi-stat-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wi-faint);
	margin-top: 6px;
}

/* ==================================================== Featured */
.wi-featured {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
	padding-block: 40px 22px;
	border-bottom: 1px solid var(--wi-line);
	/* This element IS the .container, so drop its side padding (rather than a
	   negative margin, which would kill Bootstrap's auto-centering) so the
	   grid spans the full container box and lines up with the bled grids. */
	padding-inline: 0;
}
/* Image = 2 of 6 cols, text = 4 (or 3 with the rail), rail = 1 — so the
   featured row lines up with the 6-col recent grid down the page. */
.wi-featured-cover { grid-column: span 2; }
.wi-featured-body { grid-column: span 4; }
.wi-featured--with-rail .wi-featured-body { grid-column: span 3; }
.wi-featured-rail { grid-column: span 1; }
.wi-featured-rail {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.wi-rail-head {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wi-faint);
	padding-bottom: 8px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--wi-line);
}
.wi-rail-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 9px 0;
	border-bottom: 1px solid var(--wi-line);
	color: var(--wi-ink);
	text-decoration: none;
	transition: color 0.15s;
}
.wi-rail-item:last-child { border-bottom: 0; }
.wi-rail-item:hover { color: var(--wi-ink); text-decoration: none; }
.wi-rail-item:hover .wi-rail-tkr { text-decoration: underline; }
.wi-rail-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wi-rail-tkr {
	font-family: var(--wi-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wi-rail-chg { font-family: var(--wi-mono); font-size: 11px; font-weight: 700; white-space: nowrap; }
.wi-rail-val {
	font-family: var(--wi-mono);
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wi-muted);
}
.wi-featured-cover {
	position: relative;
	display: block;
	grid-column: span 2;
}
.wi-featured-cover img {
	width: 100%;
	height: auto;
	border-radius: 0;
	display: block;
}
/* Small sparkline overlay, bottom-right of the image with padding */
.wi-featured-spark-ov {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 200px;
	max-width: 46%;
	pointer-events: none;
}
.wi-featured-spark-ov .wi-spark {
	filter: drop-shadow( 0 1px 4px rgba(0, 0, 0, 0.6) );
}
.wi-featured-spark-ov .wi-spark-line { stroke-width: 2px; }
.wi-featured-spark-ov .wi-spark-fill { display: none; }
.wi-featured-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.wi-change--lg { font-family: var(--wi-mono); font-size: 20px; font-weight: 700; }
.wi-featured-word {
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 800;
	line-height: 1.0;
	letter-spacing: -0.02em;
	margin: 4px 0 10px;
}
.wi-featured-word a { color: var(--wi-ink); text-decoration: none; }
.wi-featured-word a:hover { color: var(--wi-ink); text-decoration: underline; }
.wi-featured-value {
	font-family: var(--wi-mono);
	font-size: 24px;
	font-variant-numeric: tabular-nums;
	margin-bottom: 14px;
}
.wi-featured-src {
	font-family: var(--wi-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wi-faint);
	margin-left: 8px;
}
/* Subtle info tooltip beside the featured score */
.wi-info {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 7px;
	color: var(--wi-faint);
	cursor: help;
	vertical-align: middle;
	outline: none;
}
.wi-info:hover, .wi-info:focus-visible, .wi-info:focus { color: var(--wi-muted); }
.wi-info-icon { display: block; }
.wi-tip {
	position: absolute;
	left: 0;
	bottom: calc(100% + 9px);
	width: max-content;
	max-width: 240px;
	padding: 9px 11px;
	background: var(--wi-ink);
	color: #232323;
	font-family: var(--wi-sans);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0;
	text-transform: none;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	z-index: 20;
	pointer-events: none;
	white-space: normal;
}
.wi-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 6px;
	border: 5px solid transparent;
	border-top-color: var(--wi-ink);
}
.wi-info:hover .wi-tip,
.wi-info:focus-visible .wi-tip,
.wi-info:focus .wi-tip {
	opacity: 1;
	visibility: visible;
}
.wi-featured-spark { margin: 8px 0 18px; }
.wi-featured-excerpt {
	font-size: 15px;
	line-height: 1.65;
	color: var(--wi-muted);
	max-width: 56ch;
	margin: 0 0 22px;
}
.wi-featured-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #232323 !important;
	background: var(--wi-ink);
	border-radius: 4px;
	padding: 13px 26px;
	text-decoration: none;
	transition: transform 0.16s ease;
}
.wi-featured-cta:hover { transform: scale(1.04); color: #232323 !important; text-decoration: none; }

/* ==================================================== Section head + tabs */
.wi-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px 24px;
	flex-wrap: wrap;
	padding-top: 28px;
	margin-bottom: 22px;
	margin-inline: -15px; /* flush headers to the container's left/right edge */
}
.wi-section-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0;
}
.wi-index-heading { display: flex; align-items: baseline; gap: 14px; }
.wi-count { font-size: 12px; color: var(--wi-faint); font-variant-numeric: tabular-nums; }

.wi-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
/* Override the theme's global blue !important button styling */
.wi-tabs .wi-tab {
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wi-muted) !important;
	background: var(--wi-surface) !important;
	border: 1px solid transparent !important;
	border-radius: 100px !important;
	padding: 6px 13px !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.wi-tabs .wi-tab:hover { color: var(--wi-ink) !important; background: var(--wi-surface-2) !important; }
.wi-tabs .wi-tab.is-active { background: var(--wi-ink) !important; color: #232323 !important; }

/* ==================================================== Card grid */
.wi-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
	margin-inline: -15px; /* flush the grid to the container's left/right edge */
}
.wi-card {
	display: block;
	background: var(--wi-surface);
	border: 1px solid var(--wi-line);
	border-radius: 6px;
	padding: 16px 16px 10px;
	color: var(--wi-ink);
	text-decoration: none;
	transition: background 0.18s, transform 0.18s, border-color 0.18s;
}
.wi-card:hover {
	background: var(--wi-surface-2);
	border-color: rgba(251, 251, 244, 0.2);
	transform: translateY(-2px);
	color: var(--wi-ink);
	text-decoration: none;
}
.wi-card-top { display: flex; align-items: center; justify-content: space-between; }
.wi-card .wi-change { font-family: var(--wi-mono); font-size: 13px; font-weight: 700; }
.wi-card-word {
	font-size: 15px;
	color: var(--wi-muted);
	margin: 8px 0 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wi-card-value {
	font-family: var(--wi-mono);
	font-size: 20px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.wi-card-spark { margin-top: 8px; }

/* ==================================================== Recent entries grid */
.wi-recent-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	margin-inline: -15px; /* flush the grid to the container's left/right edge */
}
.wi-recent-item { display: block; color: var(--wi-ink); text-decoration: none; }
.wi-recent-item:hover { color: var(--wi-ink); text-decoration: none; }
.wi-recent-thumb {
	position: relative;
	background: var(--wi-surface);
	border-radius: 6px;
	overflow: hidden;
}
.wi-recent-thumb img {
	width: 100%; height: auto;
	display: block;
	transition: transform 0.35s ease;
}
/* Empty placeholders have no image, so give them a shape to fill. */
.wi-recent-item--empty .wi-recent-thumb { aspect-ratio: 16 / 10; }
.wi-recent-item:hover .wi-recent-thumb img { transform: scale(1.05); }
.wi-recent-item--empty .wi-recent-thumb span {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; letter-spacing: 0.1em; color: var(--wi-faint);
}
.wi-recent-label {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 900px) { .wi-recent-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .wi-recent-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==================================================== View more / less */
.wi-more-wrap { display: flex; justify-content: center; margin-top: 18px; }
/* Small, quiet text link. Override the theme's global blue !important button. */
.wi-page .wi-more,
.wi-page .wi-more:link,
.wi-page .wi-more:visited {
	font-family: var(--wi-sans) !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: var(--wi-faint) !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 4px 6px !important;
	margin: 0 !important;
	cursor: pointer;
	transition: color 0.15s;
}
.wi-page .wi-more:hover,
.wi-page .wi-more:focus {
	background: transparent !important;
	color: var(--wi-ink) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ==================================================== Global map + In the News */
.wi-globe-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)); /* map 6 cols | news 6 cols */
	gap: 40px;
	align-items: start;
	padding-block: 28px 8px;
	border-top: 1px solid var(--wi-line);
	margin-inline: -15px; /* flush + aligned with the 6-col grids */
}
.wi-globe-col { min-width: 0; }
.wi-panel-title { margin: 0 0 18px; }

/* World heatmap (CARTO dark tiles — the house map style) */
.wi-map {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9; /* landscape viewport */
	border: 1px solid var(--wi-line);
	border-radius: 6px;
	overflow: hidden;
	background: #0b0d10;
}
/* Square full-world layer, vertically centred so the poles crop away and a
   landscape band of the map (and its dots) shows through. */
.wi-map-inner {
	position: absolute;
	left: 0;
	top: 50%;
	/* Shift the square down a touch so more of the top shows and the empty
	   Antarctic band drops further off the bottom. */
	transform: translateY(-43%);
	width: 100%;
	aspect-ratio: 1 / 1;
}
.wi-map-tiles { display: grid; grid-template-columns: repeat(4, 1fr); line-height: 0; }
.wi-map-tiles img { width: 100%; height: auto; display: block; }
.wi-map-dot {
	position: absolute;
	width: var(--dot, 12px);
	height: var(--dot, 12px);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}
.wi-map-dot--up {
	background: var(--wi-up);
	box-shadow: 0 0 0 1px rgba(11, 13, 16, 0.9), 0 0 12px 2px rgba(152, 242, 168, 0.65);
}
.wi-map-dot--down {
	background: var(--wi-down);
	box-shadow: 0 0 0 1px rgba(11, 13, 16, 0.9), 0 0 12px 2px rgba(255, 69, 113, 0.65);
}
.wi-map-dot--flat { background: var(--wi-muted); }
.wi-map-dot::after { /* soft pulse ring */
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid currentColor;
	opacity: 0.25;
}
.wi-map-dot--up::after { color: var(--wi-up); }
.wi-map-dot--down::after { color: var(--wi-down); }
.wi-map-dot-label {
	position: absolute;
	font-family: var(--wi-mono);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
	white-space: nowrap;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.9);
	pointer-events: none;
}
/* Thin leader line from the dot edge to its (staggered) label */
.wi-map-lead {
	position: absolute;
	background: rgba(255, 255, 255, 0.4);
	pointer-events: none;
}
/* Label + leader placement by direction (r=right, l=left, u=up, d=down) */
.wi-map-dot--lbl-r .wi-map-dot-label { left: calc(100% + var(--lead, 6px)); top: 50%; transform: translateY(-50%); text-align: left; }
.wi-map-dot--lbl-l .wi-map-dot-label { right: calc(100% + var(--lead, 6px)); top: 50%; transform: translateY(-50%); text-align: right; }
.wi-map-dot--lbl-u .wi-map-dot-label { bottom: calc(100% + var(--lead, 6px)); left: 50%; transform: translateX(-50%); text-align: center; }
.wi-map-dot--lbl-d .wi-map-dot-label { top: calc(100% + var(--lead, 6px)); left: 50%; transform: translateX(-50%); text-align: center; }
.wi-map-dot--lbl-r .wi-map-lead { left: 100%; top: 50%; width: var(--lead, 6px); height: 1px; transform: translateY(-50%); }
.wi-map-dot--lbl-l .wi-map-lead { right: 100%; top: 50%; width: var(--lead, 6px); height: 1px; transform: translateY(-50%); }
.wi-map-dot--lbl-u .wi-map-lead { bottom: 100%; left: 50%; height: var(--lead, 6px); width: 1px; transform: translateX(-50%); }
.wi-map-dot--lbl-d .wi-map-lead { top: 100%; left: 50%; height: var(--lead, 6px); width: 1px; transform: translateX(-50%); }
.wi-map-legend {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	font-size: 11px;
	color: var(--wi-faint);
	flex-wrap: wrap;
}
.wi-map-key { display: inline-flex; align-items: center; gap: 6px; }
.wi-map-key::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.wi-map-key--up::before { background: var(--wi-up); }
.wi-map-key--down::before { background: var(--wi-down); }
.wi-map-note { margin-left: auto; font-style: italic; }

/* Highlighted word inside a headline (colour = up/down) */
.wi-news-hl { font-weight: 700; }

/* External-link glyph at the end of a headline */
.wi-news-ext {
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-left: 5px;
	vertical-align: baseline;
	position: relative;
	top: 1px;
	color: var(--wi-faint);
}
.wi-news-item:hover .wi-news-ext { color: var(--wi-ink); }

.wi-news-list { display: flex; flex-direction: column; min-width: 0; }
.wi-news-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wi-line);
	color: var(--wi-ink);
	text-decoration: none;
	transition: color 0.15s;
}
.wi-news-item:first-child { padding-top: 0; }
.wi-news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.wi-news-item:hover { color: var(--wi-ink); }
.wi-news-item:hover .wi-news-title { text-decoration: underline; text-underline-offset: 2px; }
.wi-news-title { font-size: 15px; line-height: 1.35; font-weight: 600; }
.wi-news-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: var(--wi-faint);
	min-width: 0;
}
.wi-news-tag {
	font-family: var(--wi-mono);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wi-muted);
	flex: 0 0 auto;
}
.wi-news-chg { font-family: var(--wi-mono); font-weight: 700; flex: 0 0 auto; }
.wi-news-src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wi-news-date { margin-left: auto; white-space: nowrap; flex: 0 0 auto; }

/* ==================================================== Index table */
.wi-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wi-search-wrap { position: relative; display: flex; align-items: center; }
.wi-search-wrap svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--wi-faint); pointer-events: none; }
.wi-search {
	font: inherit; font-size: 14px; color: var(--wi-ink);
	background: var(--wi-surface); border: 1px solid transparent; border-radius: 4px;
	padding: 10px 16px 10px 40px; min-width: 220px;
	transition: background 0.16s, border-color 0.16s;
}
.wi-search::placeholder { color: var(--wi-faint); }
.wi-search:focus { outline: none; background: var(--wi-surface-2); border-color: rgba(251, 251, 244, 0.28); }
.wi-select {
	font: inherit; font-size: 13px; font-weight: 600; color: var(--wi-ink);
	background: var(--wi-surface); border: 1px solid transparent; border-radius: 4px;
	padding: 10px 38px 10px 16px; cursor: pointer; appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fbfbf4' stroke-opacity='0.6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.wi-select:hover { background-color: var(--wi-surface-2); }
.wi-select:focus { outline: none; border-color: rgba(251, 251, 244, 0.28); }

.wi-table-wrap { overflow-x: auto; margin-inline: -15px; } /* flush list to container edge */
.wi-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
/* Zero the outer-column padding so the list sits flush with the container */
.wi-table thead th:first-child,
.wi-table tbody td:first-child { padding-left: 0; }
.wi-table thead th:last-child,
.wi-table tbody td:last-child { padding-right: 0; }
.wi-table thead th {
	text-align: right;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wi-faint);
	padding: 0 18px 12px;
	border-bottom: 1px solid var(--wi-line);
	white-space: nowrap;
}
.wi-table thead th.wi-col-word { text-align: left; }
.wi-table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--wi-line); text-align: right; vertical-align: middle; }
.wi-row { transition: background 0.12s; }
.wi-row:hover { background: var(--wi-surface); }
.wi-col-word { text-align: left; }
.wi-col-word a { display: flex; align-items: baseline; gap: 12px; color: var(--wi-ink); text-decoration: none; }
.wi-col-word a:hover { color: var(--wi-ink); text-decoration: none; }
.wi-col-word a:hover .wi-row-word { text-decoration: underline; }
.wi-row-ticker { font-weight: 800; letter-spacing: 0.03em; min-width: 62px; }
.wi-row-word { color: var(--wi-muted); font-size: 13px; }
.wi-col-trend { width: 140px; }
.wi-col-trend .wi-spark { width: 120px; margin-left: auto; }
.wi-col-src, .wi-col-date { color: var(--wi-faint); font-size: 12px; white-space: nowrap; }

.wi-empty {
	font-family: var(--wi-serif);
	font-style: italic;
	color: var(--wi-muted);
	padding: 34px 0;
	text-align: center;
}

/* ==================================================== Watchlists (coming soon) */
.wi-watchlist { padding-block: 60px 8px; border-top: 1px solid var(--wi-line); }
.wi-wl-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.wi-wl-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wi-ink);
	border: 1px solid var(--wi-line);
	border-radius: 100px;
	padding: 5px 12px;
	margin-bottom: 18px;
}
.wi-wl-title {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.15;
	max-width: 500px;
	margin: 0 auto 10px;
}
.wi-wl-sub { font-size: 14px; color: var(--wi-muted); margin: 0; }
.wi-wl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.wi-wl-card {
	background: var(--wi-surface);
	border: 1px solid var(--wi-line);
	border-radius: 6px;
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
}
.wi-wl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wi-wl-card-title { font-size: 17px; font-weight: 700; margin: 0; }
.wi-wl-icon { font-size: 22px; line-height: 1; }
.wi-wl-list { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.wi-wl-item {
	font-size: 14px;
	padding: 7px 0;
	border-bottom: 1px solid var(--wi-line);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wi-wl-item:last-child { border-bottom: 0; }
.wi-wl-tkr { font-family: var(--wi-mono); font-weight: 700; letter-spacing: 0.02em; color: var(--wi-ink); }
.wi-wl-word { color: var(--wi-muted); }
.wi-wl-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wi-faint);
	border: 1px solid var(--wi-line);
	border-radius: 6px;
	padding: 12px 16px;
	cursor: not-allowed;
	user-select: none;
}

/* ==================================================== Responsive */
@media (max-width: 900px) {
	.wi-featured { grid-template-columns: 1fr; gap: 24px; }
	.wi-featured-cover, .wi-featured-body, .wi-featured-rail { grid-column: auto; }
	.wi-featured-cover { max-width: 360px; }
	.wi-featured-rail { border-top: 1px solid var(--wi-line); padding-top: 4px; }
	.wi-globe-grid { grid-template-columns: 1fr; gap: 32px; }
	.wi-wl-grid { grid-template-columns: 1fr; }
	.wi-breadth { gap: 22px; }
	.wi-col-src { display: none; }
}
@media (max-width: 680px) {
	.wi-masthead { align-items: flex-start; }
	.wi-masthead-text { margin-left: 0; }
	.wi-card-grid, .wi-recent-grid, .wi-section-head, .wi-table-wrap, .wi-globe-grid { margin-inline: 0; }
	.wi-featured { padding-inline: 15px; }
	.wi-controls { width: 100%; }
	.wi-search-wrap, .wi-search { flex: 1 1 100%; width: 100%; }
	.wi-col-trend, .wi-col-date { display: none; }
	.wi-breadth { width: 100%; justify-content: space-between; gap: 12px; }
	.wi-stat-num { font-size: 20px; }
}
