/* AstroCalendar® HOME — ASTROS™ под Санди · 0.1.2-dev
 * Бутоните са в графитения стил на ASTROS™ („ПЛАНЕТИ“ / „АСПЕКТИ“),
 * активният режим светва като „NOW“.
 * Пренареждането е само визуално (CSS order) — ASTROS™ не се мести в DOM
 * и iframe-ът му не се презарежда.
 */

/* Ред над календара: бутон | SPACE™ · Небето днес · София | бутон */
.achome-sky-head.achal-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
}

.achal-btn {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	cursor: pointer;
	background: #4a4a4a;
	color: #fff;
	font: 700 15px/1.2 Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .02em;
	border-radius: 6px;
	padding: 10px 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	transition: background-color .15s, color .15s;
	white-space: nowrap;
}
.achal-btn:hover,
.achal-btn:focus-visible { background: #5c5c5c; color: #fff; }
.achal-btn.is-on,
.achal-btn.is-on:hover { background: #d4d4d4; color: #c00000; }
.achal-btn-l { margin-right: auto; }
.achal-btn-r { margin-left: auto; }

/* „↩ Върни подредбата“ — дискретно, вдясно в реда със заглавието на ASTROS™.
 * Показва се само докато картата е под Санди. */
.achal-reset { display: none; }
.achal-reset button {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: #f0f0f0;
	color: #4a4a4a;
	border: 1px solid #cfcfcf;
	font: 700 13px/1.2 Arial, sans-serif;
	border-radius: 6px;
	padding: 7px 12px;
	min-height: 32px;
	white-space: nowrap;
	transition: background-color .15s, color .15s;
}
.achal-reset button:hover,
.achal-reset button:focus-visible { background: #4a4a4a; color: #fff; border-color: #4a4a4a; }

/* ---- Режим „ASTROS™ под Санди“ ---- */
.entry-content.achal-up { display: flex; flex-direction: column; }
.entry-content.achal-up > #achome,
.entry-content.achal-up > .achal-wrap { display: contents; }
.entry-content.achal-up > *,
.entry-content.achal-up #achome > *,
.entry-content.achal-up > .achal-wrap > * { order: 10; }
.entry-content.achal-up #achome > .achome-host { order: 1; margin-bottom: 0; }
.entry-content.achal-up > .achal-wrap > .achal-astros { order: 2; margin: 6px 0 40px; }

/* Бутонът в реда със заглавието (десктоп и таблет) */
.entry-content.achal-up .achal-title-row { position: relative; }
.entry-content.achal-up .achal-reset {
	display: block;
	position: absolute;
	top: 2px;
	right: 10px;
	z-index: 2;
}
/* Заглавието (подравнено вдясно) се отмества наляво, за да има място за бутона */
@media (min-width: 601px) {
	.entry-content.achal-up .achal-title-row > .achal-title-widget { margin-right: 186px !important; }
}

/* Телефон (до 600 px): двата бутона един под друг, между демото и календара */
@media (max-width: 600px) {
	.achome-sky-head.achal-row { padding: 0 4px; }
	/* Телефон: бутонът „Върни подредбата“ е вдясно, точно под заглавието */
	.entry-content.achal-up .achal-reset {
		position: static;
		width: 100%;
		text-align: right;
		margin: 4px 0 0;
	}
	.achal-btn {
		order: -1;
		flex: 1 1 100%;
		margin: 0;
		white-space: normal;
	}
}
