/* ==========================================================================
   Auto Collection — Design System
   Brand: #673ab7 (TracKTollywood Purple)
   ========================================================================== */

:root {
	--tt-primary: #673ab7;
	--tt-primary-light: #7e57c2;
	--tt-primary-dark: #512da8;
	--tt-primary-faint: #ede7f6;
	--tt-accent: #d1c4e9;
	--tt-success: #16a34a;
	--tt-success-bg: #dcfce7;
	--tt-success-border: #86efac;
	--tt-text: #1a1a2e;
	--tt-text-secondary: #6b7280;
	--tt-border: #e5e7eb;
	--tt-bg: #f8f9fa;
	--tt-white: #ffffff;
	--tt-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
	--tt-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
	--tt-shadow-lg: 0 8px 24px rgba(103,58,183,0.12);
	--tt-radius: 12px;
	--tt-radius-sm: 8px;
	--tt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ==========================================================================
   Hub Page
   ========================================================================== */

.tt-ac-hub.tt-ac-hub {
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: var(--tt-font);
	color: var(--tt-text);
}

.tt-ac-hub.tt-ac-hub .tt-ac-hub-header {
	margin-bottom: 40px;
	text-align: center;
	padding: 32px 20px;
	background: linear-gradient(135deg, #1a1035 0%, #0e0c1f 100%);
	border-radius: var(--tt-radius);
	color: #e6e1f5;
}

.tt-ac-hub.tt-ac-hub .tt-ac-hub-title {
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 8px;
	color: #fff;
	letter-spacing: -0.5px;
}

.tt-ac-hub.tt-ac-hub .tt-ac-hub-desc {
	color: #b9b2d9;
	font-size: 15px;
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.tt-ac-hub-section-title {
	font-size: 14px;
	font-weight: 700;
	margin: 32px 0 16px;
	color: var(--tt-primary);
	text-transform: uppercase;
	letter-spacing: 1px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tt-primary-faint);
}

.tt-ac-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

.tt-ac-hub.tt-ac-hub .tt-ac-hub-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: var(--tt-radius);
	overflow: hidden;
	transition: box-shadow 0.25s, transform 0.25s;
	background: var(--tt-white);
	box-shadow: 0 2px 12px rgba(103, 58, 183, 0.06);
	border: 1px solid var(--tt-accent);
}

.tt-ac-hub.tt-ac-hub .tt-ac-hub-card:hover {
	box-shadow: 0 8px 28px rgba(103, 58, 183, 0.15);
	transform: translateY(-4px);
	border-color: var(--tt-primary-light);
}

.tt-ac-hub-card-visual {
	position: relative;
}

.tt-ac-hub-card-poster {
	height: 280px;
	background-size: cover;
	background-position: center top;
	background-color: var(--tt-primary-faint);
}

.tt-ac-hub-card-poster--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
	background: linear-gradient(135deg, #1a1035 0%, #0e0c1f 100%);
	color: var(--tt-accent);
}

.tt-ac-hub-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.tt-ac-hub-card-badge.tt-ac-badge--live {
	background: rgba(22, 163, 74, 0.85);
	color: #fff;
}

.tt-ac-hub-card-badge.tt-ac-badge--live::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: tt-ac-pulse 1.5s ease-in-out infinite;
}

.tt-ac-hub-card-badge.tt-ac-badge--completed {
	background: rgba(107, 114, 128, 0.85);
	color: #fff;
}

.tt-ac-hub-card-body {
	padding: 16px 18px 14px;
}

.tt-ac-hub.tt-ac-hub .tt-ac-hub-card-title {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 4px;
	color: var(--tt-text);
	line-height: 1.3;
}

.tt-ac-hub-card-genre {
	display: block;
	font-size: 12px;
	color: var(--tt-text-secondary);
	margin-bottom: 12px;
}

.tt-ac-hub-card-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 12px;
	background: linear-gradient(135deg, #1a1035, #0e0c1f);
	border-radius: 8px;
	margin-bottom: 12px;
}

.tt-ac-hub-card-stat {
	text-align: center;
}

.tt-ac-hub-card-stat-value {
	display: block;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
}

