/* ==========================================================
   Digital Marketing page styles
   Loaded by templates/views/assets/digital-marketing.html
   ========================================================== */

.gx-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.gx-split {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
}
.gx-split .h2 {
	margin-top: 18px;
}
.gx-split .lead {
	margin-top: 20px;
	line-height: 1.7;
}
.gx-tabs {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.gx-tabs button {
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14.5px;
	color: #9aa3ae;
	background: transparent;
	transition:
		background 0.3s,
		color 0.3s;
}
.gx-tabs button[aria-selected='true'] {
	color: #04231a;
	background: var(--mint);
}
.gx-panel {
	display: none;
}
.gx-panel.on {
	display: block;
	animation: gx-in 0.5s var(--ease);
}
@keyframes gx-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}
.gx-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 999px;
	font: 400 11.5px/1 var(--font-mono);
	color: #9aa3ae;
	background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 1000px) {
	.gx-cards {
		grid-template-columns: 1fr 1fr;
	}
	.gx-split {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	.gx-cards {
		grid-template-columns: 1fr;
	}
	.gx-tabs {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		border-radius: 16px;
	}
	.gx-tabs button {
		flex: none;
	}
}

.dm-dash {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 12px;
}
.dm-ctl {
	display: grid;
	gap: 18px;
	padding: 20px;
}
.dm-ctl label {
	display: grid;
	gap: 10px;
	font-size: 14px;
	color: #e7eaee;
}
.dm-ctl label span {
	display: flex;
	justify-content: space-between;
}
.dm-ctl label b {
	font: 400 13px/1 var(--font-mono);
	color: var(--mint);
	font-weight: 400;
}
.dm-ctl input {
	width: 100%;
	accent-color: var(--mint);
	cursor: pointer;
}
.dm-hint {
	font: 400 11.5px/1.5 var(--font-mono);
	color: #7d8691;
}
.dm-out {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: center;
	padding: 20px;
}
.dm-donut {
	position: relative;
	width: 180px;
	height: 180px;
}
.dm-donut svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.dm-donut circle {
	fill: none;
	stroke-width: 5;
	transition:
		stroke-dasharray 0.4s var(--ease),
		stroke-dashoffset 0.4s var(--ease);
}
.dm-donut .bg {
	stroke: rgba(255, 255, 255, 0.06);
}
.dm-donut .s0 {
	stroke: var(--mint);
}
.dm-donut .s1 {
	stroke: #7ce7ff;
}
.dm-donut .s2 {
	stroke: #9a9bd6;
}
.dm-donut > div {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
}
.dm-donut small {
	font: 400 10px/1.3 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7d8691;
}
.dm-donut b {
	font: 400 15px/1.4 var(--font-display);
	color: #fff;
	font-weight: 400;
}
.dm-res small {
	font: 400 11px/1 var(--font-mono);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #7d8691;
}
.dm-res b {
	display: block;
	margin-top: 10px;
	font: 400 64px/1 var(--font-display);
	letter-spacing: -0.04em;
	color: #fff;
	font-weight: 400;
}
.dm-res span {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	color: #9aa3ae;
}

.dm-fun {
	display: grid;
	gap: 10px;
}
.dm-st {
	width: max(var(--w), 290px);
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-radius: 14px;
	font-size: 14.5px;
	color: #fff;
	background: linear-gradient(90deg, #00a676, #00b5e2);
	opacity: 0.15;
	transform: scaleX(0.6);
	transition:
		opacity 0.6s,
		transform 0.7s var(--ease);
	white-space: nowrap;
}
.dm-st.on {
	opacity: 1;
	transform: none;
}
.dm-st b {
	font: 400 18px/1 var(--font-display);
	font-weight: 400;
}
.dm-leak {
	margin-top: 10px;
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 14.5px;
	color: #8a3b18;
	background: rgba(226, 119, 74, 0.1);
	box-shadow: inset 0 0 0 1px rgba(226, 119, 74, 0.3);
	opacity: 0;
	transition: opacity 0.5s;
}
.dm-leak.on {
	opacity: 1;
}
.dm-leak b {
	font-weight: 400;
}

@media (max-width: 1000px) {
	.dm-dash {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	.dm-out {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}
	.dm-donut {
		width: 150px;
		height: 150px;
	}
	.dm-res b {
		font-size: 48px;
	}
	.dm-st {
		padding: 12px 14px;
		font-size: 13px;
		width: max(var(--w), 240px);
	}
}
/* channels console (ch- scoped) */
.ch {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	margin-top: clamp(32px, 4vw, 48px);
	border-radius: 28px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 0 0 1px var(--line),
		0 40px 80px -48px rgba(4, 35, 26, 0.35);
}
.ch-list {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 20px;
	border-right: 1px solid var(--line);
}
.ch-list > small {
	padding: 6px 12px 10px;
	font: 400 11px/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--subtle);
}
.ch-tab {
	--c: #00a676;
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	align-items: center;
	width: 100%;
	padding: 14px 14px 16px;
	border: 0;
	border-radius: 16px;
	cursor: pointer;
	text-align: left;
	background: transparent;
	transition: background 0.3s;
}
.ch-tab:hover {
	background: var(--paper);
}
.ch-tab[aria-selected='true'] {
	background: color-mix(in srgb, var(--c) 7%, #fff);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
}
.ch-ic {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	color: var(--c);
	background: color-mix(in srgb, var(--c) 12%, #fff);
	transition:
		background 0.3s,
		color 0.3s;
}
.ch-tab[aria-selected='true'] .ch-ic {
	color: #fff;
	background: var(--c);
}
.ch-ic svg {
	width: 20px;
	height: 20px;
}
.ch-tab b {
	display: block;
	font: 400 16px/1.2 var(--font-display);
	color: var(--ink);
}
.ch-tab small {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--muted);
}
.ch-prog {
	position: absolute;
	left: 68px;
	right: 16px;
	bottom: 8px;
	height: 2px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--c) 14%, transparent);
	overflow: hidden;
	opacity: 0;
}
.ch-prog i {
	display: block;
	height: 100%;
	background: var(--c);
	transform-origin: left;
	transform: scaleX(0);
}
.ch.auto .ch-tab[aria-selected='true'] .ch-prog {
	opacity: 1;
}
.ch.auto .ch-tab[aria-selected='true'] .ch-prog i {
	animation: ch-fill var(--ch-ms, 7000ms) linear forwards;
}
@keyframes ch-fill {
	to {
		transform: scaleX(1);
	}
}
.ch-note {
	margin-top: auto;
	padding: 14px 12px 4px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--subtle);
}

