/* ---------- Tokens: nomtoo.com, Cream page #FFFDFC + rose masthead #F5E3E4 + crimson #A50919 + cocoa text #34252B (live computed 2026-12-02).
   Light page, so the card takes the site's darkest brand tone (#241519) to stand out; frame #F4A0A8; the button stays Telegram blue (pinned by the v2 skeleton).
   Contrast: title #FFF3F4 on #241519 16.2:1 · muted #CDB5BA 9.1:1 · frame/accent #F4A0A8 8.7:1. ---------- */
.nw-tg-card,
.nw-tg-float {
	--tg-surface: #241519;
	--tg-glow: rgba(165, 9, 25, 0.32);
	--tg-line: rgba(244, 160, 168, 0.24);
	--tg-line-hi: rgba(244, 160, 168, 0.5);
	--tg-ring: rgba(244, 160, 168, 0.6);
	--tg-spark: #F4A0A8;
	--tg-spark-hi: #FFE4E7;
	--tg-halo: rgba(244, 160, 168, 0.5);
	--tg-halo-2: rgba(165, 9, 25, 0.42);
	--tg-text: #FFF3F4;
	--tg-text-2: #CDB5BA;
	--tg-accent: #F4A0A8;
	--tg-btn-bg: #A50919;                        /* overridden by the v2 Telegram blue */
	--tg-btn-bg-hi: #A50919;
	--tg-btn-text: #FFFFFF;
	--tg-btn-edge: rgba(255, 255, 255, .18);
	--tg-sheen: rgba(255, 228, 231, 0.45);
	--tg-press: rgba(165, 9, 25, 0.12);
	--tg-hint-bg: rgba(244, 160, 168, 0.1);
	--tg-chip: rgba(36, 21, 25, 0.74);
	--tg-chip-hi: rgba(36, 21, 25, 0.92);
	--tg-shadow: 0 12px 32px rgba(36, 21, 25, 0.35);
	--tg-shadow-lg: 0 18px 44px rgba(36, 21, 25, 0.45), 0 2px 8px rgba(36, 21, 25, 0.25);
	--tg-btn-shadow: 0 6px 16px rgba(0, 0, 0, .42);
	--tg-btn-shadow-hi: 0 10px 22px rgba(0, 0, 0, .5);
	--tg-radius: 14px;
	--tg-font: inherit;
	--tg-ico-ring: rgba(255, 255, 255, .9);
	--tg-ease: cubic-bezier(.16, 1, .3, 1);
}
/*
 * Telegram CTA (mu-plugins/nw-tg.php). One shared skeleton for the Whitelist sites: markup, layout, sizes, type scale, motion and
 * behaviour never change per site; the TOKEN BLOCK below is the only part a site edits (its own palette). This file is the skeleton only.
 * Scoped to .nw-tg-* and guarded against host-theme rules (global button/link/heading/img styles, !important paints, font inheritance).
 * Motion: transform + opacity only. Entry 0.45 s ease-out-expo. "Tap here" loop (6 s: the hint chip blinks 3x (to 55%) at 0.83 Hz, then a light
 * sweep crosses the button and the arrow nudges, then rest) runs only while the card/popup is on screen; reduced motion = static.
 */

/* (token block comes first: sites/<site>.tokens.css, prepended by deploy_tg.sh) */

/* ---------- Guard: the component owns its type and paint, whatever the host theme sets ---------- */
html body .nw-tg-card,
html body .nw-tg-float {
	font-family: var(--tg-font);
	font-style: normal;
	font-weight: 400;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-align: left;
	text-shadow: none;
	text-indent: 0;
	line-height: 1.4;
	color: var(--tg-text) !important;
	box-sizing: border-box;
	float: none;
}
html body .nw-tg-card *,
html body .nw-tg-float * {
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
}
html body .nw-tg-card img,
html body .nw-tg-float img {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	background: none !important;
	filter: none;
	opacity: 1;
}
html body .nw-tg-card a,
html body .nw-tg-float a {
	text-decoration: none !important;
	border: 0 !important;
	background-image: none !important;
	box-shadow: none;
}

