/* ThoughtThrill Shapes
   White stage, ink type, one cobalt accent. Comic Neue carries the channel voice
   on shape names only; interface text stays in a plain sans so the names stand out. */

.tt-shapes,
.tt-viewer,
.tt-single {
	--tt-paper: #ffffff;
	--tt-ink: #151a24;
	--tt-muted: #6a7183;
	--tt-rule: #e4e7ef;
	--tt-accent: #1f4fd8;
	--tt-live: #f2a900;
	--tt-stage: #06080f; /* the animations' own backdrop, so cards do not flash white */
	--tt-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tt-name: "Comic Neue", "Comic Sans MS", var(--tt-ui);
	--tt-card-h: 260px;

	box-sizing: border-box;
	color: var(--tt-ink);
	font-family: var(--tt-ui);
}

.tt-shapes *,
.tt-viewer *,
.tt-single * {
	box-sizing: border-box;
}

.tt-shapes .screen-reader-text,
.tt-viewer .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Bar ------------------------------------------------------------------ */

.tt-shapes .tt-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tt-rule);
	margin-bottom: 28px;
}

.tt-shapes .tt-search {
	flex: 1 1 220px;
	min-width: 180px;
}

.tt-shapes .tt-search__input {
	width: 100%;
	padding: 9px 12px;
	font: inherit;
	font-size: 15px;
	color: var(--tt-ink);
	background: var(--tt-paper);
	border: 1px solid var(--tt-rule);
	border-radius: 6px;
}

.tt-shapes .tt-search__input:focus-visible,
.tt-shapes button:focus-visible,
.tt-viewer button:focus-visible,
.tt-single button:focus-visible {
	outline: 2px solid var(--tt-accent);
	outline-offset: 2px;
}

.tt-shapes .tt-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tt-shapes .tt-filter {
	padding: 7px 13px;
	font: inherit;
	font-size: 14px;
	color: var(--tt-muted);
	background: none;
	border: 1px solid var(--tt-rule);
	border-radius: 999px;
	cursor: pointer;
}

.tt-shapes .tt-filter.is-on {
	color: var(--tt-paper);
	background: var(--tt-ink);
	border-color: var(--tt-ink);
}

.tt-shapes .tt-motion {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 7px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--tt-muted);
	background: none;
	border: 1px solid var(--tt-rule);
	border-radius: 999px;
	cursor: pointer;
}

.tt-shapes .tt-motion__dot {
	width: 8px;
	height: 8px;
	background: var(--tt-rule);
	border-radius: 50%;
}

.tt-shapes .tt-motion[aria-pressed="true"] .tt-motion__dot {
	background: var(--tt-live);
}

/* Grid ----------------------------------------------------------------- */

.tt-shapes .tt-grid {
	display: grid;
	grid-template-columns: repeat(var(--tt-cols, 3), minmax(0, 1fr));
	gap: 34px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-shapes[data-columns="1"] .tt-grid { --tt-cols: 1; }
.tt-shapes[data-columns="2"] .tt-grid { --tt-cols: 2; }
.tt-shapes[data-columns="3"] .tt-grid { --tt-cols: 3; }
.tt-shapes[data-columns="4"] .tt-grid { --tt-cols: 4; }

.tt-shapes .tt-card {
	margin: 0;
	padding: 0;
}

.tt-shapes .tt-card[hidden] {
	display: none;
}

.tt-shapes .tt-card__stage {
	position: relative;
	display: block;
	width: 100%;
	height: var(--tt-card-h);
	padding: 0;
	background-color: var(--tt-stage);
	background-position: center;
	background-size: cover;
	border: 1px solid rgba(10, 16, 30, 0.14);
	border-radius: 4px;
	cursor: zoom-in;
	overflow: hidden;
}

.tt-shapes .tt-card__stage iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none; /* the card click owns the whole stage */
}

/* Idle mark: a quiet dotted circle standing in for the shape until it loads. */
.tt-shapes .tt-card__idle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 74px;
	height: 74px;
	margin: -37px 0 0 -37px;
	border: 2px dotted rgba(255, 255, 255, 0.22);
	border-radius: 50%;
}

.tt-shapes .tt-card.is-live .tt-card__idle,
.tt-shapes .tt-card.has-poster .tt-card__idle {
	display: none;
}

.tt-shapes .tt-card__meta {
	padding-top: 12px;
}

.tt-shapes .tt-card__title {
	margin: 0;
	font-family: var(--tt-name);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--tt-ink);
}

.tt-shapes .tt-card:hover .tt-card__title,
.tt-shapes .tt-card:focus-within .tt-card__title {
	box-shadow: inset 0 -2px 0 var(--tt-accent);
}

.tt-shapes .tt-card__blurb {
	margin: 6px 0 0;
	max-width: 46ch;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--tt-muted);
}

.tt-shapes .tt-card__cat {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--tt-accent);
}

.tt-shapes .tt-empty {
	margin: 40px 0 0;
	color: var(--tt-muted);
}

.tt-notice {
	padding: 12px 14px;
	border-left: 3px solid #f2a900;
	background: #fffaf0;
	font-size: 14.5px;
}

/* Viewer --------------------------------------------------------------- */

.tt-viewer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: var(--tt-paper);
}

.tt-viewer[hidden] {
	display: none;
}

.tt-viewer__head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--tt-rule);
}

.tt-viewer__title {
	margin: 0;
	font-family: var(--tt-name);
	font-size: 24px;
	font-weight: 700;
}

.tt-viewer__blurb {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14.5px;
	color: var(--tt-muted);
}

.tt-viewer__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.tt-viewer__btn {
	padding: 7px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--tt-ink);
	text-decoration: none;
	background: none;
	border: 1px solid var(--tt-rule);
	border-radius: 999px;
	cursor: pointer;
}

.tt-viewer__btn:hover {
	border-color: var(--tt-ink);
}

.tt-viewer__frame {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: var(--tt-stage);
}

.tt-viewer__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Single embed --------------------------------------------------------- */

.tt-single {
	margin: 28px 0;
}

.tt-single__stage {
	position: relative;
	height: var(--tt-single-h, 520px);
	background: var(--tt-stage);
	border: 1px solid var(--tt-rule);
	border-radius: 4px;
	overflow: hidden;
}

.tt-single__stage iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tt-single__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 11px 20px;
	font: inherit;
	font-size: 15px;
	color: #06080f;
	background: #eef2fb;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.tt-single__caption {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding-top: 10px;
	font-size: 14.5px;
	color: var(--tt-muted);
}

.tt-single__caption strong {
	font-family: var(--tt-name);
	font-size: 17px;
	color: var(--tt-ink);
}

/* Small screens -------------------------------------------------------- */

@media (max-width: 900px) {
	.tt-shapes .tt-grid {
		--tt-cols: 2 !important;
		gap: 28px 18px;
	}
}

@media (max-width: 600px) {
	.tt-shapes .tt-grid {
		--tt-cols: 1 !important;
	}

	.tt-shapes .tt-motion {
		margin-left: 0;
	}

	.tt-viewer__head {
		flex-wrap: wrap;
		gap: 8px 12px;
	}

	.tt-viewer__blurb {
		display: none;
	}
}

/* Homepage module ------------------------------------------------------ */
/* The module ships its own inline styles so it survives a blocked or late
   stylesheet. Only the hover state lives here. */

.tt-promo:hover,
.tt-promo:focus-visible {
	border-color: #151a24 !important;
}

.tt-promo:focus-visible {
	outline: 2px solid var(--tt-accent);
	outline-offset: 2px;
}