.ch-stage {
	position: relative;
	min-width: 0;
	padding: clamp(18px, 3vw, 36px);
	background:
		radial-gradient(60% 60% at 70% 20%, rgba(0, 195, 137, 0.12), transparent 70%),
		linear-gradient(170deg, #f3faf6, #fbfcfb 70%);
}
.ch-stage {
	display: grid;
}
.ch-panel {
	grid-area: 1 / 1;
	display: grid;
	grid-template-rows: 1fr auto;
	gap: clamp(18px, 2.4vw, 28px);
	min-width: 0;
	visibility: hidden;
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity 0.45s var(--ease),
		transform 0.45s var(--ease),
		visibility 0s 0.45s;
}
.ch-panel.on {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition:
		opacity 0.45s var(--ease),
		transform 0.45s var(--ease);
}
.ch-screen {
	min-height: 300px;
	display: grid;
	place-items: center;
}
.ch-info {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 16px 32px;
	align-items: start;
	padding-top: clamp(16px, 2vw, 24px);
	border-top: 1px solid var(--line);
}
.ch-info h3 {
	font: 400 1.4rem/1.2 var(--font-display);
	letter-spacing: -0.015em;
	color: var(--ink);
}
.ch-info p {
	margin-top: 8px;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--muted);
}
.ch-info .gx-chip {
	margin-top: 14px;
}
.ch-meter {
	display: grid;
	gap: 12px;
	margin: 0;
}
.ch-meter div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13.5px;
	color: var(--ink-2);
}
.ch-meter dd {
	display: flex;
	gap: 4px;
	margin: 0;
}
.ch-meter dd i {
	width: 18px;
	height: 6px;
	border-radius: 3px;
	background: var(--line-strong);
}
.ch-meter dd i.f {
	background: linear-gradient(90deg, #00a676, #00b5e2);
}
.ch-meter small {
	font: 400 10.5px/1.4 var(--font-mono);
	color: var(--subtle);
}

/* shared mock frame */
.ch-win {
	width: min(560px, 100%);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 0 0 1px var(--line),
		0 30px 60px -30px rgba(16, 24, 32, 0.35);
	font-size: 13.5px;
	color: var(--ink);
}
.ch-win-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	background: #f4f3ef;
	border-bottom: 1px solid var(--line);
}
.ch-win-bar i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d9d7d0;
}
.ch-win-bar span {
	margin-left: 8px;
	font: 400 11px/1 var(--font-mono);
	color: var(--subtle);
}
.ch-sk {
	display: block;
	height: 8px;
	border-radius: 4px;
	background: #eceef1;
}