/* ---------- Shared button: a solid pill (raised: dark offset shadow + a hairline of light on top) ---------- */
html body .nw-tg-card a.nw-tg-btn,
html body .nw-tg-float .nw-tg-btn {
	display: inline-flex;
	align-items: stretch;
	min-height: 48px;
	margin: 0;
	padding: 0;
	border-radius: 999px !important;
	background: var(--tg-btn-bg) !important;
	color: var(--tg-btn-text) !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: var(--tg-btn-shadow), inset 0 1px 0 var(--tg-btn-edge) !important;
	transition: background-color .2s ease, transform .15s var(--tg-ease), box-shadow .25s ease;
}
/* Inner face: carries the padding and clips the light sweep, so the <a> stays unpositioned (stretched link below) */
.nw-tg-btn__face {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: var(--tg-btn-gap, 9px);
	padding: var(--tg-btn-pad, 12px 22px);
	border-radius: inherit;
	overflow: hidden;
	color: inherit;
	white-space: nowrap;
}
.nw-tg-btn__face::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: linear-gradient(100deg, transparent, var(--tg-sheen) 50%, transparent);
	transform: translateX(-120%) skewX(-18deg);
	pointer-events: none;
}
.nw-tg-btn .nw-tg-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--tg-ico-ring); transition: transform .3s var(--tg-ease); } /* official blue Telegram mark; thin white ring keeps it crisp on the rose button */
html body .nw-tg-card a.nw-tg-btn:hover,
html body .nw-tg-card:hover a.nw-tg-btn,
html body .nw-tg-float__link:hover .nw-tg-btn {
	background: var(--tg-btn-bg-hi) !important;
	color: var(--tg-btn-text) !important;
	box-shadow: var(--tg-btn-shadow-hi), inset 0 1px 0 var(--tg-btn-edge) !important;
}
html body .nw-tg-card:hover .nw-tg-btn .nw-tg-ico,
html body .nw-tg-float__link:hover .nw-tg-btn .nw-tg-ico { transform: rotate(-12deg) scale(1.08); }
/* Touch feedback: the press is the first proof that this is a button */
html body .nw-tg-card a.nw-tg-btn:active,
html body .nw-tg-float__link:active .nw-tg-btn { transform: scale(.97); }
.nw-tg-card a.nw-tg-btn:focus-visible,
.nw-tg-float__link:focus-visible,
.nw-tg-float__close:focus-visible { outline: 2px solid var(--tg-accent) !important; outline-offset: 3px; }

/* Title: Thai has no spaces between words, so each phrase is kept whole and lines break only between phrases */
.nw-tg-nw { white-space: nowrap; }
html body .nw-tg-card .nw-tg-gold,
html body .nw-tg-float .nw-tg-gold { color: var(--tg-accent) !important; }

/* ---------- End-of-post card: 3-photo strip on top, headline + hint + button below; the whole card is one link ---------- */
html body .nw-tg-card {
	display: block;
	position: relative;
	width: auto;
	max-width: none;
	margin: 32px 0 8px;
	padding: 0;
	border: 1px solid var(--tg-line) !important;
	border-radius: var(--tg-radius);
	overflow: hidden;
	background: radial-gradient(120% 90% at 0% 100%, var(--tg-glow), transparent 60%), var(--tg-surface) !important;
	box-shadow: var(--tg-shadow);
	transition: border-color .3s ease;
}
/* Stretched link: the button's ::after covers the card (one t.me link per card, crawlers see one) */
html body .nw-tg-card a.nw-tg-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--tg-radius);
	background: none;
}
html body .nw-tg-card .nw-tg-card__art {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 1212 / 600;
	object-fit: cover;
	margin: 0;
	-webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
	transform-origin: 50% 40%;
	transition: transform .6s var(--tg-ease);
}
@media (hover: hover) and (pointer: fine) {
	html body .nw-tg-card:hover { border-color: var(--tg-spark) !important; cursor: pointer; }
	html body .nw-tg-card:hover .nw-tg-card__art { transform: scale(1.03); }
	/* hover replays the light sweep once */
	html body .nw-tg-card:hover .nw-tg-btn__face::before,
	html body .nw-tg-float__link:hover .nw-tg-btn__face::before { animation: nw-tg-sheen 1.5s cubic-bezier(.45, 0, .25, 1) 1; }
}
html body .nw-tg-card .nw-tg-card__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 32px 30px;
	margin: 0;
}
html body .nw-tg-card .nw-tg-card__title {
	margin: 0 !important;
	padding: 0;
	color: var(--tg-text) !important;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.36;
	text-wrap: balance;
}

