/*
 * EquityTimer FII/DII Data
 * Layout follows the Sensibull summary grid; colours are the EquityTimer palette.
 * Pure CSS - no JavaScript - so Breeze's JS delay options cannot break it.
 */

.et-fd {
	--et-ink: #0f1b2d;
	--et-sub: #52617a;
	--et-border: #e6ebf2;
	--et-accent: #1f6fd6;
	--et-accent-dark: #1a5fb8;
	--et-panel: #f5f8fc;
	--et-green: #159a5a;
	--et-red: #d23b2e;
	--et-green-soft: #eaf7f0;
	--et-red-soft: #fdeeec;

	color: var(--et-ink);
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 2rem;
}

.et-fd *,
.et-fd *::before,
.et-fd *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- header */

.et-fd-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0 0 0.85rem;
	border-bottom: 2px solid var(--et-border);
	margin-bottom: 0;
}

.et-fd-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--et-ink);
	margin: 0;
	padding: 0;
	border: 0;
}

.et-fd-nav {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.et-fd-navbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--et-border);
	border-radius: 6px;
	background: #fff;
	color: var(--et-accent);
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
}

.et-fd-navbtn:hover,
.et-fd-navbtn:focus {
	background: var(--et-accent);
	border-color: var(--et-accent);
	color: #fff;
}

.et-fd-navbtn.is-disabled {
	color: #b9c3d1;
	background: var(--et-panel);
	cursor: default;
}

.et-fd-date {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 120px;
	padding: 0.2rem 0.7rem;
	border: 1px solid var(--et-border);
	border-radius: 6px;
	background: #fff;
	font-weight: 600;
	font-size: 0.92rem;
}

.et-fd-date small {
	font-weight: 400;
	font-size: 0.72rem;
	color: var(--et-sub);
}

/* ----------------------------------------------------------------- table */

.et-fd-tablewrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.et-fd-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	background: #fff;
	font-size: 0.9rem;
}

.et-fd-caption {
	caption-side: top;
	text-align: left;
	padding: 0.75rem 0;
	font-size: 0.82rem;
	color: var(--et-sub);
}

.et-fd-table thead th {
	background: var(--et-panel);
	color: var(--et-sub);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--et-border);
	white-space: nowrap;
}

.et-fd-th-num {
	text-align: right;
}

/*
 * ".et-fd-table thead th" is (0,1,2) and was overriding ".et-fd-th-num" at
 * (0,1,0), so numeric headers stayed left-aligned while their values were
 * right-aligned. Matching the specificity fixes it.
 */
.et-fd-table thead th.et-fd-th-num {
	text-align: right;
}

.et-fd-th-position {
	width: 32%;
	min-width: 290px;
}

.et-fd-bar-cell {
	padding-left: 1.1rem;
}

.et-fd-table td,
.et-fd-table tbody th {
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--et-border);
	vertical-align: middle;
}

.et-fd-row-first td,
.et-fd-row-first th {
	border-top: 2px solid #421d24;
}

.et-fd-participant {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--et-ink);
	text-align: left;
	white-space: nowrap;
	background: #fff;
	border-right: 1px solid var(--et-border);
}

.et-fd-segment {
	color: var(--et-ink);
	white-space: nowrap;
}

.et-fd-row-child .et-fd-segment {
	padding-left: 1.6rem;
	color: var(--et-sub);
	font-size: 0.85rem;
}

.et-fd-row-child td {
	background: #fcfdfe;
}

.et-fd-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-weight: 600;
}

.et-fd-pos {
	color: var(--et-green);
}

.et-fd-neg {
	color: var(--et-red);
}

.et-fd-muted {
	color: var(--et-sub);
	font-weight: 400;
}

/* ------------------------------------------------------------------- bar */

.et-fd-bar {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.et-fd-bar-track {
	position: relative;
	flex: 0 0 90px;
	height: 16px;
	border-radius: 3px;
	background: var(--et-panel);
	overflow: hidden;
}

.et-fd-bar-fill {
	display: block;
	height: 100%;
	border-radius: 3px;
}

.et-fd-bar-up .et-fd-bar-fill {
	background: var(--et-green);
}

.et-fd-bar-down .et-fd-bar-fill {
	background: var(--et-red);
}

.et-fd-bar-neutral .et-fd-bar-fill {
	background: #8b98ab;
}

.et-fd-bar-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	flex: 1 1 auto;
	min-width: 0;
}