/* search */
.ch-q {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 18px 6px;
	padding: 10px 16px;
	border-radius: 999px;
	box-shadow:
		0 0 0 1px var(--line-strong),
		0 2px 6px rgba(16, 24, 32, 0.06);
}
.ch-q svg {
	width: 16px;
	height: 16px;
	color: var(--subtle);
	flex: none;
}
.ch-q span {
	flex: 1;
}
.ch-q span::after {
	content: '';
	display: inline-block;
	width: 1px;
	height: 14px;
	margin-left: 2px;
	vertical-align: -2px;
	background: var(--ink);
	animation: ch-caret 1s steps(1) infinite;
}
@keyframes ch-caret {
	50% {
		opacity: 0;
	}
}
.ch-res {
	position: relative;
	margin: 10px 12px;
	padding: 12px 14px;
	border-radius: 12px;
}
.ch-res.ad {
	box-shadow: inset 0 0 0 1.5px rgba(0, 166, 118, 0.5);
	background: rgba(0, 195, 137, 0.04);
}
.ch-res.ad > em {
	position: absolute;
	top: -9px;
	right: 12px;
	padding: 3px 9px;
	border-radius: 999px;
	font: 400 10.5px/1.3 var(--font-mono);
	font-style: normal;
	color: #fff;
	background: #00a676;
}
.ch-res small {
	font-size: 12px;
}
.ch-res small b {
	font-weight: 600;
}
.ch-res .u {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}
.ch-res .t {
	display: block;
	margin-top: 6px;
	font: 400 17px/1.3 var(--font-display);
	color: #1a4fb4;
}
.ch-res p {
	margin-top: 4px;
	color: var(--muted);
	line-height: 1.5;
}
.ch-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 8px;
}
.ch-links i {
	font-style: normal;
	font-size: 13px;
	color: #1a4fb4;
}
.ch-res.org {
	display: grid;
	gap: 7px;
	opacity: 0.6;
}