html body .nw-tg-card .nw-tg-card__cta { display: flex; flex: none; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 0; }
/* desktop end card: a bigger button, so the CTA holds its own beside a 26 px headline */
html body .nw-tg-card a.nw-tg-btn { min-height: 52px; font-size: 17px; --tg-btn-pad: 14px 28px; }

/* "Tap here" hint: accent colour, a hand that taps + short words, right above the button */
html body .nw-tg-card .nw-tg-hint,
html body .nw-tg-float .nw-tg-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--tg-hint-bg) !important;
	color: var(--tg-accent) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}
.nw-tg-hint .nw-tg-hand { flex: none; width: 18px; height: 18px; transform-origin: 40% 20%; }
.nw-tg-btn .nw-tg-arr { flex: none; width: 17px; height: 17px; margin-left: -2px; }
.nw-tg-card svg,
.nw-tg-float svg { display: block; fill: none; stroke: currentColor; }

@media (max-width: 600px) {
	html body .nw-tg-card .nw-tg-card__body { flex-direction: column; align-items: stretch; gap: 14px; padding: 12px 18px 20px; }
	html body .nw-tg-card .nw-tg-card__title { font-size: 20px; text-align: center; }
	html body .nw-tg-card .nw-tg-card__cta { align-items: center; gap: 10px; }
	html body .nw-tg-card a.nw-tg-btn { width: 100%; min-height: 50px; font-size: 16px; --tg-btn-pad: 13px 22px; }
}

/* ---------- Home page: the same card as a full-width row in the latest-posts grid (#aft-inner-row is flex-wrap; articles pad 7.5 px) ---------- */
html body #aft-inner-row > .nw-tg-home {
	display: block;
	flex: 0 0 100%;
	float: none;
	clear: both;
	width: 100%;
	max-width: 100%;
	margin: 8px 0 28px;
	padding: 0 7.5px;
	box-sizing: border-box;
}
html body .nw-tg-home .nw-tg-card { margin: 0; }

/* ---------- Floating corner card (cloned by JS after half a screen of scroll): photo left, words + button right ---------- */
html body .nw-tg-float {
	position: fixed;
	z-index: 9990;
	margin: 0;
	padding: 0;
	background: var(--tg-surface) !important;
	opacity: 0;
	transition: opacity .35s ease, transform .45s var(--tg-ease);
}
html body .nw-tg-float.is-in { opacity: 1; transform: none; }
html body .nw-tg-float a.nw-tg-float__link,
html body .nw-tg-float a.nw-tg-float__link:hover,
html body .nw-tg-float a.nw-tg-float__link:focus { color: var(--tg-text) !important; background: transparent !important; }

html body .nw-tg-float button.nw-tg-float__close {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	bottom: auto;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--tg-text-2) !important;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.nw-tg-float__close::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: var(--tg-chip);
	border: 1px solid var(--tg-line);
	transition: background-color .2s ease, border-color .2s ease;
}
.nw-tg-float__close svg { position: relative; width: 14px; height: 14px; }
html body .nw-tg-float button.nw-tg-float__close:hover,
html body .nw-tg-float button.nw-tg-float__close:focus { color: var(--tg-accent) !important; background: transparent !important; }
.nw-tg-float__close:hover::before { border-color: var(--tg-line-hi); background: var(--tg-chip-hi); }

/* Owner 2026-12-02 (round 3): a narrow PORTRAIT card (headline, photo, button stacked), so it covers a thin strip at the side,
   not a band across the text. Phone 132 px wide (~10% of a 390x844 screen), desktop 200 px. */