.et-fd-state {
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.et-fd-bar-up .et-fd-state {
	color: var(--et-green);
}

.et-fd-bar-down .et-fd-state {
	color: var(--et-red);
}

.et-fd-bar-neutral .et-fd-state {
	color: #56637a;
}

.et-fd-move {
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--et-sub);
	white-space: nowrap;
}

.et-fd-move-flat {
	font-style: italic;
	opacity: 0.8;
}

/* ---------------------------------------------------------------- legend */

.et-fd-legend {
	margin-top: 1.25rem;
	padding: 1rem 1.1rem;
	background: var(--et-panel);
	border: 1px solid var(--et-border);
	border-radius: 8px;
}

.et-fd-legend-title {
	margin: 0 0 0.6rem;
	padding: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--et-ink);
	border: 0;
}

.et-fd-legend-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 0.4rem 1.25rem;
	margin: 0;
	padding: 0;
}

.et-fd-legend-item {
	display: flex;
	gap: 0.4rem;
	align-items: baseline;
}

.et-fd-legend-list dt {
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--et-ink);
	white-space: nowrap;
	margin: 0;
}

.et-fd-legend-list dd {
	margin: 0;
	font-size: 0.82rem;
	color: var(--et-sub);
}

.et-fd-legend-note {
	margin: 0.6rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--et-sub);
}

.et-fd-legend-note strong {
	color: var(--et-ink);
}

/* ------------------------------------------------------------- footnotes */

.et-fd-foot {
	margin-top: 1rem;
}

.et-fd-source,
.et-fd-disclaimer {
	margin: 0 0 0.6rem;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--et-sub);
}

.et-fd-disclaimer {
	padding: 0.7rem 0.85rem;
	background: #fffdf5;
	border-left: 3px solid #e8920c;
	border-radius: 0 4px 4px 0;
}

.et-fd-notice {
	padding: 1rem;
	background: var(--et-panel);
	border: 1px solid var(--et-border);
	border-radius: 8px;
	color: var(--et-sub);
	margin: 0;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 600px) {

	.et-fd-table {
		font-size: 0.82rem;
	}

	.et-fd-bar-track {
		flex-basis: 54px;
	}

	.et-fd-move,
	.et-fd-state {
		white-space: normal;
	}


	.et-fd-title {
		font-size: 1.02rem;
	}
}

/* ------------------------------------------------- futures & options view */

.et-fd-tabs {
	margin-top: 1rem;
}

/*
 * Pure-CSS tabs. The radio inputs are visually hidden but remain focusable and
 * precede the panels, so the :checked ~ sibling selector can reveal the right
 * panel with no JavaScript.
 */
.et-fd-tabinput {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.et-fd-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--et-border);
	padding-bottom: 0.6rem;
}