/* social */
.ch-phone {
	width: 270px;
	padding: 10px;
	border-radius: 36px;
	background: #101820;
	box-shadow: 0 30px 60px -28px rgba(16, 24, 32, 0.55);
}
.ch-feed {
	border-radius: 28px;
	overflow: hidden;
	background: #fff;
	font-size: 12.5px;
}
.ch-post-h {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 26px 12px 10px;
}
.ch-av {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, #00a676, #00b5e2);
}
.ch-post-h b {
	display: block;
	font-weight: 400;
	font-size: 13px;
}
.ch-post-h span {
	font-size: 11px;
	color: var(--muted);
}
.ch-post-img {
	position: relative;
	height: 190px;
	background: linear-gradient(90deg, #cdbba6 0 50%, #d7e7f2 50%);
}
.ch-post-img::before,
.ch-post-img::after {
	content: '';
	position: absolute;
	top: 26px;
	width: 34%;
	height: 110px;
	border-radius: 6px;
	box-shadow: inset 0 0 0 6px #fff;
}
.ch-post-img::before {
	left: 8%;
	background: linear-gradient(160deg, #a89480, #8d7b69);
}
.ch-post-img::after {
	right: 8%;
	background: linear-gradient(160deg, #bfe0f5, #e9f5fc);
}
.ch-post-img span {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11px;
	color: #fff;
	background: rgba(16, 24, 32, 0.6);
}
.ch-post p {
	padding: 10px 12px 0;
	line-height: 1.45;
}
.ch-post-cta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 12px 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #f1f2f4;
	font-size: 11.5px;
	color: var(--muted);
}
.ch-post-cta i {
	font-style: normal;
	padding: 6px 10px;
	border-radius: 6px;
	color: #fff;
	background: #e2574a;
}
.ch-post-act {
	display: flex;
	justify-content: space-around;
	padding: 10px 12px 16px;
	font-size: 11.5px;
	color: var(--muted);
}

/* linkedin */
.ch-tgt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	color: var(--muted);
}
.ch-tgt b {
	font: 400 10.5px/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0a66c2;
	font-weight: 400;
	margin-right: 4px;
}
.ch-tgt span {
	padding: 5px 10px;
	border-radius: 999px;
	color: #0a4a8c;
	background: rgba(10, 102, 194, 0.08);
}
.ch-li {
	padding: 14px 16px 16px;
}
.ch-li .ch-post-h {
	padding: 0;
}
.ch-li .ch-av {
	border-radius: 8px;
	background: linear-gradient(135deg, #0f4c81, #0072ce);
}
.ch-li p {
	margin-top: 12px;
	line-height: 1.55;
}
.ch-doc {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	margin-top: 12px;
	padding: 14px;
	border-radius: 12px;
	color: #fff;
	background: linear-gradient(135deg, #0f4c81, #0072ce);
}
.ch-doc i {
	height: 80px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.35);
	background-image: linear-gradient(#cfd8e3 0 0), linear-gradient(#e3e8ee 0 0), linear-gradient(#e3e8ee 0 0);
	background-size:
		60% 6px,
		74% 4px,
		50% 4px;
	background-position:
		8px 12px,
		8px 26px,
		8px 36px;
	background-repeat: no-repeat;
}
.ch-doc b {
	display: block;
	font: 400 16px/1.25 var(--font-display);
}
.ch-doc span {
	font-size: 12px;
	opacity: 0.8;
}
.ch-li footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	font-size: 12px;
	color: var(--muted);
}
.ch-li footer i {
	font-style: normal;
	padding: 8px 16px;
	border-radius: 999px;
	color: #fff;
	background: #0a66c2;
}

/* email */
.ch-mail {
	display: grid;
	grid-template-columns: 190px 1fr;
	min-height: 270px;
}
.ch-inbox {
	border-right: 1px solid var(--line);
	background: #fafaf8;
}
.ch-inbox div {
	position: relative;
	padding: 11px 12px 11px 22px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	color: var(--muted);
}
.ch-inbox div b {
	display: block;
	font-weight: 400;
	color: var(--ink);
	font-size: 12.5px;
}
.ch-inbox div.on {
	background: #fff;
	box-shadow: inset 3px 0 0 #00a676;
}
.ch-inbox div.on::before {
	content: '';
	position: absolute;
	left: 9px;
	top: 16px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00a676;
}
.ch-open {
	padding: 16px 18px;
}
.ch-open header {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	color: var(--muted);
}
.ch-open header b {
	font-weight: 400;
	color: var(--ink);
}
.ch-open h4 {
	margin: 12px 0 0;
	font: 400 18px/1.3 var(--font-display);
}
.ch-open p {
	margin-top: 8px;
	line-height: 1.6;
	color: var(--muted);
}
.ch-quote {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--paper);
	font-size: 12.5px;
}
.ch-quote b {
	font-weight: 400;
}
.ch-open > i {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 16px;
	border-radius: 10px;
	font-style: normal;
	color: #fff;
	background: #00a676;
}

@media (max-width: 1000px) {
	.ch {
		grid-template-columns: 1fr;
	}
	.ch-list {
		display: flex;
		gap: 8px;
		padding: 12px;
		overflow-x: auto;
		scrollbar-width: none;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.ch-list::-webkit-scrollbar {
		display: none;
	}
	.ch-list > small,
	.ch-note,
	.ch-tab small {
		display: none;
	}
	.ch-tab {
		flex: none;
		width: auto;
		grid-template-columns: 30px auto;
		gap: 10px;
		padding: 9px 16px 9px 9px;
		border-radius: 999px;
	}
	.ch-ic {
		width: 30px;
		height: 30px;
		border-radius: 50%;
	}
	.ch-ic svg {
		width: 16px;
		height: 16px;
	}
	.ch-tab b {
		font-size: 14.5px;
		white-space: nowrap;
	}
	.ch-prog {
		left: 18px;
		right: 18px;
		bottom: 3px;
	}
}
@media (max-width: 640px) {
	.ch {
		border-radius: 22px;
	}
	.ch-info {
		grid-template-columns: 1fr;
	}
	.ch-screen {
		min-height: 0;
	}
	.ch-mail {
		grid-template-columns: 1fr;
	}
	.ch-inbox {
		display: none;
	}
	.ch-res.org:last-child {
		display: none;
	}
	.ch-phone {
		width: 250px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ch-q span::after {
		animation: none;
	}
}