html body .nw-tg-float.is-card {
	right: 20px;
	bottom: 20px;
	left: auto;
	top: auto;
	width: 200px;
	max-width: none;
	border: 1px solid var(--tg-ring) !important;
	border-radius: var(--tg-radius);
	overflow: visible; /* the ✕ sits on the corner, half outside */
	box-shadow: var(--tg-shadow-lg);
	transform: translateY(18px);
}
html body .nw-tg-float.is-card.is-in { transform: none; }
.is-card .nw-tg-float__link {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 9px;
	padding: 11px 10px 10px;
	border-radius: inherit;
	-webkit-tap-highlight-color: transparent;
}
html body .is-card .nw-tg-float__title { display: block; margin: 0; padding: 0 14px 0 2px; color: var(--tg-text) !important; font-size: 15px; font-weight: 700; line-height: 1.38; }
html body .is-card .nw-tg-float__art {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 4 / 5;
	margin: 0;
	object-fit: cover;
	object-position: 50% 38%;
	border-radius: 10px !important;
	transition: transform .6s var(--tg-ease);
}
.is-card .nw-tg-float__link:hover .nw-tg-float__art { transform: scale(1.02); }
html body .nw-tg-float.is-card .nw-tg-float__btn { display: flex; min-height: 44px; font-size: 15px; --tg-btn-pad: 10px 10px; --tg-btn-gap: 6px; }
.is-card .nw-tg-float__btn .nw-tg-ico { width: 20px; height: 20px; }
.is-card .nw-tg-float__btn .nw-tg-arr { width: 16px; height: 16px; }
html body .nw-tg-float.is-card a.nw-tg-float__link:active { background: var(--tg-press) !important; }
/* ✕ on the top-right corner: 44 px tap area, 28 px visible disc */
html body .nw-tg-float.is-card button.nw-tg-float__close { top: -16px; right: -16px; }

/* Phone + tablet: the same portrait card, compact, bottom-right, non-modal */
@media (max-width: 1023px) {
	html body .nw-tg-float.is-card {
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		width: 132px;
		transform: translate(12px, 20px);
	}
	html body .nw-tg-float.is-card.is-in { transform: none; }
	.is-card .nw-tg-float__link { gap: 7px; padding: 9px 7px 7px; }
	html body .is-card .nw-tg-float__title { padding: 0 12px 0 1px; font-size: 12px; line-height: 1.35; }
	html body .is-card .nw-tg-float__art { border-radius: 8px !important; }
	html body .nw-tg-float.is-card .nw-tg-float__btn { min-height: 38px; font-size: 13px; --tg-btn-pad: 7px 6px; --tg-btn-gap: 5px; }
	.is-card .nw-tg-float__btn .nw-tg-ico { width: 17px; height: 17px; }
	.is-card .nw-tg-float__btn .nw-tg-arr { display: none; }
	html body .nw-tg-float.is-card button.nw-tg-float__close { top: -17px; right: -12px; } /* tap area stays on screen */
	/* keep the page's last lines and the back-to-top button clear of the card */
	html.nw-tg-pad body { padding-bottom: calc(280px + env(safe-area-inset-bottom, 0px)); }
	html.nw-tg-card-on #scroll-up { bottom: calc(286px + env(safe-area-inset-bottom, 0px)) !important; transition: bottom .3s ease; }
}
@media (min-width: 1024px) {
	html.nw-tg-card-on #scroll-up { right: 236px !important; }
}

/* ---------- Gold frame that blinks and sparkles (owner 2026-12-02): tells the reader the whole card/popup is tappable.
   ::before = the frame with a spark of light running round it; ::after = a soft gold-rose glow outside it that blinks.
   Runs only with .is-pulse (on screen); reduced motion = a still frame and a steady glow. ---------- */
