/*
 * Auroinfo Shopify Themes - additive styles for the 21 October 2026 documentation update.
 *
 * Loaded after the approved stylesheet and changes none of it. Adds only what the new
 * settings-reference tables, the evidence legend and the legacy anchor aliases need. No new
 * colours, fonts or spacing scale: every value below reuses the existing custom properties.
 */

/* Legacy deep links. A zero-height anchor keeps every old /ritual/docs/#... URL working
   without duplicating an id or shifting the layout. */
.ast-page .ast-alias {
	display: block;
	height: 0;
	overflow: hidden;
	scroll-margin-top: 2rem;
}

/* Evidence legend: source-verified, native-tested, pending. */
.ast-page .ast-evidence {
	margin: 1.25rem 0 0;
	display: grid;
	gap: 0.85rem;
}

.ast-page .ast-evidence__row {
	padding-left: 0.9rem;
	border-left: 3px solid var(--ast-rule);
}

.ast-page .ast-evidence__term {
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ast-ink);
}

.ast-page .ast-evidence__def {
	margin: 0.2rem 0 0;
	color: var(--ast-ink-soft);
	font-size: 0.97rem;
}

/* Documentation head: reference and support buttons, matching .ast-lede__actions. */
.ast-page .ast-dochead__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.25rem 0 0.75rem;
}

/* Sidebar cross-links to the other theme's documentation. */
.ast-page .ast-docside__related {
	margin-top: 1.25rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--ast-rule-soft);
	flex-shrink: 0;
}

.ast-page .ast-docside__relatedtitle {
	margin: 0;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ast-ink-faint);
}

.ast-page .ast-docside__relatedlist {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
}

.ast-page .ast-docside__relatedlist a {
	display: flex;
	align-items: center;
	min-height: var(--ast-tap);
	font-size: 0.95rem;
	color: var(--ast-ink);
}

.ast-page .ast-docside__relatedlist a:hover {
	color: var(--ast-blue-dark);
}

/* Settings reference. Tables need the full column, so the reading measure is released here
   only. */
.ast-page .ast-doc__body--wide {
	max-width: none;
}

.ast-page .ast-doccontent--reference .ast-doc__body > p {
	max-width: 42rem;
}

.ast-page .ast-ref__heading {
	font-family: var(--ast-serif);
	font-weight: 600;
	line-height: 1.2;
	font-size: 1.05rem;
	margin: 1.75rem 0 0.5rem;
	scroll-margin-top: 1.5rem;
}

.ast-page h4.ast-ref__heading,
.ast-page h5.ast-ref__heading {
	font-size: 0.97rem;
	letter-spacing: 0.02em;
}

/* Keep min-content table widths inside their own scroll regions, not the page grid. */
.ast-page .ast-doclayout > * {
	min-width: 0;
}

/* The supplied reference already marks each overflow container as a focusable region; these
   styles keep that affordance visible instead of replacing it. */
.ast-page .table-scroll {
	overflow-x: auto;
	margin: 0.75rem 0 1.25rem;
	border: 1px solid var(--ast-rule);
	background: #fff;
}

.ast-page .table-scroll:focus-visible {
	outline: 3px solid var(--ast-blue);
	outline-offset: 2px;
}

.ast-page .table-scroll table {
	border-collapse: collapse;
	width: 100%;
	min-width: 38rem;
	font-size: 0.95rem;
}

.ast-page .ast-ref__caption {
	caption-side: top;
	text-align: left;
	padding: 0.7rem 0.85rem;
	background: var(--ast-paper-2);
	border-bottom: 1px solid var(--ast-rule);
	font-size: 0.85rem;
	color: var(--ast-ink-faint);
}

.ast-page .table-scroll th,
.ast-page .table-scroll td {
	text-align: left;
	vertical-align: top;
	padding: 0.65rem 0.85rem;
	border-top: 1px solid var(--ast-rule-soft);
}

.ast-page .table-scroll thead th {
	background: var(--ast-paper-3);
	border-top: 0;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ast-ink);
}

.ast-page .table-scroll tbody th[scope="row"] {
	font-weight: 600;
}

.ast-page .ast-doccontent--reference pre {
    max-width: 100%;
    overflow: auto;
    padding: 0.75rem;
    background: var(--ast-paper-2);
}

.ast-page .ast-doccontent--reference details {
	margin: 0.75rem 0 1.25rem;
	border: 1px solid var(--ast-rule);
	background: var(--ast-paper-2);
	padding: 0 0.85rem;
}

.ast-page .ast-doccontent--reference summary {
	cursor: pointer;
	min-height: var(--ast-tap);
	display: flex;
	align-items: center;
	font-size: 0.9rem;
	color: var(--ast-ink);
}

.ast-page .ast-doccontent--reference pre {
	overflow-x: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-family: var(--ast-mono);
	font-size: 0.85rem;
	margin: 0 0 0.85rem;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid var(--ast-rule-soft);
}

/* Release notes: the historical entry must not read as the current build. */
.ast-page .ast-release--historical {
	background: var(--ast-paper-2);
	border-style: dashed;
}

.ast-page .ast-release + .ast-release {
	margin-top: 1.5rem;
}

/* Portfolio cards carry two real projects now; keep both columns equal on wide screens. */
@media (min-width: 960px) {
	.ast-page--index .ast-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ast-page--index .ast-card {
		display: block;
	}

	.ast-page--index .ast-card__title {
		font-size: clamp(2rem, 3.5vw, 2.75rem);
	}
}
