/* Colours, panels, text fields and buttons come from the Fast theme. */
.ascendant-widget.box {
	width: 100%;
	max-width: 780px;
	margin: 1.5rem auto;
	float: none;
	clear: both;
	text-align: left;
}

.ascendant-widget .ascendant-form { margin: 0; }
.ascendant-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.ascendant-grid label { display: grid; gap: 6px; margin: 0; min-width: 0; }
.ascendant-grid input { box-sizing: border-box; min-width: 0; width: 100%; }
/* Fast's text-field rules do not cover these native input types. */
.ascendant-grid input[type="date"],
.ascendant-grid input[type="time"],
.ascendant-grid input[type="number"] {
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: .375em;
	font: inherit;
	height: 2.75em;
	padding: 0 1em;
}
.ascendant-grid input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ascendant-field-wide { grid-column: 1 / -1; min-width: 0; }
.ascendant-suggestions {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
	max-height: 250px;
	overflow: auto;
	padding: 4px;
}
.ascendant-widget .ascendant-suggestion {
	display: grid;
	gap: 2px;
	height: auto;
	line-height: 1.5;
	padding: 9px 14px;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
}
.ascendant-suggestion__label { font-weight: 600; }
.ascendant-suggestion__meta { font-size: .9em; color: var(--text-muted); }
.ascendant-actions { margin-top: 16px; display: flex; justify-content: center; }
.ascendant-actions button { max-width: 100%; height: auto; min-height: 44px; line-height: 1.5; padding-block: .75em; white-space: normal; }
.ascendant-widget [hidden] { display: none !important; }
.ascendant-message { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--danger); background: var(--bg-alt); }
.ascendant-result { margin-top: 16px; }
.ascendant-result-card { margin: 0; }
.ascendant-result-card h3 { margin: 0 0 8px; }
.ascendant-result-card p { margin: 6px 0; }
.ascendant-horoscopes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ascendant-horoscopes h4 { margin: 0 0 8px; }
.ascendant-horoscopes ul { margin: 0; padding-left: 20px; }
.ascendant-horoscopes li { margin: 5px 0; }
@media (max-width: 700px) {
	.ascendant-grid { grid-template-columns: 1fr; }
}