.tt-ac-hub-card-stat-label {
	display: block;
	font-size: 9px;
	font-weight: 600;
	color: #b9b2d9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

.tt-ac-hub-card-footer {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #999;
}

.tt-ac-pagination {
	text-align: center;
	margin: 30px 0 10px;
}

.tt-ac-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--tt-primary);
	background: var(--tt-primary-faint);
	border: 1px solid var(--tt-accent);
	transition: all 0.2s;
}

.tt-ac-pagination .page-numbers.current {
	background: var(--tt-primary);
	color: #fff;
	border-color: var(--tt-primary);
}

.tt-ac-pagination .page-numbers:hover:not(.current) {
	background: var(--tt-primary);
	color: #fff;
}

.tt-ac-hub-completed-link {
	text-align: center;
	margin: 30px 0 10px;
}

.tt-ac-hub-completed-link a {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--tt-primary);
	background: var(--tt-primary-faint);
	border: 1px solid var(--tt-accent);
	transition: all 0.2s;
}

.tt-ac-hub-completed-link a:hover {
	background: var(--tt-primary);
	color: #fff;
}

.tt-ac-hub-empty {
	color: var(--tt-text-secondary);
	font-size: 16px;
	text-align: center;
	padding: 80px 20px;
	background: var(--tt-bg);
	border-radius: var(--tt-radius);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.tt-ac-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

.tt-ac-badge--live {
	background: var(--tt-success-bg);
	color: var(--tt-success);
	border: 1px solid var(--tt-success-border);
}

.tt-ac-badge--completed {
	background: #f3f4f6;
	color: #6b7280;
	border: 1px solid #d1d5db;
}

/* ==========================================================================
   Single Page — Hero Section (Poster + Stats)
   ========================================================================== */

.tt-ac-single.tt-ac-single .tt-ac-hero {
	display: flex;
	gap: 28px;
	margin-bottom: 28px;
	padding: 28px;
	border-radius: var(--tt-radius);
	background: linear-gradient(135deg, #1a1035 0%, #0e0c1f 100%);
	color: #e6e1f5;
}

.tt-ac-hero-poster {
	flex: 0 0 200px;
}

.tt-ac-hero-poster img {
	width: 200px;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tt-ac-hero-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tt-ac-hero-title {
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	margin: 0;
	line-height: 1.2;
}

.tt-ac-hero-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	width: fit-content;
}

.tt-ac-hero .tt-ac-badge--live {
	background: rgba(22, 163, 74, 0.2);
	color: #4ade80;
	border: 1px solid rgba(74, 222, 128, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tt-ac-hero .tt-ac-badge--live::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	animation: tt-ac-pulse 1.5s ease-in-out infinite;
}

.tt-ac-hero .tt-ac-badge--completed {
	background: rgba(156, 163, 175, 0.2);
	color: #d1d5db;
	border: 1px solid rgba(209, 213, 219, 0.3);
}

.tt-ac-hero-stats {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 10px;
}

.tt-ac-hero-stat {
	display: flex;
	flex-direction: column;
	text-align: center;
}

.tt-ac-hero-stat-value {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
}

.tt-ac-hero-stat-label {
	font-size: 10px;
	color: #b9b2d9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

.tt-ac-hero-details {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px 24px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-ac-hero-detail {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.tt-ac-hero-detail-label {
	font-size: 10px;
	color: #7e6ba9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tt-ac-hero-detail-value {
	font-size: 13px;
	color: #d1c4e9;
	font-weight: 500;
	line-height: 1.4;
}

.tt-ac-hero-updated {
	font-size: 11px;
	color: #b9b2d9;
	margin-top: auto;
}

/* ==========================================================================
   Single Article Page
   ========================================================================== */

.tt-ac-single.tt-ac-single {
	max-width: 960px;
	margin: 30px auto;
	padding: 0 20px;
	font-family: var(--tt-font);
	color: var(--tt-text);
}

.tt-ac-single.tt-ac-single .tt-ac-single-title {
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 16px;
	color: var(--tt-primary-dark);
	letter-spacing: -0.3px;
	line-height: 1.2;
}

/* ── Status Bar ────────────────────────────────────────────────────── */

.tt-ac-status {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: var(--tt-radius-sm);
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
}

.tt-ac-status--live {
	background: var(--tt-success-bg);
	color: var(--tt-success);
	border: 1px solid var(--tt-success-border);
}

.tt-ac-status--live::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tt-success);
	animation: tt-ac-pulse 1.5s ease-in-out infinite;
}

@keyframes tt-ac-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.8); }
}

.tt-ac-status--final {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

/* ── Highlights Strip (Top City / State) ────────────────────────────── */

.tt-ac-highlights {
	margin-bottom: 24px;
	padding: 18px 20px;
	border-radius: var(--tt-radius);
	background: linear-gradient(135deg, #1a1035 0%, #0e0c1f 100%);
	color: #e6e1f5;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tt-ac-highlights-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tt-ac-highlights-label {
	font-size: 11px;
	font-weight: 700;
	color: #b9b2d9;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	min-width: 80px;
	flex-shrink: 0;
}

.tt-ac-highlight-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	flex: 1;
	min-width: 0;
}

.tt-ac-highlight-name {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tt-ac-highlight-value {
	font-size: 13px;
	font-weight: 600;
	color: #d1c4e9;
	white-space: nowrap;
	margin-left: auto;
}

.tt-ac-highlight-metric {
	font-size: 9px;
	font-weight: 600;
	color: #7e6ba9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.tt-ac-highlights-row {
		flex-wrap: wrap;
	}
	.tt-ac-highlights-label {
		width: 100%;
		min-width: unset;
	}
	.tt-ac-highlight-chip {
		flex: 1 1 calc(33% - 8px);
		min-width: 0;
	}
}

@media (max-width: 480px) {
	.tt-ac-highlight-chip {
		flex: 1 1 100%;
	}
}

/* ── Cards (used by occupancy stats) ───────────────────────────────── */

.tt-ac-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.tt-ac-single.tt-ac-single .tt-ac-card {
	flex: 1 1 140px;
	padding: 14px;
	border: 1px solid var(--tt-accent);
	border-radius: var(--tt-radius-sm);
	background: linear-gradient(180deg, var(--tt-white) 0%, #faf8ff 100%);
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(103, 58, 183, 0.06);
}

.tt-ac-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tt-primary), var(--tt-primary-light));
}

