/* TargetVideo theme: styles theme.json cannot express. Tokens come from theme.json presets. */

:root {
	--tv-radius: 12px;
	--tv-radius-lg: 18px;
	--tv-line: #3F3F48;
}

/* Eyebrow label above headlines */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--green);
}

/* Chips */
.is-style-chip {
	display: inline-block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.4;
	border: 1px solid var(--tv-line);
	border-radius: 999px;
	padding: 6px 12px;
	background: var(--wp--preset--color--base);
	margin: 0;
}

/* Cards */
.is-style-card,
.is-style-card-dark {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--tv-radius-lg);
	padding: 28px;
}
.is-style-card { background: var(--wp--preset--color--surface); }
.is-style-card-dark { background: var(--wp--preset--color--base); }
.is-style-card > .wp-block-buttons:last-child,
.is-style-card > p:last-child > a:only-child { margin-top: auto; }

/* Buttons */
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1.5px solid #5C5C68;
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover { border-color: var(--wp--preset--color--green); }
.wp-block-button.is-style-dark .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--white);
}

/* Header navigation: product links first, then a divider, then secondary links */
.tv-header .wp-block-navigation-item__content { color: var(--wp--preset--color--white); }
.tv-header .wp-block-navigation-item.is-style-secondary .wp-block-navigation-item__content {
	color: #A9A9B8;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}
.tv-header .wp-block-navigation-item.is-style-secondary.tv-nav-first { position: relative; margin-left: 12px; }
@media (min-width: 600px) {
	.tv-header .wp-block-navigation-item.is-style-secondary.tv-nav-first::before {
		content: "";
		position: absolute;
		left: -22px;
		top: 50%;
		width: 1px;
		height: 20px;
		transform: translateY(-50%);
		background: #45454F;
	}
}
.tv-header .wp-block-navigation-item__content:hover,
.tv-header .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--green); }

/* Header dropdowns (max. 5 entries each) */
.tv-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--base, #0E0E14) !important;
	border: 1px solid #2E2E38 !important;
	border-radius: 12px;
	padding: 8px !important;
	min-width: 230px !important;
	box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.tv-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 9px 12px !important;
	border-radius: 8px;
	font-size: var(--wp--preset--font-size--small);
	color: #D6D6E0;
}
.tv-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #1E1E28; color: var(--wp--preset--color--green); }
.tv-header .wp-block-navigation-submenu__toggle { color: #A9A9B8; }
.tv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 0 0 12px !important; background: transparent !important; }

/* Q&A */
.tv-faq .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: var(--wp--preset--font-size--heading-sm);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--white);
}
.tv-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.tv-faq .wp-block-details summary::after {
	content: "+";
	color: var(--wp--preset--color--green);
	font-size: 26px;
	line-height: 1;
	transition: transform 0.2s;
}
.tv-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.tv-faq .wp-block-details:last-child { border-bottom: 1px solid var(--tv-line); }
.tv-faq .wp-block-details > :not(summary) { color: var(--wp--preset--color--text-muted); }

