/* =============================================================
   WITOO — components.css
   Ownership card, shareholders table, citations, author bio,
   related posts, last-verified bar, KPI strip, callout, timeline,
   comparison table, mobile bottom nav.
   ============================================================= */

/* --- Last verified bar --- */
.witoo-last-verified {
	display: inline-flex; align-items: center; gap: 8px;
	background: #ECFDF5; color: #14532D;
	padding: 6px 12px; border-radius: 999px;
	font-family: var(--wt-font-mono); font-size: 12px; font-weight: 600;
	letter-spacing: 0.3px; margin: 0 0 16px;
}
.witoo-last-verified svg { width: 14px; height: 14px; }
.witoo-last-verified strong { color: #14532D; }

/* --- Meta strip (byline) --- */
.witoo-meta-strip {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
	font-size: 14px; color: var(--wt-slate);
	margin: 0 0 24px;
}
.witoo-meta-strip a { color: var(--wt-charcoal); }
.witoo-meta-strip a:hover { color: var(--wt-link); text-decoration: none; }
.witoo-meta-strip > * + *::before {
	content: '·'; margin-right: 14px; color: var(--wt-line); margin-left: -2px;
}
.witoo-meta-reading {
	font-family: var(--wt-font-mono); font-size: 12px;
	color: var(--wt-charcoal);
}

/* --- Ownership card --- */
.witoo-ownership-card {
	background: #fff; border: 1px solid var(--wt-line);
	border-radius: var(--wt-radius-lg); padding: 24px; margin: 24px 0;
}
.witoo-ownership-card .woc-header {
	display: flex; justify-content: space-between; align-items: flex-start;
	gap: 16px; flex-wrap: wrap; margin: 0 0 16px;
}
.witoo-ownership-card .woc-company {
	font-family: var(--wt-font-display); font-size: 22px; font-weight: 700;
	color: var(--wt-navy);
}
.witoo-ownership-card .woc-ticker {
	font-family: var(--wt-font-mono); font-size: 13px; color: #92400E;
	background: #FEF3C7; padding: 4px 10px; border-radius: 4px;
}
.witoo-ownership-card .woc-row {
	display: flex; justify-content: space-between; align-items: center;
	padding: 12px 0; border-top: 1px solid var(--wt-line);
	font-size: 15px; gap: 16px;
}
.witoo-ownership-card .woc-k { color: var(--wt-slate); }
.witoo-ownership-card .woc-v {
	font-family: var(--wt-font-mono); font-weight: 600; color: var(--wt-navy);
	text-align: right;
}

/* --- Shareholders table --- */
.witoo-shareholders {
	width: 100%; border-collapse: collapse; margin: 24px 0;
	background: #fff; border-radius: var(--wt-radius-lg); overflow: hidden;
	font-size: 15px;
}
.witoo-shareholders th {
	background: var(--wt-navy); color: #fff;
	font-family: var(--wt-font-mono); font-size: 12px;
	letter-spacing: 1px; text-transform: uppercase;
	text-align: left; padding: 12px 14px; font-weight: 600;
}
.witoo-shareholders td {
	padding: 12px 14px; border-bottom: 1px solid var(--wt-line);
}
.witoo-shareholders td.witoo-pct {
	font-family: var(--wt-font-mono); font-weight: 600;
	color: var(--wt-navy); text-align: right; white-space: nowrap;
}

/* --- Citations / Sources block --- */
.witoo-citations {
	background: var(--wt-bg-alt);
	border-left: 4px solid var(--wt-gold);
	padding: 20px 24px; margin: 32px 0;
	border-radius: 0 var(--wt-radius) var(--wt-radius) 0;
}
.witoo-citations h3 {
	font-family: var(--wt-font-mono); font-size: 12px;
	text-transform: uppercase; letter-spacing: 1.5px;
	color: var(--wt-charcoal); margin: 0 0 12px;
}
.witoo-citations ol { margin: 0 0 0 20px; padding: 0; }
.witoo-citations li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.witoo-citations a { color: var(--wt-link); }

/* --- Author bio --- */
.witoo-author-bio {
	display: flex; gap: 20px; align-items: flex-start;
	background: #fff; border: 1px solid var(--wt-line);
	border-radius: var(--wt-radius-lg); padding: 24px;
	margin: 40px 0;
}
.witoo-author-bio .witoo-author-avatar {
	width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.witoo-author-bio .wab-name {
	font-family: var(--wt-font-display); font-size: 18px; font-weight: 700;
	color: var(--wt-navy); margin: 0 0 4px;
}
.witoo-author-bio .wab-name a { color: inherit; }
.witoo-author-bio .wab-title { font-size: 13px; color: var(--wt-slate); margin: 0 0 12px; }
.witoo-author-bio .wab-bio { font-size: 15px; line-height: 1.65; color: var(--wt-charcoal); margin: 0 0 12px; }
.witoo-author-bio .wab-bio p { margin: 0 0 8px; }
.witoo-author-bio .wab-links { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--wt-font-mono); font-size: 12px; }
.witoo-author-bio .wab-links a { color: var(--wt-link); }
@media (max-width: 600px) {
	.witoo-author-bio { flex-direction: column; gap: 14px; }
	.witoo-author-bio .witoo-author-avatar { width: 64px; height: 64px; }
}

/* --- Related ownership posts --- */
.witoo-related-section { margin: 48px 0; }
.witoo-related-title {
	font-family: var(--wt-font-display); font-size: 22px; font-weight: 800;
	color: var(--wt-navy); margin: 0 0 20px;
}
.witoo-related-grid {
	display: grid; gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.witoo-related-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--wt-line); border-radius: var(--wt-radius-lg);
	overflow: hidden; transition: all 0.15s; color: inherit; text-decoration: none;
}
.witoo-related-card:hover { border-color: var(--wt-gold); transform: translateY(-2px); box-shadow: var(--wt-shadow-card); text-decoration: none; }
.witoo-related-thumb { aspect-ratio: 16/9; background: var(--wt-bg-alt); overflow: hidden; }
.witoo-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.witoo-related-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.witoo-related-cat { font-family: var(--wt-font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--wt-slate); }
.witoo-related-card h4 { font-size: 15px; line-height: 1.3; color: var(--wt-navy); margin: 0; }
.witoo-related-card time { font-family: var(--wt-font-mono); font-size: 11px; color: var(--wt-slate); margin-top: auto; padding-top: 6px; }

