/**
 * The Wicked — Studio Clocks widget (tw-studio-clocks).
 * Two display modes recreated 1:1 from design-reference/studio.html:
 *   .tw-clk--grid   → the "Distributed" 4-node city grid (lines ~487–501)
 *   .tw-clk--status → the hero status line (lines ~476–481)
 * Colours & fonts wired to Elementor GLOBAL colours/fonts via --e-global-*
 * custom properties, with the design tokens as fallbacks, so changing the
 * site's Global Colors/Fonts updates the widget. Per-element font SIZES stay
 * here (globals define family + weight only). The live time is filled by
 * widget-studio-clocks.js; these are the static styles only.
 */

.tw-studio-clocks {
	width: 100%;
}

/* ==========================================================================
   Mode A — city grid
   ========================================================================== */
.tw-clk__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.tw-clk__cell {
	padding: 44px 28px 48px 0;
}

/* First cell flush-left, no divider; the rest carry a hairline left border. */
.tw-clk__cell:not(.is-first) {
	border-left: 1px solid var(--e-global-color-cdc1318, rgba(255, 255, 255, .09));
	padding-left: 28px;
}

/* Offset label — Inter, wide-tracked caps, tan (Label global). */
.tw-clk__tz {
	font-family: var(--e-global-typography-accent-font-family, 'Inter', sans-serif);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--e-global-color-accent, #B18051);
}

/* City — Cormorant 600 (Heading global). */
.tw-clk__city {
	margin-top: 14px;
	font-family: var(--e-global-typography-secondary-font-family, 'Cormorant Garamond', serif);
	font-weight: 600;
	font-size: clamp(1.4rem, 2vw, 1.75rem);
	line-height: 1.1;
	color: var(--e-global-color-secondary, #e9e6df);
}

/* Role — Inter body, muted (Body global). */
.tw-clk__role {
	margin-top: 8px;
	font-family: var(--e-global-typography-text-font-family, 'Inter', sans-serif);
	font-size: .875rem;
	line-height: 1.6;
	color: var(--e-global-color-0c2c23a, #9d9a92);
}

/* Local time — Inter, muted2, tabular figures so digits don't jitter on tick. */
.tw-clk__time {
	margin-top: 18px;
	font-family: var(--e-global-typography-text-font-family, 'Inter', sans-serif);
	font-size: 12px;
	line-height: 1;
	color: var(--e-global-color-eda52f2, #86837c);
	font-variant-numeric: tabular-nums;
}

/* --- Grid responsive: 4 → 2 → 1 columns. Reset the left divider/pad on the
   first cell of each visible row so the rail only sits between columns. --- */
@media (max-width: 1000px) {
	.tw-clk__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.tw-clk__cell:nth-child(2n + 1) {
		border-left: 0;
		padding-left: 0;
	}
}

@media (max-width: 600px) {
	.tw-clk__grid {
		grid-template-columns: 1fr;
	}
	.tw-clk__cell {
		border-left: 0;
		padding-left: 0;
		padding-top: 32px;
		padding-bottom: 32px;
	}
}

/* ==========================================================================
   Mode B — hero status line
   ========================================================================== */
.tw-clk__status {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-end;
	text-align: right;
	font-family: var(--e-global-typography-accent-font-family, 'Inter', sans-serif);
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--e-global-color-eda52f2, #86837c);
	font-variant-numeric: tabular-nums;
}

.tw-clk__online {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-end;
}

.tw-clk__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--e-global-color-accent, #B18051);
	box-shadow: 0 0 10px var(--e-global-color-accent, #B18051);
	animation: tw-clk-blink 2.4s ease infinite;
}

.tw-clk__line {
	white-space: normal;
}

@keyframes tw-clk-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: .25; }
}

/* Reduced motion: the clock keeps updating (it's information) — only the
   decorative dot blink stops. */
@media (prefers-reduced-motion: reduce) {
	.tw-clk__dot {
		animation: none;
	}
}