@property --tg-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
html body .nw-tg-card { overflow: visible; border-color: var(--tg-ring) !important; }
html body .nw-tg-card .nw-tg-card__art { border-radius: var(--tg-radius) var(--tg-radius) 0 0 !important; }
html body .nw-tg-card::before,
html body .nw-tg-float.is-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: 2;
	padding: 2px;
	border-radius: inherit;
	background: conic-gradient(from var(--tg-a), transparent 0 62%, var(--tg-spark) 74%, var(--tg-spark-hi) 80%, var(--tg-spark) 86%, transparent 96%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	pointer-events: none;
}
html body .nw-tg-card::after,
html body .nw-tg-float.is-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	box-shadow: 0 0 16px 3px var(--tg-halo), 0 0 36px 8px var(--tg-halo-2);
	opacity: .35;
	pointer-events: none;
}
html body .nw-tg-float.is-card::after { box-shadow: 0 0 12px 2px var(--tg-halo), 0 0 26px 6px var(--tg-halo-2); }
@keyframes nw-tg-orbit { to { --tg-a: 360deg; } }
@keyframes nw-tg-halo {
	0%, 20%, 40%, 60%, 100% { opacity: .35; }
	10%, 30%, 50% { opacity: 1; }
}
html body .nw-tg-card { isolation: isolate; } /* the glow layer (z-index -1) stays above the page, below the card's content */
html body .nw-tg-card.is-pulse::before,
html body .nw-tg-float.is-card.is-pulse::before { opacity: 1; animation: nw-tg-orbit 3s linear infinite; }
html body .nw-tg-card.is-pulse::after,
html body .nw-tg-float.is-card.is-pulse::after { animation: nw-tg-halo 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
	html body .nw-tg-card.is-pulse::before,
	html body .nw-tg-float.is-card.is-pulse::before { opacity: 0; animation: none; }
	html body .nw-tg-card::after,
	html body .nw-tg-float.is-card::after { opacity: .7 !important; animation: none !important; }
}

/* ---------- "Tap here" loop, 6 s: the hint blinks 3x (1.2 s each = 0.83 Hz, far under WCAG 2.3.1's 3 per second) while the
   hand taps, then a light sweep crosses the button and the arrow nudges, then rest.
   .is-pulse is on only while the card/popup is on screen (IntersectionObserver / while shown; the ✕ turns it off). ---------- */
@keyframes nw-tg-blink {
	0%, 20%, 40%, 60%, 100% { opacity: 1; }
	10%, 30%, 50% { opacity: .55; }
}
@keyframes nw-tg-tap {
	0%, 20%, 40%, 60%, 100% { transform: none; }
	10%, 30%, 50% { transform: translate(1px, 2px) scale(.88); }
}
@keyframes nw-tg-sweep {
	0%, 60% { transform: translateX(-120%) skewX(-18deg); }
	80%, 100% { transform: translateX(300%) skewX(-18deg); }
}
@keyframes nw-tg-nudge {
	0%, 62%, 80%, 100% { transform: none; }
	70% { transform: translateX(4px); }
}
@keyframes nw-tg-sheen {
	0% { transform: translateX(-120%) skewX(-18deg); }
	30%, 100% { transform: translateX(300%) skewX(-18deg); }
}
.is-pulse .nw-tg-hint { animation: nw-tg-blink 6s ease-in-out infinite; }
.is-pulse .nw-tg-hint .nw-tg-hand { animation: nw-tg-tap 6s ease-in-out infinite; }
.is-pulse .nw-tg-btn__face::before { animation: nw-tg-sweep 6s cubic-bezier(.45, 0, .25, 1) infinite; }
.is-pulse .nw-tg-btn .nw-tg-arr { animation: nw-tg-nudge 6s var(--tg-ease) infinite; }

@media (prefers-reduced-motion: reduce) {
	html body .nw-tg-float,
	html body .nw-tg-float.is-card { transition: opacity .2s linear; transform: none !important; }
	html body .nw-tg-card a.nw-tg-btn,
	html body .nw-tg-float .nw-tg-btn { transition: background-color .2s ease, box-shadow .2s ease; }
	.nw-tg-btn .nw-tg-ico,
	html body .is-card .nw-tg-float__art,
	html body .nw-tg-card .nw-tg-card__art { transition: none; }
	.is-card .nw-tg-float__link:hover .nw-tg-float__art,
	html body .nw-tg-card:hover .nw-tg-card__art,
	html body .nw-tg-card:hover .nw-tg-btn .nw-tg-ico,
	html body .nw-tg-float__link:hover .nw-tg-btn .nw-tg-ico,
	html body .nw-tg-card a.nw-tg-btn:active,
	html body .nw-tg-float__link:active .nw-tg-btn { transform: none; }
	/* static: the hint at full strength, the raised pill and the colour change on hover/press carry the affordance */
	.nw-tg-hint,
	.nw-tg-hint .nw-tg-hand,
	.nw-tg-btn__face::before,
	.nw-tg-btn .nw-tg-arr { animation: none !important; }
}