.et-fd-tab {
	display: inline-block;
	padding: 0.4rem 1.05rem;
	border: 1px solid var(--et-border);
	border-radius: 6px;
	background: #fff;
	color: var(--et-accent);
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.et-fd-tab:hover {
	border-color: var(--et-accent);
	background: var(--et-panel);
}

.et-fd-panel {
	display: none;
}

/*
 * One rule per participant. The tab order in markup is FII, Pro, Client, DII.
 */
.et-fd-tabinput:nth-of-type(1):checked ~ .et-fd-tablist .et-fd-tab:nth-of-type(1),
.et-fd-tabinput:nth-of-type(2):checked ~ .et-fd-tablist .et-fd-tab:nth-of-type(2),
.et-fd-tabinput:nth-of-type(3):checked ~ .et-fd-tablist .et-fd-tab:nth-of-type(3),
.et-fd-tabinput:nth-of-type(4):checked ~ .et-fd-tablist .et-fd-tab:nth-of-type(4) {
	background: var(--et-ink);
	border-color: var(--et-ink);
	color: #fff;
}

.et-fd-tabinput:nth-of-type(1):checked ~ .et-fd-panels .et-fd-panel:nth-of-type(1),
.et-fd-tabinput:nth-of-type(2):checked ~ .et-fd-panels .et-fd-panel:nth-of-type(2),
.et-fd-tabinput:nth-of-type(3):checked ~ .et-fd-panels .et-fd-panel:nth-of-type(3),
.et-fd-tabinput:nth-of-type(4):checked ~ .et-fd-panels .et-fd-panel:nth-of-type(4) {
	display: block;
}

/* Keyboard focus must remain visible even though the input is hidden. */
.et-fd-tabinput:focus-visible ~ .et-fd-tablist .et-fd-tab {
	outline: 2px solid var(--et-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- charts */

.et-fd-chartbox {
	margin: 0 0 1.75rem;
	padding: 0.9rem 1rem 0.6rem;
	border: 1px solid var(--et-border);
	border-radius: 8px;
	background: #fff;
}

.et-fd-charthead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.et-fd-charttitle {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-chartintro {
	margin: 0.3rem 0 0.5rem;
	font-size: 0.8rem;
	color: var(--et-sub);
}

.et-fd-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.et-fd-chart-legend li {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0;
	font-size: 0.76rem;
	color: var(--et-sub);
}

.et-fd-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
}

.et-fd-chart {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.et-fd-grid {
	stroke: #eef2f7;
	stroke-width: 1;
}

.et-fd-axis {
	stroke: #b8c4d4;
	stroke-width: 1;
}

.et-fd-tick {
	stroke: #c3cddb;
	stroke-width: 1;
}

.et-fd-ylabel,
.et-fd-xlabel {
	font-size: 11px;
	fill: #1a1a2e;
	font-family: inherit;
	letter-spacing: 0.01em;
}

.et-fd-chart-empty {
	margin: 0.5rem 0;
	font-size: 0.82rem;
	color: var(--et-sub);
	font-style: italic;
}

@media (max-width: 600px) {

	.et-fd-tab {
		padding: 0.35rem 0.8rem;
		font-size: 0.8rem;
	}

	.et-fd-chartbox {
		padding: 0.75rem 0.6rem 0.5rem;
	}

}

/* ------------------------------------------------ top-level view tabs */

/*
 * A second radio group, independent of the participant tabs nested inside the
 * charts panel. Both use the same technique but different class prefixes so
 * their :checked ~ selectors cannot interfere with one another.
 */
.et-fd-vtabinput {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.et-fd-vtablist {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1.1rem;
	border-bottom: 2px solid var(--et-border);
}

.et-fd-vtab {
	display: inline-block;
	padding: 0.55rem 1.2rem;
	border: 1px solid var(--et-border);
	border-bottom: 0;
	border-radius: 7px 7px 0 0;
	background: var(--et-panel);
	color: var(--et-sub);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	margin-bottom: -2px;
}

.et-fd-vtab:hover {
	color: var(--et-accent);
}

.et-fd-vpanel {
	display: none;
}

.et-fd-vtabinput:nth-of-type(1):checked ~ .et-fd-vtablist .et-fd-vtab:nth-of-type(1),
.et-fd-vtabinput:nth-of-type(2):checked ~ .et-fd-vtablist .et-fd-vtab:nth-of-type(2) {
	background: #fff;
	color: var(--et-ink);
	border-color: var(--et-border);
	border-bottom: 2px solid #fff;
}

.et-fd-vtabinput:nth-of-type(1):checked ~ .et-fd-vpanels .et-fd-vpanel:nth-of-type(1),
.et-fd-vtabinput:nth-of-type(2):checked ~ .et-fd-vpanels .et-fd-vpanel:nth-of-type(2) {
	display: block;
}

.et-fd-vtabinput:focus-visible ~ .et-fd-vtablist .et-fd-vtab {
	outline: 2px solid var(--et-accent);
	outline-offset: -2px;
}

.et-fd-inner {
	display: block;
}

/* ------------------------------------------------------ chart tooltips */

.et-fd-hit {
	fill: transparent;
}

.et-fd-col:hover .et-fd-hit {
	fill: rgba(31, 111, 214, 0.06);
}

.et-fd-tip {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.08s linear;
}

.et-fd-col:hover .et-fd-tip {
	opacity: 1;
}

.et-fd-tipbox {
	fill: #ffffff;
	stroke: #cfd8e6;
	stroke-width: 1;
}

.et-fd-tipdate {
	font-size: 11px;
	font-weight: 700;
	fill: var(--et-ink);
	font-family: inherit;
}

.et-fd-tiplabel {
	font-size: 11px;
	fill: var(--et-sub);
	font-family: inherit;
}

.et-fd-tipvalue {
	font-size: 11px;
	font-weight: 700;
	fill: var(--et-ink);
	font-family: inherit;
}

/* ------------------------------------------- index line & split toggle */

.et-fd-indexline {
	fill: none;
	stroke: #b06ad6;
	stroke-width: 1.6;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.et-fd-swatch-line {
	width: 14px;
	height: 3px;
	border-radius: 2px;
	background: #b06ad6;
}

.et-fd-chartmeta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem;
}

/*
 * The checkbox is hidden but sits before the SVG, so :checked ~ can swap which
 * tooltip variant is displayed. No JavaScript involved.
 */
.et-fd-splitinput {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.et-fd-splitlabel {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--et-sub);
	cursor: pointer;
	user-select: none;
}

.et-fd-switch {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 16px;
	border-radius: 999px;
	background: #c7d0dd;
	transition: background 0.12s linear;
}

.et-fd-switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.12s ease;
}

.et-fd-splitinput:checked ~ .et-fd-charthead .et-fd-switch {
	background: var(--et-accent);
}

.et-fd-splitinput:checked ~ .et-fd-charthead .et-fd-switch::after {
	transform: translateX(14px);
}

.et-fd-splitinput:checked ~ .et-fd-charthead .et-fd-splitlabel {
	color: var(--et-accent);
}

.et-fd-splitinput:focus-visible ~ .et-fd-charthead .et-fd-switch {
	outline: 2px solid var(--et-accent);
	outline-offset: 2px;
}

/* Tooltip variant switching. */
.et-fd-tip-detail {
	display: none;
}

.et-fd-splitinput:checked ~ .et-fd-chart .et-fd-tip-basic {
	display: none;
}

.et-fd-splitinput:checked ~ .et-fd-chart .et-fd-tip-detail {
	display: block;
}

.et-fd-tipleg {
	font-size: 10px;
	fill: #7b879b;
	font-family: inherit;
}

/* --------------------------------------------- four top-level view tabs */

.et-fd-vtabinput:nth-of-type(3):checked ~ .et-fd-vtablist .et-fd-vtab:nth-of-type(3),
.et-fd-vtabinput:nth-of-type(4):checked ~ .et-fd-vtablist .et-fd-vtab:nth-of-type(4) {
	background: #fff;
	color: var(--et-ink);
	border-color: var(--et-border);
	border-bottom: 2px solid #fff;
}

.et-fd-vtabinput:nth-of-type(3):checked ~ .et-fd-vpanels .et-fd-vpanel:nth-of-type(3),
.et-fd-vtabinput:nth-of-type(4):checked ~ .et-fd-vpanels .et-fd-vpanel:nth-of-type(4) {
	display: block;
}

/* ------------------------------------------------- history inner tabs */

.et-fd-htabinput {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.et-fd-htablist {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--et-border);
	padding-bottom: 0.6rem;
}

.et-fd-htab {
	display: inline-block;
	padding: 0.4rem 1.05rem;
	border: 1px solid var(--et-border);
	border-radius: 6px;
	background: #fff;
	color: var(--et-accent);
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.et-fd-htab:hover {
	border-color: var(--et-accent);
	background: var(--et-panel);
}

.et-fd-hpanel {
	display: none;
}

.et-fd-htabinput:nth-of-type(1):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(1),
.et-fd-htabinput:nth-of-type(2):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(2),
.et-fd-htabinput:nth-of-type(3):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(3),
.et-fd-htabinput:nth-of-type(4):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(4),
.et-fd-htabinput:nth-of-type(5):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(5) {
	background: var(--et-ink);
	border-color: var(--et-ink);
	color: #fff;
}

.et-fd-htabinput:nth-of-type(1):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(1),
.et-fd-htabinput:nth-of-type(2):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(2),
.et-fd-htabinput:nth-of-type(3):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(3),
.et-fd-htabinput:nth-of-type(4):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(4),
.et-fd-htabinput:nth-of-type(5):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(5) {
	display: block;
}

.et-fd-htabinput:focus-visible ~ .et-fd-htablist .et-fd-htab {
	outline: 2px solid var(--et-accent);
	outline-offset: 2px;
}

/* --------------------------------------------------- history tables */

.et-fd-subtitle {
	margin: 1.5rem 0 0.6rem;
	padding: 0;
	border: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-table-history {
	min-width: 720px;
	font-size: 0.84rem;
}

.et-fd-table-history thead th {
	text-align: right;
}

.et-fd-table-history thead th:first-child {
	text-align: left;
}

.et-fd-th-group {
	text-align: center !important;
	border-left: 1px solid var(--et-border);
	background: #eef3f9;
}

.et-fd-cell-date {
	white-space: nowrap;
	font-weight: 600;
}

.et-fd-table-history td {
	padding: 0.45rem 0.7rem;
}

.et-fd-table-history .et-fd-num small {
	display: block;
	font-size: 0.7rem;
	font-weight: 500;
}

.et-fd-table-history tbody tr:hover td {
	background: #f7fafd;
}

/* ------------------------------------------------ four top-level views */

.et-fd-vtabinput:nth-of-type(3):checked ~ .et-fd-vtablist .et-fd-vtab:nth-of-type(3),
.et-fd-vtabinput:nth-of-type(4):checked ~ .et-fd-vtablist .et-fd-vtab:nth-of-type(4) {
	background: #fff;
	color: var(--et-ink);
	border-color: var(--et-border);
	border-bottom: 2px solid #fff;
}

.et-fd-vtabinput:nth-of-type(3):checked ~ .et-fd-vpanels .et-fd-vpanel:nth-of-type(3),
.et-fd-vtabinput:nth-of-type(4):checked ~ .et-fd-vpanels .et-fd-vpanel:nth-of-type(4) {
	display: block;
}

/* -------------------------------------------------- history sub-tabs */

/*
 * A third independent radio group. Prefixed "h" so it cannot interact with the
 * view tabs (v) or the participant tabs on the charts panel.
 */
.et-fd-htabinput {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.et-fd-htablist {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--et-border);
	padding-bottom: 0.6rem;
}

.et-fd-htab {
	display: inline-block;
	padding: 0.4rem 0.95rem;
	border: 1px solid var(--et-border);
	border-radius: 6px;
	background: #fff;
	color: var(--et-accent);
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.et-fd-htab:hover {
	border-color: var(--et-accent);
	background: var(--et-panel);
}

.et-fd-hpanel {
	display: none;
}

.et-fd-htabinput:nth-of-type(1):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(1),
.et-fd-htabinput:nth-of-type(2):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(2),
.et-fd-htabinput:nth-of-type(3):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(3),
.et-fd-htabinput:nth-of-type(4):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(4),
.et-fd-htabinput:nth-of-type(5):checked ~ .et-fd-htablist .et-fd-htab:nth-of-type(5) {
	background: var(--et-ink);
	border-color: var(--et-ink);
	color: #fff;
}

.et-fd-htabinput:nth-of-type(1):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(1),
.et-fd-htabinput:nth-of-type(2):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(2),
.et-fd-htabinput:nth-of-type(3):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(3),
.et-fd-htabinput:nth-of-type(4):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(4),
.et-fd-htabinput:nth-of-type(5):checked ~ .et-fd-hpanels .et-fd-hpanel:nth-of-type(5) {
	display: block;
}

.et-fd-htabinput:focus-visible ~ .et-fd-htablist .et-fd-htab {
	outline: 2px solid var(--et-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------ compact tables */

.et-fd-subhead {
	margin: 1.4rem 0 0.3rem;
	padding: 0;
	border: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-table-compact {
	min-width: 560px;
	font-size: 0.85rem;
}

.et-fd-table-compact td,
.et-fd-table-compact th {
	padding: 0.45rem 0.7rem;
}

.et-fd-table-compact .et-fd-num small {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
}

/* ------------------------------------------------------ conclusion block */

.et-fd-conclusion {
	margin-top: 1.5rem;
	padding: 1.1rem 1.2rem 1rem;
	border: 1px solid var(--et-border);
	border-top: 3px solid var(--et-accent);
	border-radius: 8px;
	background: #fff;
}

.et-fd-concl-title {
	margin: 0 0 0.9rem;
	padding: 0;
	border: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-concl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.1rem;
}

.et-fd-concl-card {
	padding: 0.9rem 1rem;
	background: var(--et-panel);
	border: 1px solid var(--et-border);
	border-radius: 7px;
}

.et-fd-concl-head {
	margin: 0 0 0.2rem;
	padding: 0;
	border: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-concl-sub {
	margin: 0 0 0.7rem;
	font-size: 0.78rem;
	color: var(--et-sub);
	line-height: 1.45;
}

.et-fd-concl-list {
	margin: 0;
	padding: 0 0 0 1.05rem;
	list-style: disc;
}

.et-fd-concl-list li {
	margin: 0 0 0.45rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--et-ink);
}

.et-fd-concl-list li strong {
	font-weight: 700;
}

.et-fd-concl-item {
	margin: 0;
	font-size: 0.84rem;
	color: var(--et-sub);
}

.et-fd-concl-note {
	margin: 1rem 0 0;
	padding: 0.7rem 0.85rem;
	background: #fffdf5;
	border-left: 3px solid #e8920c;
	border-radius: 0 4px 4px 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--et-sub);
}

/* --------------------------------------------------- fifth view tab */

.et-fd-vtabinput:nth-of-type(5):checked ~ .et-fd-vtablist .et-fd-vtab:nth-of-type(5) {
	background: #fff;
	color: var(--et-ink);
	border-color: var(--et-border);
	border-bottom: 2px solid #fff;
}

.et-fd-vtabinput:nth-of-type(5):checked ~ .et-fd-vpanels .et-fd-vpanel:nth-of-type(5) {
	display: block;
}

/* ------------------------------------------------ AI summary read-out */

.et-fd-ai-card {
	margin: 0 0 1rem;
	padding: 0.95rem 1.1rem 0.75rem;
	border: 1px solid var(--et-border);
	border-left: 3px solid var(--et-accent);
	border-radius: 7px;
	background: #fff;
}

.et-fd-ai-name {
	margin: 0 0 0.6rem;
	padding: 0;
	border: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-ai-row {
	padding: 0.55rem 0;
	border-top: 1px solid var(--et-border);
}

.et-fd-ai-row:first-of-type {
	border-top: 0;
}

.et-fd-ai-seg {
	display: inline-block;
	margin-bottom: 0.25rem;
	padding: 0.12rem 0.5rem;
	border-radius: 4px;
	background: var(--et-panel);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--et-sub);
}

.et-fd-ai-text {
	margin: 0.2rem 0 0.25rem;
	font-size: 0.87rem;
	line-height: 1.55;
	color: var(--et-ink);
}

.et-fd-ai-stand {
	margin: 0;
	font-size: 0.81rem;
	line-height: 1.5;
	color: var(--et-sub);
}

.et-fd-ai-stand strong {
	font-weight: 700;
}

.et-fd-ai-stand em {
	font-style: italic;
	color: #a8641c;
}

/* -------------------------------------------------- position analysis */

.et-fd-flow {
	margin: 0 0 1.4rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--et-border);
	border-left: 3px solid var(--et-accent);
	border-radius: 7px;
	background: #fff;
}

.et-fd-flow-title {
	margin: 0 0 0.7rem;
	padding: 0;
	border: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-flow-nums {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.7rem;
}

.et-fd-flow-item {
	flex: 1 1 130px;
	padding: 0.5rem 0.7rem;
	background: var(--et-panel);
	border-radius: 6px;
	text-align: center;
}

.et-fd-flow-total {
	background: #eef4fd;
	border: 1px solid #d3e2f7;
}

.et-fd-flow-label {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--et-sub);
}

.et-fd-flow-val {
	display: block;
	margin-top: 0.1rem;
	font-size: 1.05rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.et-fd-flow-text {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--et-ink);
}

.et-fd-flow-hint {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.76rem;
	color: var(--et-sub);
}

.et-fd-pos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0.9rem;
	margin-bottom: 1.3rem;
}

.et-fd-pos-card {
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--et-border);
	border-radius: 7px;
	background: #fff;
}

.et-fd-pos-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.55rem;
}

.et-fd-pos-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-pos-ratio {
	font-size: 1.45rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.et-fd-gauge {
	position: relative;
	height: 15px;
	border-radius: 4px;
	background: var(--et-red);
	overflow: hidden;
}

.et-fd-gauge-long {
	display: block;
	height: 100%;
	background: var(--et-green);
}

.et-fd-gauge-legend {
	display: flex;
	justify-content: space-between;
	margin-top: 0.28rem;
	font-size: 0.74rem;
	font-weight: 600;
}

.et-fd-pos-gloss {
	margin: 0.5rem 0 0.3rem;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--et-ink);
}

.et-fd-pos-meta {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.45;
	color: var(--et-sub);
}

.et-fd-diverge {
	padding: 0.9rem 1.05rem;
	border: 1px solid var(--et-border);
	border-radius: 7px;
	background: var(--et-panel);
}

.et-fd-diverge-title {
	margin: 0 0 0.35rem;
	padding: 0;
	border: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--et-ink);
}

.et-fd-diverge-text {
	margin: 0 0 0.4rem;
	font-size: 0.87rem;
	line-height: 1.5;
	color: var(--et-ink);
}

.et-fd-diverge-note {
	margin: 0;
	font-size: 0.79rem;
	line-height: 1.5;
	color: var(--et-sub);
}

/* ------------------------------------------------------- ratio charts */

.et-fd-ratioline {
	fill: none;
	stroke-width: 1.8;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.et-fd-refline {
	stroke: #98a5b8;
	stroke-width: 1;
	stroke-dasharray: 4 3;
}

.et-fd-reflabel {
	font-size: 9.5px;
	fill: #8b98ab;
	font-family: inherit;
}

.et-fd-chart-caveat {
	margin: 0.5rem 0 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--et-border);
	font-size: 0.76rem;
	line-height: 1.5;
	color: var(--et-sub);
}

.et-fd-pos-opt {
	margin-top: 0.55rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--et-border);
}

.et-fd-pos-optlabel {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--et-sub);
}

.et-fd-pos-optval {
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--et-ink);
}

.et-fd-pos-optval {
	line-height: 1;
}

/* --------------------------------------------- bar-tip connector lines */

/* ------------------------------------------------- options gauge block */

.et-fd-pos-opttop {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.3rem;
}

/* ------------------------------------------------------- index strip */

.et-fd-indexstrip {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.85rem 0 0.2rem;
}

.et-fd-idx {
	flex: 1 1 150px;
	display: flex;
	flex-direction: column;
	padding: 0.5rem 0.75rem;
	background: var(--et-panel);
	border: 1px solid var(--et-border);
	border-radius: 6px;
}

.et-fd-idx-name {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--et-sub);
}