.tt-ac-card-icon {
	font-size: 20px;
	margin-bottom: 4px;
	line-height: 1;
}

.tt-ac-card-value {
	font-size: 20px;
	font-weight: 800;
	color: var(--tt-primary-dark);
	line-height: 1.2;
}

.tt-ac-card-label {
	font-size: 10px;
	font-weight: 600;
	color: var(--tt-text-secondary);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── SEO Paragraph ─────────────────────────────────────────────────── */

.tt-ac-single.tt-ac-single .tt-ac-seo-paragraph {
	margin-bottom: 24px;
	padding: 16px 20px;
	border-radius: var(--tt-radius-sm);
	background: var(--tt-bg);
	border-left: 3px solid var(--tt-primary);
}

.tt-ac-single.tt-ac-single .tt-ac-seo-paragraph p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--tt-text);
}

/* ==========================================================================
   Milestone Progress Bar
   ========================================================================== */

.tt-ac-single.tt-ac-single .tt-ac-milestones {
	margin-bottom: 24px;
	border-radius: var(--tt-radius);
	background: linear-gradient(135deg, #1a1035 0%, #0e0c1f 100%);
	color: #e6e1f5;
}

.tt-ac-single.tt-ac-single .tt-ac-milestones-label {
	font-size: 11px;
	font-weight: 700;
	color: #b9b2d9;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 20px 20px 0;
	margin-bottom: 16px;
}

.tt-ac-milestones-scroll {
	overflow-x: auto;
	scrollbar-width: none;
	padding: 12px 20px 16px;
	-webkit-overflow-scrolling: touch;
}

.tt-ac-milestones-scroll::-webkit-scrollbar { display: none; }

.tt-ac-milestones-bar {
	position: relative;
	min-width: var(--tt-ms-bar-width, 600px);
	height: 80px;
	margin: 0 40px;
	overflow: visible;
}

/* Background track line */
.tt-ac-milestones-line {
	position: absolute;
	top: 16px;
	left: 0;
	right: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
}

/* Filled portion */
.tt-ac-milestones-fill {
	height: 100%;
	border-radius: 2px;
	background: linear-gradient(90deg, #4ade80, #673ab7);
}

/* Dots container */
.tt-ac-milestones-dots {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	overflow: visible;
}

/* Each milestone node */
.tt-ac-ms-node {
	position: absolute;
	transform: translateX(-50%);
	text-align: center;
	width: 60px;
	overflow: visible;
}

/* Dot */
.tt-ac-ms-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin: 10px auto 4px;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.tt-ac-ms-dot--done {
	background: #4ade80;
	border-color: #4ade80;
	box-shadow: 0 0 6px rgba(74, 222, 128, 0.3);
}

.tt-ac-ms-dot--latest {
	width: 16px;
	height: 16px;
	margin-top: 8px;
	border: none;
	animation: tt-ac-pulse-glow 2s ease-in-out infinite;
}

@keyframes tt-ac-pulse-glow {
	0%, 100% { box-shadow: 0 0 10px 3px rgba(74, 222, 128, 0.5); }
	50% { box-shadow: 0 0 18px 6px rgba(74, 222, 128, 0.7); }
}

/* Amount label */
.tt-ac-ms-label {
	font-size: 10px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.3);
	white-space: nowrap;
	line-height: 1.2;
}

.tt-ac-ms-dot--done + .tt-ac-ms-label {
	color: #fff;
}

/* Day label (only for achieved) */
.tt-ac-ms-day {
	font-size: 9px;
	font-weight: 600;
	color: #4ade80;
	white-space: nowrap;
	line-height: 1.2;
}

/* ==========================================================================
   Section Groups — History vs Today
   ========================================================================== */

.tt-ac-single.tt-ac-single .tt-ac-section-group {
	margin: 28px 0;
	padding: 28px;
	border-radius: var(--tt-radius);
	background: linear-gradient(180deg, var(--tt-white) 0%, #fcfbff 100%);
	box-shadow: 0 2px 12px rgba(103, 58, 183, 0.05);
	border: 1px solid var(--tt-accent);
}

.tt-ac-single.tt-ac-single .tt-ac-section-group--today {
	background: linear-gradient(180deg, #f8f5ff 0%, var(--tt-white) 100%);
	border-color: var(--tt-primary-light);
	border-left: 4px solid var(--tt-primary);
	box-shadow: 0 2px 16px rgba(103, 58, 183, 0.08);
}

.tt-ac-single.tt-ac-single .tt-ac-group-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--tt-primary) 0%, var(--tt-primary-light) 100%);
	color: #fff;
	letter-spacing: -0.2px;
}