/* --- Timeline --- */
.witoo-timeline { position: relative; padding-left: 32px; margin: 24px 0; }
.witoo-timeline::before { content: ""; position: absolute; left: 12px; top: 4px; bottom: 4px; width: 2px; background: var(--wt-line); }
.witoo-tl-event { position: relative; margin-bottom: 28px; }
.witoo-tl-event::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--wt-gold); border: 3px solid var(--wt-bg); box-shadow: 0 0 0 1px var(--wt-line); }
.witoo-tl-date { font-family: var(--wt-font-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wt-charcoal); margin: 0 0 4px; font-weight: 700; }
.witoo-tl-title { font-family: var(--wt-font-display); font-size: 17px; font-weight: 700; color: var(--wt-navy); margin: 0 0 4px; }
.witoo-tl-text { font-size: 15px; color: var(--wt-charcoal); }
.witoo-tl-text p { margin: 0 0 4px; }

/* --- KPI strip --- */
.witoo-kpi {
	display: grid; gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin: 24px 0;
}
.witoo-kpi-item {
	background: #fff; border: 1px solid var(--wt-line); border-radius: var(--wt-radius-lg);
	padding: 18px 20px; text-align: left;
}
.witoo-kpi-value {
	font-family: var(--wt-font-mono); font-size: 26px; font-weight: 600; color: var(--wt-navy);
	letter-spacing: -0.5px;
}
.witoo-kpi-label {
	font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
	color: var(--wt-slate); margin-top: 4px;
}

