/* Astroview – output styles. Colours and fonts follow the theme; only the drawings have their own colours. */

.astroview {
	--astroview-sky: #0f1d3a;
	--astroview-star: #fff;
	--astroview-line: rgba(160, 190, 255, 0.55);
	--astroview-moon-lit: #f4efd8;
	--astroview-moon-dark: #3b4256;
	--astroview-muted: color-mix(in srgb, currentColor 65%, transparent);
	--astroview-map-text: #c8d4f0;
	margin: 1.5em 0;
}

.astroview-title {
	margin-bottom: 0.5em;
}

.astroview-intro {
	font-weight: 600;
}

.astroview-section {
	margin: 1.25em 0;
}

.astroview-heading {
	margin: 0 0 0.4em;
}

.astroview-tip,
.astroview-footer {
	color: var(--astroview-muted);
	font-size: 0.9em;
}

.astroview-object {
	display: flow-root;
	margin: 0 0 1.25em;
}

.astroview-object-name {
	margin: 0 0 0.4em;
}

.astroview-object p {
	margin: 0;
}

.astroview-tile {
	float: left;
	width: 88px;
	height: 88px;
	margin: 0.25em 1em 0.5em 0;
	border-radius: 8px;
	background: var(--astroview-sky);
}

.astroview-moon-dark {
	fill: var(--astroview-moon-dark);
}

.astroview-moon-lit {
	fill: var(--astroview-moon-lit);
}

@media (max-width: 480px) {
	.astroview-tile {
		width: 64px;
		height: 64px;
	}
}