/* 1.1 - results: big three, wheel, time slider, reading, guide. */
.ascendant-widget { --asc-fire: #d0573a; --asc-earth: #6f8f3a; --asc-air: #c49a1c; --asc-water: #3a73b8; }
.ascendant-el-0 { --asc-el: var(--asc-fire); }
.ascendant-el-1 { --asc-el: var(--asc-earth); }
.ascendant-el-2 { --asc-el: var(--asc-air); }
.ascendant-el-3 { --asc-el: var(--asc-water); }
.ascendant-result { display: grid; gap: 18px; }
.ascendant-panel { border: 1px solid var(--border); border-radius: .5em; padding: clamp(14px, 3vw, 22px); background: var(--bg); min-width: 0; }
.ascendant-panel h3 { margin: 0 0 8px; }
.ascendant-panel h4 { margin: 0 0 6px; }
.ascendant-summary__eyebrow, .ascendant-pick__eyebrow { margin: 0 0 4px; font-size: .8em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.ascendant-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ascendant-tile { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: .5em; text-align: center; border: 1px solid var(--border); border-top: 4px solid var(--asc-el); background: var(--bg-alt); min-width: 0; }
.ascendant-tile__glyph { font-size: 1.9em; line-height: 1.1; color: var(--asc-el); font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif; }
.ascendant-tile strong { font-size: 1.05em; overflow-wrap: anywhere; }
.ascendant-tile__label, .ascendant-tile__deg { font-size: .82em; color: var(--text-muted); }
.ascendant-notes { margin: 14px 0 0; padding: 10px 12px 10px 28px; border-left: 3px solid var(--accent-text); background: var(--bg-alt); font-size: .92em; }
.ascendant-notes li { margin: 4px 0; }
.ascendant-explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ascendant-wheel { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif; }
.ascendant-wheel__rim { fill: var(--bg-alt); stroke: var(--border); }
.ascendant-wheel__sign path { fill: var(--asc-el); fill-opacity: .16; stroke: var(--border); stroke-width: 1; }
.ascendant-wheel__sign text { fill: var(--asc-el); font-size: 17px; pointer-events: none; }
.ascendant-wheel__sign.is-asc path { fill-opacity: .42; }
.ascendant-wheel__sign, .ascendant-wheel__house { cursor: pointer; outline: none; }
.ascendant-wheel__sign:hover path, .ascendant-wheel__sign:focus-visible path { fill-opacity: .55; }
.ascendant-wheel__house path { fill: var(--bg); stroke: var(--border); stroke-width: 1; }
.ascendant-wheel__house:hover path, .ascendant-wheel__house:focus-visible path { fill: var(--bg-alt); }
.ascendant-wheel__house text { fill: var(--text-muted); font: 600 11px/1 sans-serif; pointer-events: none; }
.ascendant-wheel__cusp { stroke: var(--border); stroke-width: 1; }
.ascendant-wheel__core { fill: var(--bg-alt); stroke: var(--border); }
.ascendant-wheel__axis { stroke: var(--text-muted); stroke-width: 1.2; stroke-dasharray: 3 3; }
.ascendant-wheel__axis.is-asc, .ascendant-wheel__axis.is-mc { stroke: var(--accent-text); stroke-width: 2.2; stroke-dasharray: none; }
.ascendant-wheel__axis-label { fill: var(--text); font: 700 10px/1 sans-serif; }
.ascendant-wheel__body circle { fill: var(--bg); stroke: var(--text); stroke-width: 1.2; }
.ascendant-wheel__body text { fill: var(--text); font-size: 14px; }
.ascendant-wheel__body.is-sun circle { stroke: var(--asc-fire); }
.ascendant-wheel__body.is-moon circle { stroke: var(--asc-water); }
.ascendant-pick { min-height: 7em; }
.ascendant-pick h3 { margin: 0 0 6px; }
.ascendant-pick p { margin: 4px 0; }
.ascendant-pick__here { font-weight: 700; }
.ascendant-pick__hint { font-size: .85em; color: var(--text-muted); }
.ascendant-time { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.ascendant-time p { margin: 0 0 10px; font-size: .92em; }
.ascendant-slider__label { display: block; font-weight: 700; margin-bottom: 4px; }
.ascendant-slider__time { font-size: 1.25em; font-variant-numeric: tabular-nums; }
.ascendant-widget .ascendant-slider { -webkit-appearance: auto; appearance: auto; display: block; width: 100%; height: 28px; margin: 4px 0 8px; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; accent-color: var(--accent-text); cursor: pointer; }
.ascendant-strip { display: flex; width: 100%; height: 34px; border-radius: .4em; overflow: hidden; border: 1px solid var(--border); }
.ascendant-widget .ascendant-strip__seg { flex: 0 0 auto; height: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--bg); border-radius: 0; background: var(--asc-el); opacity: .5; color: var(--text); font-size: 14px; line-height: 34px; box-shadow: none; overflow: hidden; cursor: pointer; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif; }
.ascendant-widget .ascendant-strip__seg:hover, .ascendant-widget .ascendant-strip__seg:focus-visible { opacity: .75; }
.ascendant-widget .ascendant-strip__seg.is-current { opacity: 1; outline: 2px solid var(--text); outline-offset: -2px; }
.ascendant-slider__reset { margin-top: 10px; }
.ascendant-reading p { margin: 0 0 10px; }
.ascendant-reading h3 { margin-top: 16px; }
.ascendant-reading h3:first-child { margin-top: 0; }
.ascendant-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 6px 0 4px; }
.ascendant-lists ul { margin: 0; padding-left: 20px; }
.ascendant-disclaimer { font-size: .85em; color: var(--text-muted); margin-top: 14px !important; }
.ascendant-links ul { margin: 0 0 12px; padding-left: 20px; columns: 2; column-gap: 24px; }
.ascendant-links li { margin: 4px 0; break-inside: avoid; }
.ascendant-tech { margin: 8px 0; }
.ascendant-tech summary { cursor: pointer; font-weight: 700; }
.ascendant-tech dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 10px 0 0; }
.ascendant-tech dl > div { display: grid; grid-template-columns: minmax(110px, .9fr) 1.1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); font-size: .9em; }
.ascendant-tech dt { color: var(--text-muted); }
.ascendant-tech dd { margin: 0; overflow-wrap: anywhere; }
.ascendant-share { margin-top: 12px; }
.ascendant-share p { margin: 6px 0 0; font-size: .85em; color: var(--text-muted); }
.ascendant-guide, .ascendant-faq { width: 100%; max-width: 780px; margin: 1.5rem auto; float: none; clear: both; }
.ascendant-guide h3 { margin: 18px 0 6px; }
.ascendant-guide__signs { padding-left: 20px; }
.ascendant-guide__signs li { margin: 6px 0; }
.ascendant-faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.ascendant-faq summary { cursor: pointer; font-weight: 700; }
.ascendant-faq details p { margin: 8px 0 0; }
@media (max-width: 760px) {
	.ascendant-explorer { grid-template-columns: 1fr; }
	.ascendant-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ascendant-lists, .ascendant-tech dl { grid-template-columns: 1fr; }
	.ascendant-links ul { columns: 1; }
}

/* Share card. */
.ascendant-card__body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ascendant-card__preview { aspect-ratio: 1080 / 1350; border: 1px solid var(--border); border-radius: .5em; background: var(--bg-alt); overflow: hidden; }
.ascendant-card__preview img { display: block; width: 100%; height: auto; }
.ascendant-card__controls { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ascendant-card__controls > label { display: grid; gap: 6px; margin: 0; font-weight: 700; }
.ascendant-card__controls select { width: 100%; }
.ascendant-widget .ascendant-card__check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; cursor: pointer; }
/* The theme hides checkboxes behind a label it draws; this one stays native. */
.ascendant-widget .ascendant-card__check input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; display: inline-block; float: none; position: static; opacity: 1; z-index: auto; width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--accent-text); }
.ascendant-card__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.ascendant-card__buttons .button { margin: 0; }
.ascendant-card__buttons a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.ascendant-card__status { margin: 0; font-size: .9em; min-height: 1.4em; }
.ascendant-card__note { margin: 0; font-size: .85em; color: var(--text-muted); }
@media (max-width: 760px) {
	.ascendant-card__body { grid-template-columns: 1fr; }
	.ascendant-card__preview { max-width: 340px; width: 100%; margin: 0 auto; }
}