/* ---------- v2 = THE MASTER LOOK on every site (owner-approved on saozabdet 2026-12-02): Telegram-blue identity so the CTA no longer blends into the site's own posts and buttons.
   Blue header bar (logo + "Telegram" + @handle + "เข้าฟรี"), blue button, t.me line under it; the site's own frame/surface tokens stay. The popup has NO header bar.
   Contrast: white on #1878B5 4.8:1 (bar left edge + button middle, where the text sits) · #13609E on white 6.7:1 · #8FD3F7 on #160F1C 11:1. ---------- */
.nw-tg-card.nw-tg--v2,
.nw-tg-float.nw-tg--v2 {
	--tg-blue-bar: linear-gradient(90deg, #1878B5, #13609E);
	--tg-glow: rgba(42, 171, 238, .16);
	--tg-halo-2: rgba(42, 171, 238, .38);
	--tg-btn-bg: linear-gradient(180deg, #2AABEE 0%, #1878B5 34%, #1878B5 66%, #13609E 100%);
	--tg-btn-bg-hi: linear-gradient(180deg, #229DDE 0%, #14699F 34%, #14699F 66%, #0F5489 100%);
	--tg-btn-text: #FFFFFF;                      /* fixed: a site's own button text colour (e.g. yuajai's dark-on-gold) must not reach the blue button */
	--tg-ico-ring: rgba(255, 255, 255, .85);
	--tg-btn-edge: rgba(255, 255, 255, .3);
	--tg-sheen: rgba(214, 240, 255, .4);
	--tg-press: rgba(42, 171, 238, .14);
	--tg-btn-shadow: 0 6px 18px rgba(19, 96, 158, .5);
	--tg-btn-shadow-hi: 0 10px 24px rgba(19, 96, 158, .6);
}
html body .nw-tg-card.nw-tg--v2 .nw-tg-card__head {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 11px 16px;
	border-radius: calc(var(--tg-radius) - 1px) calc(var(--tg-radius) - 1px) 0 0;
	background: var(--tg-blue-bar) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
	color: #fff !important;
}
.nw-tg-card__head .nw-tg-head__ico { flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.nw-tg-card__brand { display: flex; flex-direction: column; min-width: 0; }
html body .nw-tg-card .nw-tg-card__name { color: #fff !important; font-size: 18px; font-weight: 700; line-height: 1.15; }
html body .nw-tg-card .nw-tg-card__handle { color: #fff !important; font-size: 14px; font-weight: 400; line-height: 1.3; opacity: .92; }
html body .nw-tg-card .nw-tg-card__free {
	margin-left: auto;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff !important;
	color: #13609E !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}
html body .nw-tg-card.nw-tg--v2 .nw-tg-card__art { border-radius: 0 !important; }
html body .nw-tg-card .nw-tg-card__url { display: block; margin: -4px 0 0; color: #8FD3F7 !important; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; }
html body .nw-tg-card.nw-tg--v2 .nw-tg-btn .nw-tg-ico { box-shadow: 0 0 0 2px #fff; }

@media (max-width: 600px) {
	html body .nw-tg-card.nw-tg--v2 .nw-tg-card__head { gap: 10px; padding: 10px 14px; }
	.nw-tg-card__head .nw-tg-head__ico { width: 34px; height: 34px; }
	html body .nw-tg-card .nw-tg-card__name { font-size: 17px; }
	html body .nw-tg-card .nw-tg-card__handle { font-size: 13px; }
}

/* Host guard (sxngz 2026-12-02): some child themes paint `.entry-content a span` with !important (0,2,3); keep the button label on the button's own colour. */
html body .nw-tg-card a.nw-tg-btn span,
html body .nw-tg-float a.nw-tg-btn span { color: inherit !important; }