.tt-ac-single.tt-ac-single .tt-ac-section-group h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 28px 0 12px;
	color: var(--tt-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
}

.tt-ac-single.tt-ac-single .tt-ac-section-group h3:first-of-type {
	margin-top: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.tt-ac-single.tt-ac-single .tt-ac-table-wrap {
	overflow-x: auto;
	margin-bottom: 20px;
	border-radius: var(--tt-radius-sm);
	border: 1px solid var(--tt-accent);
	box-shadow: 0 1px 6px rgba(103, 58, 183, 0.04);
}

.tt-ac-single.tt-ac-single .tt-ac-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tt-ac-single.tt-ac-single .tt-ac-table th,
.tt-ac-single.tt-ac-single .tt-ac-table td {
	padding: 10px 14px;
	text-align: left;
	white-space: nowrap;
	border: none;
}

.tt-ac-single.tt-ac-single .tt-ac-table th {
	background: linear-gradient(180deg, var(--tt-primary-light), var(--tt-primary));
	color: var(--tt-white);
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	position: sticky;
	top: 0;
	z-index: 1;
}

.tt-ac-single.tt-ac-single .tt-ac-table tbody tr {
	border-bottom: 1px solid #f0f0f0;
}

.tt-ac-single.tt-ac-single .tt-ac-table tbody tr:nth-child(even) {
	background: var(--tt-bg);
}

.tt-ac-single.tt-ac-single .tt-ac-table tbody tr:hover {
	background: var(--tt-primary-faint);
}

.tt-ac-single.tt-ac-single .tt-ac-table .tt-ac-num,
.tt-ac-single.tt-ac-single .tt-ac-table th.tt-ac-num {
	text-align: right !important;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.tt-ac-single.tt-ac-single .tt-ac-table .tt-ac-center,
.tt-ac-single.tt-ac-single .tt-ac-table th.tt-ac-center {
	text-align: center !important;
}

/* Occupancy color codes */
.tt-ac-occ-high { color: #16a34a; font-weight: 600; }
.tt-ac-occ-mid { color: #d97706; font-weight: 600; }
.tt-ac-occ-low { color: #dc2626; }

/* Snapshot download button */
.tt-ac-snapshot-bar {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin-bottom: 2px;
}

.tt-ac-single.tt-ac-single .tt-ac-snapshot-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--tt-primary-faint);
	border: 1px solid var(--tt-accent);
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 12px;
	color: var(--tt-primary);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	line-height: 1.3;
}

.tt-ac-single.tt-ac-single .tt-ac-snapshot-btn:hover {
	background: var(--tt-primary);
	color: var(--tt-white);
	border-color: var(--tt-primary);
}

/* Expand / collapse button for city tables */
.tt-ac-single.tt-ac-single .tt-ac-expand-btn {
	display: block;
	margin: 10px auto;
	padding: 8px 20px;
	border: 1px solid var(--tt-primary);
	border-radius: 20px;
	background: transparent;
	color: var(--tt-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.tt-ac-single.tt-ac-single .tt-ac-expand-btn:hover {
	background: var(--tt-primary);
	color: var(--tt-white);
}

/* Day-over-day change indicators */
.tt-ac-change {
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.tt-ac-change--up {
	color: #16a34a;
}

.tt-ac-change--down {
	color: #dc2626;
}

.tt-ac-change--neutral {
	color: #9ca3af;
}

/* Share percentage badge */
.tt-ac-share {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	background: var(--tt-primary-faint);
	color: var(--tt-primary-dark);
	font-size: 12px;
	font-weight: 600;
}

.tt-ac-single.tt-ac-single .tt-ac-totals td {
	background: linear-gradient(90deg, var(--tt-primary-faint), #ece4f9) !important;
	color: var(--tt-primary-dark);
	font-weight: 700;
	border-bottom: 2px solid var(--tt-primary) !important;
}

/* ==========================================================================
   Chart
   ========================================================================== */

.tt-ac-single.tt-ac-single .tt-ac-chart-wrap {
	margin: 20px 0;
	padding: 16px;
	border-radius: var(--tt-radius-sm);
	border: 1px solid var(--tt-border);
	background: var(--tt-white);
	overflow: hidden;
}

.tt-ac-chart-wrap canvas {
	display: block;
	max-width: 100%;
	height: auto !important;
}

/* Sub-headings inside section groups — clearly subordinate to group title */
.tt-ac-single.tt-ac-single .tt-ac-section-group h2:not(.tt-ac-group-title) {
	font-size: 13px;
	font-weight: 700;
	margin: 24px 0 8px;
	padding: 0;
	border-bottom: none;
	border-radius: 0;
	background: none;
	color: var(--tt-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.tt-ac-single.tt-ac-single .tt-ac-section-group h2:not(.tt-ac-group-title):first-of-type {
	margin-top: 4px;
}

/* Headings from post_content — only direct children (not inside section groups) */
.tt-ac-single.tt-ac-single .tt-ac-single-content > h2 {
	font-size: 20px;
	font-weight: 800;
	margin: 30px 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tt-primary);
	color: var(--tt-primary-dark);
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.tt-ac-single.tt-ac-single .tt-ac-disclaimer {
	margin: 30px 0 10px;
	padding: 14px 18px;
	border-radius: var(--tt-radius-sm);
	background: #fff8e1;
	border-left: 3px solid #f59e0b;
}

.tt-ac-single.tt-ac-single .tt-ac-disclaimer p {
	margin: 0;
	font-size: 12px;
	color: #92400e;
	line-height: 1.6;
}

/* ==========================================================================
   Floating Quick Nav
   ========================================================================== */

/* Override theme wrapper overflow to allow sticky.
   overflow:clip acts like hidden but doesn't create a scroll context. */
.td-theme-wrap {
	overflow: clip !important;
}

.tt-ac-quicknav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--tt-border);
	margin: 0 0 20px;
	scrollbar-width: none;
}

.tt-ac-quicknav::-webkit-scrollbar {
	display: none;
}

.tt-ac-quicknav-btn {
	display: inline-block;
	padding: 7px 18px;
	border-radius: 20px;
	border: 1.5px solid var(--tt-primary);
	background: var(--tt-primary-faint);
	color: var(--tt-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s;
	box-shadow: 0 1px 4px rgba(103, 58, 183, 0.08);
}

.tt-ac-quicknav-btn:hover,
.tt-ac-quicknav-btn:active {
	background: var(--tt-primary);
	color: var(--tt-white);
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(103, 58, 183, 0.2);
}

/* Smooth scroll for anchor links */
html {
	scroll-behavior: smooth;
}

/* Offset for sticky nav when jumping to anchors */
[id^="tt-ac-"] {
	scroll-margin-top: 60px;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 768px) {
	.tt-ac-quicknav {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		top: auto;
		margin: 0;
		padding: 10px 16px;
		border-bottom: none;
		border-top: 1px solid var(--tt-border);
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
		justify-content: center;
		z-index: 999;
	}

	/* Add bottom padding to body so content isn't hidden behind fixed nav */
	.tt-ac-single-content {
		padding-bottom: 56px;
	}
}

@media (max-width: 768px) {
	.tt-ac-hero {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 20px;
		gap: 16px;
	}

	.tt-ac-hero-poster {
		flex: none;
	}

	.tt-ac-hero-poster img {
		width: 160px;
	}

	.tt-ac-hero-title {
		font-size: 22px;
	}

	.tt-ac-hero-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.tt-ac-hero-details {
		grid-template-columns: 1fr 1fr;
		text-align: left;
	}

	.tt-ac-hero-badge {
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.tt-ac-hub {
		margin: 20px auto;
	}

	.tt-ac-hub-title {
		font-size: 24px;
	}

	.tt-ac-hub-grid {
		grid-template-columns: 1fr;
	}

	.tt-ac-single-title {
		font-size: 22px;
	}

	.tt-ac-summary {
		grid-template-columns: repeat(2, 1fr);
	}

	.tt-ac-card-value {
		font-size: 18px;
	}

	.tt-ac-table th,
	.tt-ac-table td {
		padding: 8px 8px;
		font-size: 12px;
	}

	.tt-ac-section-group {
		padding: 16px;
		margin: 20px 0;
	}
}

@media (max-width: 380px) {
	.tt-ac-summary {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Stories Widget — [tt_live_tracker] shortcode
   ========================================================================== */

.tt-ac-stories.tt-ac-stories {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	font-family: var(--tt-font);
}

@media (max-width: 768px) {
	.tt-ac-stories.tt-ac-stories {
		justify-content: flex-start;
	}
}

.tt-ac-stories.tt-ac-stories::-webkit-scrollbar {
	display: none;
}

.tt-ac-stories-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
	width: 100px;
	flex-shrink: 0;
	transition: transform 0.2s;
}

.tt-ac-stories-item:hover {
	transform: scale(1.05);
	text-decoration: none;
	color: inherit;
}

.tt-ac-stories-avatar {
	width: 90px;
	height: 120px;
	border-radius: 12px;
	background-size: cover;
	background-position: center top;
	background-color: var(--tt-primary-faint);
	border: 3px solid var(--tt-success);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	margin-bottom: 6px;
}

.tt-ac-stories-avatar--completed {
	border-color: #9ca3af;
}

.tt-ac-stories-avatar--cta {
	border-color: var(--tt-primary);
	background: linear-gradient(135deg, #1a1035, #0e0c1f);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.tt-ac-stories-name {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: var(--tt-text) !important;
	text-align: center;
	max-width: 100px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.tt-ac-stories-gross {
	display: block;
	font-size: 10px;
	color: var(--tt-text-secondary) !important;
	text-align: center;
	white-space: nowrap;
	line-height: 1.3;
}

/* ==========================================================================
   Snapshot Render Isolation — prevent theme CSS from bleeding into snapshots
   ========================================================================== */

/* Reset only theme-injected borders/shadows — inline styles from JS handle the rest */
.tt-ac-snapshot-render table {
	border: none !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.tt-ac-snapshot-render th,
.tt-ac-snapshot-render td {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}
