/**
 * TDS Site Layer: Pillars
 * Scope:
 * - shared pillar section rhythm
 * - shared ledger / registry structure
 * - shared intro and narrative spacing
 * - shared cross-pillar institutional surface helpers
 */

/* =========================================
   Shared Pillar Section Rhythm
========================================= */

.uh-pillar-section {
	padding: 5rem 0;
	position: relative;
}

.uh-pillar-section--alt {
	background-color: var(--tds-surface-soft);
	border-top: 1px solid var(--tds-border);
	border-bottom: 1px solid var(--tds-border);
}

.uh-pillar-section[id] {
	scroll-margin-top: calc(var(--tds-header-stack-h) + var(--tds-space-md));
}

.uh-pillar-section__header {
	max-width: var(--tds-reading-measure);
	margin-bottom: var(--tds-space-04);
}

.uh-pillar-section__label {
	margin-bottom: var(--tds-space-03);
}

.uh-pillar-section__title {
	max-width: 22ch;
	margin-bottom: var(--tds-space-03);
}

.uh-pillar-section__lead {
	max-width: var(--tds-reading-measure);
}

.uh-inline-note {
	padding-top: 1.5rem;
	border-top: 1px solid var(--tds-border);
}

/* =========================================
   Ledger / Registry
========================================= */

.uh-ledger-head {
	flex: 1 1 100%;
	padding: 1.5rem 2rem;
	background: #fff;
	border-right: 1px solid var(--tds-border);
	border-bottom: 1px solid var(--tds-border);
}

.uh-ledger-head h3 {
	margin-bottom: 0;
	font-size: var(--tds-type-size-body);
	font-weight: var(--tds-weight-semibold);
}

.uh-registry-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.uh-registry-table th {
	padding: 1.25rem 1.5rem;
	border-bottom: 2px solid var(--tds-brand);
	font-family: var(--tds-font-system);
	font-size: var(--tds-type-size-caption);
	font-weight: var(--tds-weight-medium);
	letter-spacing: var(--tds-type-track-label);
	text-transform: uppercase;
	color: var(--tds-text-muted);
}

.uh-registry-table td {
	padding: 1.5rem;
	border-bottom: 1px solid var(--tds-border);
	vertical-align: top;
}

.uh-registry-table td:last-child,
.uh-registry-table th:last-child {
	text-align: right;
}

.uh-registry-table tbody tr:hover {
	background: var(--tds-surface-soft);
}

/* =========================================
   Shared List / Surface Helpers
========================================= */

.uh-list-tight {
	margin-bottom: 0;
	padding-left: 0;
	list-style: none;
}

.uh-list-tight li {
	position: relative;
	margin-bottom: 0.7rem;
	padding-left: 1rem;
}

.uh-list-tight li::before {
	content: '';
	position: absolute;
	top: 0.7rem;
	left: 0;
	width: 0.35rem;
	height: 1px;
	background: var(--tds-brand);
}

.uh-list-tight li:last-child {
	margin-bottom: 0;
}

.uh-status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.28rem 0.65rem;
	font-size: var(--tds-type-size-caption);
	font-weight: var(--tds-weight-medium);
	letter-spacing: var(--tds-type-track-label);
	text-transform: uppercase;
	border-radius: 0.35rem;
	border: 1px solid transparent;
}

.uh-status-pill--open {
	background: #f0fdf4;
	color: #166534;
	border-color: #bbf7d0;
}

.uh-faq-item summary::-webkit-details-marker {
	display: none;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 991.98px) {
	.uh-pillar-section {
		padding: 4rem 0;
	}

}

@media (max-width: 767.98px) {
	.uh-pillar-section {
		padding: 3.5rem 0;
	}

	.uh-ledger-head,
	.uh-registry-table th,
	.uh-registry-table td {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}