.et-fd-idx-val {
	margin-top: 0.1rem;
	font-size: 1.02rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--et-ink);
	line-height: 1.2;
}

.et-fd-idx-pct {
	font-size: 0.76rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* --------------------------------------------- summary column widths */

/*
 * Without explicit widths the browser hands the leftover space to whichever
 * column has the longest content, which left a large gap between Segment and
 * Net. Fixing the layout algorithm and stating the proportions keeps the
 * numeric columns tight against their headers.
 */
.et-fd-table {
	table-layout: fixed;
}

.et-fd-th-participant {
	width: 11%;
}

.et-fd-th-segment {
	width: 17%;
}

.et-fd-table thead th.et-fd-th-num {
	width: 13%;
}

.et-fd-table-history,
.et-fd-table-compact {
	table-layout: auto;
}

/* ------------------------------------------------------------ mobile */

@media (max-width: 782px) {

	/* Top-level tabs scroll horizontally rather than wrapping to two rows. */
	.et-fd-vtablist,
	.et-fd-htablist,
	.et-fd-tablist {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.35rem;
	}

	.et-fd-vtablist::-webkit-scrollbar,
	.et-fd-htablist::-webkit-scrollbar,
	.et-fd-tablist::-webkit-scrollbar {
		display: none;
	}

	.et-fd-vtab,
	.et-fd-htab,
	.et-fd-tab {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	/* Participant switcher as a segmented control, as on the Sensibull app. */
	.et-fd-tablist {
		gap: 0;
		padding: 0.25rem;
		border: 1px solid var(--et-border);
		border-radius: 8px;
		background: var(--et-panel);
	}

	.et-fd-tab {
		flex: 1 1 0;
		text-align: center;
		border: 0;
		background: transparent;
		border-radius: 6px;
		padding: 0.45rem 0.5rem;
	}

	.et-fd-indexstrip {
		gap: 0.4rem;
	}

	.et-fd-idx {
		flex: 1 1 calc(33.333% - 0.4rem);
		padding: 0.4rem 0.5rem;
	}

	.et-fd-idx-val {
		font-size: 0.9rem;
	}

	.et-fd-header {
		align-items: flex-start;
		gap: 0.5rem;
	}

	.et-fd-title {
		font-size: 1rem;
	}

	.et-fd-conclusion,
	.et-fd-chartbox,
	.et-fd-flow,
	.et-fd-ai-card {
		padding-left: 0.7rem;
		padding-right: 0.7rem;
	}

	.et-fd-concl-grid,
	.et-fd-pos-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {

	/*
	 * Tables stay scrollable rather than collapsing to stacked cards: these are
	 * comparison grids, and the whole value is reading one participant's row
	 * against another's. A visible edge fade signals there is more to the right.
	 */
	.et-fd-tablewrap {
		position: relative;
		margin-right: -0.5rem;
		padding-right: 0.5rem;
	}

	.et-fd-table {
		min-width: 620px;
	}

	.et-fd-table td,
	.et-fd-table tbody th {
		padding: 0.45rem 0.5rem;
	}

	.et-fd-participant {
		position: sticky;
		left: 0;
		z-index: 2;
		background: #fff;
	}

	.et-fd-bar-track {
		flex-basis: 44px;
	}

	.et-fd-chart {
		min-height: 210px;
	}

	.et-fd-flow-item {
		flex: 1 1 calc(33.333% - 0.4rem);
		padding: 0.4rem 0.35rem;
	}

	.et-fd-flow-val {
		font-size: 0.88rem;
	}

	.et-fd-vtab {
		padding: 0.45rem 0.85rem;
		font-size: 0.82rem;
	}

	.et-fd-subhead,
	.et-fd-subtitle {
		font-size: 0.92rem;
	}
}

/* ------------------------------------------------ mobile axis legibility */

/*
 * SVG text is sized in user units, so a 1040-unit viewBox squeezed onto a
 * 360px screen renders 11px text at roughly 4px on glass - unreadable. The
 * fix is to enlarge the type in user units as the viewport narrows, and drop
 * proportionally more labels so the survivors still have room. The o2/o3
 * classes on each label make that a stylesheet decision, with no re-render.
 */
@media (max-width: 782px) {

	.et-fd-ylabel,
	.et-fd-xlabel {
		font-size: 17px;
	}

	.et-fd-x-o2 {
		display: none;
	}

	.et-fd-reflabel {
		font-size: 15px;
	}
}

@media (max-width: 600px) {

	.et-fd-ylabel,
	.et-fd-xlabel {
		font-size: 21px;
	}

	/* Every third label only: at this size roughly eight will fit. */
	.et-fd-x-o2 {
		display: inline;
	}

	.et-fd-x-o3 {
		display: none;
	}

	.et-fd-tipdate,
	.et-fd-tiplabel,
	.et-fd-tipvalue {
		font-size: 17px;
	}

	.et-fd-tipleg {
		font-size: 15px;
	}
}