.astroview-sketch-line {
	fill: none;
	stroke: var(--astroview-line);
	stroke-width: 0.9;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.astroview-sketch-star {
	fill: var(--astroview-star);
}

.astroview-sketch-cloud {
	fill: rgba(220, 230, 255, 0.35);
}

/* Teaser and overview */

.astroview-teaser,
.astroview-overview {
	display: flow-root;
}

.astroview-widget-title {
	margin: 0 0 0.5em;
}

/* In a widget area the theme spaces the widgets. */
.widget_block .astroview-teaser,
.widget_block .astroview-overview {
	margin: 0;
}

.astroview-teaser p,
.astroview-overview p {
	margin: 0 0 0.75em;
}

.astroview-link {
	margin-bottom: 0;
}

.astroview-button {
	display: inline-block;
	padding: 0.55em 1.2em;
	border-radius: 6px;
	background: var(--astroview-sky);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.astroview-button:hover,
.astroview-button:focus {
	background: #1d3366;
	color: #fff;
}

.astroview-overview .astroview-tile {
	width: 56px;
	height: 56px;
	margin: 0 0 0.5em 1em;
	float: right;
}

.astroview-overview .astroview-overview-list {
	list-style: none;
	margin: 0 0 0.75em;
	padding: 0;
}

.astroview-overview .astroview-overview-list li {
	margin: 0.3em 0;
	padding: 0;
}

.astroview-more {
	font-weight: 600;
}

.astroview-more::after {
	content: " →";
}

.astroview-missing {
	padding: 0.75em 1em;
	border-left: 4px solid #dba617;
	background: rgba(219, 166, 23, 0.08);
}

/* Star map */

.astroview-map {
	position: relative;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.astroview-map-small {
	max-width: 320px;
}

.astroview-map-large {
	max-width: 800px;
}

.astroview-map-svg {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 50%;
	font-family: inherit;
}

.astroview-map-frame {
	fill: #0a1428;
}

.astroview-map-sky {
	fill: var(--astroview-sky);
}

.astroview-map-horizon {
	fill: none;
	stroke: #44557d;
	stroke-width: 3;
}

.astroview-map-mw {
	fill: #c8d6ff;
	fill-opacity: 0.08;
	fill-rule: evenodd;
}

.astroview-map-mw-inner {
	fill-opacity: 0.06;
}

.astroview-map-grid {
	fill: none;
	stroke: #5f709a;
	stroke-width: 1.5;
	stroke-dasharray: 6 8;
	opacity: 0.6;
}

.astroview-map-lines {
	fill: none;
	stroke: #7f95c8;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.35;
}

.astroview-map-figure-lines {
	fill: none;
	stroke: var(--astroview-line);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.astroview-map-stars {
	fill: none;
	stroke: var(--astroview-star);
	stroke-linecap: round;
}

.astroview-map-planet circle {
	stroke: var(--astroview-sky);
	stroke-width: 2;
}

.astroview-map-sun circle {
	fill: #ffd75e;
}

.astroview-map-svg text {
	fill: var(--astroview-map-text);
	font-size: 24px;
}

.astroview-map-label-body {
	fill: #fff;
	font-weight: 600;
}

.astroview-map-label {
	font-style: italic;
	paint-order: stroke;
	stroke: var(--astroview-sky);
	stroke-width: 5px;
	stroke-linejoin: round;
}

.astroview-map-label-body {
	font-style: normal;
}

.astroview-map-svg .astroview-map-direction {
	fill: var(--astroview-map-text);
	font-size: 30px;
	font-weight: 700;
}

.astroview-map-svg .astroview-map-grid-label {
	fill: #8d9cc2;
	font-size: 18px;
}

.astroview-map-small .astroview-map-svg text {
	font-size: 36px;
}

.astroview-map-small .astroview-map-svg .astroview-map-direction {
	font-size: 44px;
}

.astroview-map-caption {
	margin-top: 0.5em;
	color: var(--astroview-muted);
	font-size: 0.9em;
	text-align: center;
}

/* Star map: zoom view (assets/js/map-zoom.js) */

.astroview-map-zoomable .astroview-map-svg {
	cursor: zoom-in;
}

.astroview-map-zoom-open,
.astroview-zoom-bar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #44557d;
	border-radius: 20px;
	background: #0f1d3a;
	color: #dfe6f7;
	font: 600 18px/1 sans-serif;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
}

.astroview-map-zoom-open {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	padding: 0;
}

.astroview-map-zoom-open:hover,
.astroview-map-zoom-open:focus-visible,
.astroview-zoom-bar button:hover,
.astroview-zoom-bar button:focus-visible {
	background: #1d3366;
	color: #fff;
}

.astroview-zoom-bar button:disabled {
	opacity: 0.4;
	cursor: default;
}

html.astroview-zoom-active {
	overflow: hidden;
}

dialog.astroview-zoom {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #050a16;
	color: #dfe6f7;
	overflow: hidden;
}

dialog.astroview-zoom[open] {
	display: flex;
	flex-direction: column;
}

dialog.astroview-zoom::backdrop {
	background: #050a16;
}

.astroview-zoom-bar {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 8px;
}

.astroview-zoom-stage {
	flex: 1;
	min-height: 0;
	display: flex;
}

.astroview-zoom .astroview-map-svg {
	width: 100%;
	height: 100%;
	border-radius: 0;
	touch-action: none;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.astroview-zoom-stage.is-dragging .astroview-map-svg {
	cursor: grabbing;
}

/* Lines keep their width on screen while the map is enlarged. */
.astroview-zoom .astroview-map-lines,
.astroview-zoom .astroview-map-figure-lines,
.astroview-zoom .astroview-map-grid,
.astroview-zoom .astroview-map-horizon {
	vector-effect: non-scaling-stroke;
}

.astroview-zoom .astroview-map-lines {
	stroke-width: 1.2px;
}

.astroview-zoom .astroview-map-figure-lines {
	stroke-width: 2.5px;
}

.astroview-zoom .astroview-map-grid {
	stroke-width: 1px;
	stroke-dasharray: 5 7;
}

.astroview-zoom .astroview-map-horizon {
	stroke-width: 2px;
}

.astroview-zoom-caption {
	margin: 0;
	padding: 6px 12px 12px;
	font-size: 0.9rem;
	line-height: 1.4;
	text-align: center;
}

.astroview-zoom-hint {
	color: #8d9cc2;
	font-size: 0.85em;
}

/* Small star map in the teaser and overview: names and caption only in the zoom view. */

.astroview-widget-map .astroview-map {
	max-width: 100%;
	margin: 0 0 0.75em;
}

.astroview-widget-map .astroview-map-label,
.astroview-widget-map .astroview-map-caption {
	display: none;
}

.astroview-widget-map .astroview-map-zoom-open {
	width: 32px;
	min-width: 32px;
	height: 32px;
}