/* Tables */
.wp-block-table { overflow-x: auto; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 16px; }
.wp-block-table table { min-width: 680px; border-collapse: collapse; }
.wp-block-table th,
.wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: 14px 16px; text-align: left; vertical-align: top; }
.wp-block-table th { font-size: var(--wp--preset--font-size--small); color: #B4B4C4; }
.wp-block-table tr:last-child td { border-bottom: 0; }

/* Logo strip: names stay as text for search engines, logos replace them visually */
.tv-logo-strip { overflow: hidden; }
.tv-logo-strip .wp-block-group.tv-logo-track { flex-wrap: nowrap; width: max-content; animation: tv-marquee 38s linear infinite; }
.tv-logo-strip:hover .tv-logo-track { animation-play-state: paused; }
.tv-logo-strip .is-style-card { min-width: 220px; height: 92px; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
@keyframes tv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Muted body text helper */
.has-text-muted-color a { color: var(--wp--preset--color--green); }

/* Skip link and focus */
.skip-link:focus { background: var(--wp--preset--color--white); color: var(--wp--preset--color--base); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Footer */
.tv-footer-list { list-style: none; padding: 0; margin: 0; }
.tv-footer-list a { color: var(--wp--preset--color--text-muted); text-decoration: none; }
.tv-footer-list a:hover { color: var(--wp--preset--color--green); }

/* Highlighted card (middle option of three paths) */
.is-style-card.tv-highlight { border: 1.5px solid var(--wp--preset--color--green); box-shadow: 0 0 0 6px rgba(56, 238, 125, 0.08); }

@media (max-width: 600px) {
	.tv-header .wp-block-group.alignwide { flex-wrap: nowrap; gap: 12px; }
	.tv-header .wp-block-group.alignwide > .wp-block-navigation { order: 3; flex: none; }
	.tv-header .wp-block-group.alignwide > .wp-block-buttons { margin-left: auto; }
	.tv-header .wp-block-button.is-style-secondary { display: none; }
	.tv-header .wp-block-button__link { padding: 10px 14px !important; font-size: var(--wp--preset--font-size--small); }
}

.is-style-eyebrow a { text-decoration: none; color: inherit; }

/* Draft and proposal tags inside content */
.is-style-tag { display: inline-block; align-self: flex-start; font-size: var(--wp--preset--font-size--small); font-weight: 700; color: var(--wp--preset--color--base); background: var(--wp--preset--color--yellow); border-radius: 6px; padding: 2px 8px; margin: 0; }

/* Button on the brand gradient: outline */
.wp-block-button.is-style-outline-dark .wp-block-button__link { background: transparent; color: var(--wp--preset--color--base); border: 1.5px solid var(--wp--preset--color--base); }

/* Card on the brand gradient (video portal band) */
.is-style-card.tv-gradient-card { background: linear-gradient(110deg, #38EE7D 0%, #11988D 100%); border: 0; }
.is-style-card.tv-gradient-card, .is-style-card.tv-gradient-card :is(h2, h3, p, a) { color: var(--wp--preset--color--base); }

/* Logo grid: names stay as text until logo files replace them */
.tv-logo-grid .is-style-card { color: #E6E6F2; }

/* Images in content */
.wp-block-image img { height: auto; max-width: 100%; }

/* Inline SVG graphics from the design */
.tv-html svg { max-width: 100%; height: auto; }

/* Forms (contact form placeholder until the HubSpot form is embedded) */
.tv-form { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tv-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.tv-form input, .tv-form select, .tv-form textarea { font: inherit; font-size: 16px; color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--base); border: 1px solid #45454F; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.tv-form button { font: inherit; font-weight: 700; background: var(--wp--preset--gradient--brand); color: var(--wp--preset--color--base); border: 0; border-radius: 12px; padding: 16px 28px; cursor: pointer; }

/* Cookie consent banner (Complianz) in brand style. Selectors target the Complianz default markup. */
.cmplz-cookiebanner { background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--contrast) !important; border: 1px solid var(--wp--preset--color--border) !important; border-radius: 16px !important; font-family: var(--wp--preset--font-family--montserrat) !important; box-shadow: 0 12px 40px rgba(0,0,0,.45) !important; }
.cmplz-cookiebanner .cmplz-title, .cmplz-cookiebanner .cmplz-message, .cmplz-cookiebanner a { color: var(--wp--preset--color--contrast) !important; }
.cmplz-cookiebanner .cmplz-btn { border-radius: 12px !important; font-weight: 700 !important; min-height: 44px; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--wp--preset--color--green) !important; border-color: var(--wp--preset--color--green) !important; color: var(--wp--preset--color--base) !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny, .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences, .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background: transparent !important; border: 1.5px solid #5C5C68 !important; color: var(--wp--preset--color--contrast) !important; }
.cmplz-manage-consent { background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--contrast) !important; border-color: var(--wp--preset--color--border) !important; }
.is-style-card.tv-gradient-card .has-text-muted-color, .is-style-card.tv-gradient-card .has-green-color { color: var(--wp--preset--color--base) !important; }
.wp-block-code { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: 18px; font-size: 14px; color: var(--wp--preset--color--contrast); overflow-x: auto; }
.tv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-chip { display: inline-block; font-size: var(--wp--preset--font-size--small); font-weight: 600; border: 1px solid #3F3F48; border-radius: 999px; padding: 6px 12px; background: var(--wp--preset--color--base); }

/* Channel diagram (Media Hub) */
.tv-html .node { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; font-size: 14px; font-weight: 600; color: #F1F1FA; background: var(--wp--preset--color--surface); border: 1px solid #3F3F48; border-radius: 12px; padding: 6px; }
.tv-html .node.soc { border-color: #5363F8; }
@keyframes tv-dash { to { stroke-dashoffset: -22; } }
.tv-html .flow { animation: tv-dash 1.2s linear infinite; }
@media (max-width: 760px) { .tv-html .node { font-size: 11px; min-height: 44px; padding: 4px; } }
@media (prefers-reduced-motion: reduce) { .tv-html .flow { animation: none; } }

/* Layout safety: grid and flex children may shrink, embedded graphics never overflow */
.is-layout-grid > *, .is-layout-flex > * { min-width: 0; }
.wp-block-table { max-width: 100%; }
.tv-html > div, .tv-html > svg { box-sizing: border-box; max-width: 100%; }
@media (max-width: 760px) { .tv-html [style*="repeat(8"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

.tv-html { min-width: 0; }
.tv-html * { box-sizing: border-box; }

/* Footer: columns spread over the full width like the prototype (auto-fit, not auto-fill) */
.tv-footer > .alignwide.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }

/* Tablet header: keep one row; secondary links stay in the footer */
@media (min-width: 601px) and (max-width: 1100px) {
	.tv-header .wp-block-group.alignwide { flex-wrap: nowrap; }
	.tv-header .wp-block-navigation-item.is-style-secondary { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
	.tv-header .wp-block-button.is-style-secondary { display: none; }
	.tv-header .wp-block-navigation__container { gap: 18px; }
}
/* Header on one row at desktop widths (logo + 8 nav items + 2 buttons exceeded 1280px after "AI Solutions"; 23 Nov) */
@media (min-width: 1000px) { .tv-header .wp-block-navigation, .tv-header .wp-block-navigation .wp-block-navigation__container { gap: 14px; } .tv-header .alignwide { flex-wrap: nowrap; } }
@media (min-width: 1000px) { .tv-header .wp-block-navigation__container { flex-wrap: nowrap; } .tv-header .wp-block-button__link, .tv-header .wp-block-navigation-item__content { white-space: nowrap; } }
@media (min-width: 1000px) and (max-width: 1399px) { .tv-header .alignwide { gap: 16px; } .tv-header .wp-block-navigation, .tv-header .wp-block-navigation .wp-block-navigation__container { gap: 10px; } .tv-header .wp-block-button__link { padding-left: 14px !important; padding-right: 14px !important; } .tv-header .tv-logo img, .tv-header .tv-logo svg { max-width: 140px; height: auto; } }

/* Site header v2 (28 Nov): Products mega menu, dropdowns, language switch, mobile menu */
.tv-hdr { position: relative; z-index: 50; background: #1D1D21; border-bottom: 1px solid var(--wp--preset--color--border, #34343B); font-family: Montserrat, sans-serif; }
.tv-hdr a { text-decoration: none; }
.tv-hdr-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 28px; }
.tv-hdr .tv-logo { display: flex; align-items: center; flex: none; }
.tv-hdr .tv-logo img { height: 26px; width: auto; display: block; }
.tv-hdr-nav { display: flex; align-items: center; gap: 4px; }
.tv-hdr-top { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; color: #FFFFFF; font: 600 15px/1 Montserrat, sans-serif; cursor: pointer; border-radius: 8px; }
.tv-hdr-top svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s; }
.tv-hdr-top[aria-expanded="true"] svg { transform: rotate(180deg); }
.tv-hdr-top:hover, .tv-hdr-top[aria-expanded="true"] { color: #38EE7D; }
.tv-hdr-dd { position: relative; }
.tv-hdr-small { position: absolute; left: 0; top: calc(100% + 14px); min-width: 210px; padding: 8px; background: #26262B; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.tv-hdr-small[hidden] { display: none; }
.tv-hdr-small a { padding: 10px 12px; border-radius: 8px; color: #D6D6DE; font-size: 14px; font-weight: 500; }
.tv-hdr-small a:hover { background: #3A3A41; color: #FFFFFF; }
.tv-hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tv-hdr-lang { color: #A9A9B5; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 6px 8px; border: 1px solid #45454F; border-radius: 6px; }
.tv-hdr-lang:hover { color: #38EE7D; border-color: #38EE7D; }
.tv-hdr-login { color: #FFFFFF; font-size: 15px; font-weight: 600; }
.tv-hdr-login:hover { color: #38EE7D; }
.tv-hdr-cta { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 20px; border-radius: 10px; background: linear-gradient(90deg, #11988D, #38EE7D); color: #1D1D21 !important; font-size: 15px; font-weight: 700; white-space: nowrap; }
.tv-hdr-cta:hover { filter: brightness(1.06); }
.tv-hdr-burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.tv-hdr-burger span { display: block; width: 18px; height: 2px; border-radius: 1px; background: #FFFFFF; transition: transform .2s, opacity .2s; }
.tv-hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tv-hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tv-hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.tv-mega { position: absolute; left: 0; right: 0; top: 100%; padding: 0 24px; }
.tv-mega[hidden] { display: none; }
.tv-mega-in { max-width: 1232px; margin: 0 auto; background: #26262B; border: 1px solid rgba(255,255,255,.08); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: 0 30px 70px rgba(0,0,0,.5); display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; padding: 28px; }
.tv-mega-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tv-mega-col { display: flex; flex-direction: column; gap: 2px; }
.tv-mega-head { margin: 0 0 8px; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E8E99; }
a.tv-mega-head { color: #38EE7D; }
a.tv-mega-head:hover { color: #FFFFFF; }
.tv-mega-item { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border-radius: 10px; }
.tv-mega-item b { color: #FFFFFF; font-size: 15px; font-weight: 700; }
.tv-mega-item span { color: #A9A9B5; font-size: 13px; line-height: 1.4; }
.tv-mega-item:hover { background: #3A3A41; }
.tv-mega-item:hover b { color: #38EE7D; }
.tv-mega-demo { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; background: linear-gradient(160deg, rgba(17,152,141,.35), rgba(56,238,125,.12)); border: 1px solid rgba(56,238,125,.25); align-self: start; }
.tv-mega-demo b { color: #FFFFFF; font-size: 16px; }
.tv-mega-demo span { color: #D6D6DE; font-size: 14px; line-height: 1.5; }
.tv-mega-demo em { font-style: normal; color: #38EE7D; font-weight: 700; font-size: 14px; }
.tv-mob-menu { display: none; }
.tv-mob-menu[hidden] { display: none !important; }
@media (max-width: 1120px) { .tv-hdr-in { gap: 16px; } .tv-hdr-top { padding: 10px 8px; font-size: 14px; } .tv-hdr-login { display: none; } }
@media (max-width: 980px) {
  .tv-hdr-nav, .tv-mega, .tv-hdr-login, .tv-hdr-lang { display: none !important; }
  .tv-hdr-burger { display: flex; }
  .tv-hdr-in { padding: 0 16px; }
  .tv-mob-menu { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px 24px; border-top: 1px solid rgba(255,255,255,.08); max-height: calc(100vh - 72px); overflow-y: auto; }
  .tv-mob-label { margin: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E8E99; }
  .tv-mob-head { padding: 11px 0; color: #FFFFFF; font-size: 16px; font-weight: 600; }
  .tv-mob-sub { padding: 9px 0 9px 14px; color: #C9C9D3; font-size: 15px; }
  .tv-mob-menu a:hover { color: #38EE7D; }
  .tv-mob-menu hr { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 10px 0; }
  .tv-mob-menu .tv-hdr-cta { justify-content: center; margin: 14px 0 6px; }
}
@media (max-width: 420px) { .tv-hdr-actions .tv-hdr-cta { padding: 0 14px; font-size: 14px; } .tv-hdr .tv-logo img { height: 22px; } }