/* --- Callout --- */
.witoo-callout {
	background: #FEF9EE; border: 1px solid #FCD9A0; border-radius: var(--wt-radius-lg);
	padding: 18px 22px; margin: 24px 0;
}
.witoo-callout-label {
	font-family: var(--wt-font-mono); font-size: 11px; letter-spacing: 1.5px;
	text-transform: uppercase; color: #92400E; font-weight: 700; margin: 0 0 6px;
}
.witoo-callout p { margin: 0; font-size: 15px; color: var(--wt-charcoal); line-height: 1.6; }

/* --- Comparison table --- */
.witoo-compare {
	width: 100%; border-collapse: collapse; margin: 24px 0;
	background: #fff; border-radius: var(--wt-radius-lg); overflow: hidden; font-size: 15px;
}
.witoo-compare th, .witoo-compare td { padding: 12px 14px; border-bottom: 1px solid var(--wt-line); text-align: left; }
.witoo-compare thead th { background: var(--wt-navy); color: #fff; font-family: var(--wt-font-mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.witoo-compare tbody tr:nth-child(even) { background: var(--wt-bg-alt); }

/* --- Ad slot --- */
.witoo-ad { margin: 24px auto; text-align: center; max-width: 100%; }
.witoo-ad-label {
	font-family: var(--wt-font-mono); font-size: 10px; letter-spacing: 2px;
	text-transform: uppercase; color: var(--wt-slate); margin: 0 0 8px;
}
.witoo-ad-in-content { margin: 32px auto; }

/* --- Mobile bottom nav (migrated, lifted up to use tokens) --- */
.witoo-bn {
	display: none; position: fixed; bottom: 0; left: 0; right: 0;
	background: rgba(10,22,40,0.97);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-top: 1px solid #1F2937; z-index: 9999;
	padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
@media (max-width: 767px) { .witoo-bn { display: flex; } }
.witoo-bn a {
	flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 8px 4px; color: var(--wt-slate); font-family: var(--wt-font-body);
	font-size: 10px; font-weight: 600; letter-spacing: 0.3px; text-decoration: none;
}
.witoo-bn a.active, .witoo-bn a:hover { color: var(--wt-gold); }
.witoo-bn svg { width: 22px; height: 22px; }

.witoo-ov {
	display: none; position: fixed; inset: 0;
	background: rgba(10,22,40,0.97);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	z-index: 10000; padding: 24px; flex-direction: column; overflow-y: auto;
}
.witoo-ov.open { display: flex; }
.witoo-ov form { display: flex; background: var(--wt-navy-2); border: 1px solid #374151; border-radius: var(--wt-radius-lg); overflow: hidden; margin-top: 60px; }
.witoo-ov input { flex: 1; background: transparent; border: none; outline: none; padding: 14px 18px; color: var(--wt-text-light); font-size: 16px; font-family: var(--wt-font-body); }
.witoo-ov button.go { background: transparent; border: none; color: var(--wt-gold); padding: 0 18px; cursor: pointer; font-weight: 700; font-size: 14px; }
.witoo-ov .x { position: absolute; top: 14px; right: 14px; background: transparent; border: none; color: #fff; font-size: 28px; cursor: pointer; padding: 8px; line-height: 1; }
.witoo-ov .lbl { color: var(--wt-slate); font-family: var(--wt-font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-top: 28px; font-weight: 600; }
.witoo-ov .lks { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.witoo-ov .lks a { color: var(--wt-text-light); padding: 9px 14px; background: var(--wt-navy-2); border-radius: 20px; font-size: 13px; text-decoration: none; border: 1px solid #374151; }
.witoo-ov .lks a:hover { color: var(--wt-gold); border-color: var(--wt-gold); }
