/* Astro Sun (SOHO Live) — front-end styles */

.astrosun {
	--as-bg-1: #160d06;
	--as-bg-2: #0a0805;
	--as-fg: #fff3e6;
	--as-muted: #c9b39a;
	--as-accent: #ffd9a8;
	--as-border: rgba(255, 220, 180, 0.12);
	--as-glow: #ff7a3c;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 440px;
	margin: 0 auto;
	padding: 28px 26px 22px;
	border-radius: 20px;
	background: radial-gradient(120% 120% at 50% 0%, var(--as-bg-1) 0%, var(--as-bg-2) 72%);
	color: var(--as-fg);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.45;
	text-align: center;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.astrosun * {
	box-sizing: border-box;
}

.astrosun--light {
	--as-bg-1: #fbf3ea;
	--as-bg-2: #f1e6d8;
	--as-fg: #2a1d10;
	--as-muted: #7a6651;
	--as-accent: #9a5a1f;
	--as-border: rgba(80, 50, 20, 0.12);
	box-shadow: 0 14px 36px rgba(120, 80, 40, 0.18);
}

.astrosun .astrosun__visual {
	position: relative;
	flex: 0 0 auto;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	box-shadow:
		0 0 0 1px var(--as-border),
		0 0 38px -6px var(--as-glow);
}

.astrosun .astrosun__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	max-width: none;
	transition: opacity 0.35s ease;
}

.astrosun .astrosun__img.is-loading {
	opacity: 0.35;
}

.astrosun .astrosun__caption {
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.35;
	color: var(--as-muted);
	margin: 0;
	text-wrap: balance;
}

/* Wavelength switcher */
.astrosun .astrosun__switcher {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	width: 100%;
}

.astrosun .astrosun__btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	color: var(--as-muted);
	padding: 7px 10px;
	margin: 0;
	border: 1px solid var(--as-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.astrosun--light .astrosun__btn {
	background: rgba(255, 255, 255, 0.5);
}

.astrosun .astrosun__btn:hover,
.astrosun .astrosun__btn:focus-visible {
	color: var(--as-fg);
	border-color: var(--as-glow);
	outline: none;
}

.astrosun .astrosun__btn.is-active {
	color: #1a1008;
	background: var(--as-glow);
	border-color: var(--as-glow);
}

/* Data panel — full-width rows, high specificity to beat theme widget styles */
.astrosun .astrosun__data {
	width: 100%;
}

.astrosun .astrosun__stats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
	border-top: 1px solid var(--as-border);
}

.astrosun .astrosun__stats li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 18px;
	margin: 0;
	padding: 10px 2px;
	border-bottom: 1px solid var(--as-border);
	list-style: none;
	background: none;
	text-indent: 0;
}

.astrosun .astrosun__stats li::before,
.astrosun .astrosun__stats li::marker {
	content: none;
}

.astrosun .astrosun__stats li span {
	flex: 0 1 auto;
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	line-height: 1.3;
	color: var(--as-muted);
	text-align: left;
}

.astrosun .astrosun__stats li b {
	flex: 0 0 auto;
	font-size: 1.02rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--as-accent);
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* Solar activity readout */
.astrosun .astrosun__activity {
	width: 100%;
}

.astrosun .astrosun__activity-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 2px 0 6px;
}

.astrosun .astrosun__activity-head span {
	font-size: 0.74rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--as-accent);
}

.astrosun .astrosun__activity-head small {
	font-size: 0.66rem;
	font-weight: 500;
	color: var(--as-muted);
	opacity: 0.8;
	white-space: nowrap;
}

.astrosun .astrosun__credit {
	font-size: 0.66rem;
	letter-spacing: 0.02em;
	color: var(--as-muted);
	opacity: 0.75;
	margin: 0;
}
