/**
 * Government digital presence standards — typography usage, tables, CTAs, contrast.
 */

/* --- Body: left-aligned; no all-caps on long copy --- */
#main-content :is(p, li, dd, blockquote, .entry-content, .tcl-inner-hero__intro, .eoi-page-hero__intro),
.site-main :is(p, li, dd, blockquote, .entry-content) {
	text-align: start;
	text-transform: none;
}

/* Short labels only (badges, compact CTAs) may use uppercase */
.section-badge,
.tcl-section-head .section-badge,
.btn-compact,
.tcl-cta {
	text-transform: uppercase;
}

/* --- Tables: center headers, left text, right numbers --- */
#main-content table thead th,
.site-main table thead th,
.eoi-table th {
	text-align: center;
	vertical-align: middle;
}

#main-content table tbody td,
.site-main table tbody td,
.eoi-table td {
	text-align: start;
	vertical-align: middle;
}

#main-content table :is(td.text-end, th.text-end, .numeric, .num-cell),
.site-main table :is(td.text-end, th.text-end, .numeric, .num-cell),
#main-content table td[data-label*='S.No'],
#main-content table td[data-label*='क्रम'],
#main-content table td[data-label*='Date'],
#main-content table td[data-label*='दिनांक'],
#main-content table td[data-label*='No'],
#main-content table td[data-label*='संख्या'] {
	text-align: end;
}

/* --- Document CTAs: compact rules live in common-buttons.css --- */

/* --- Clickable hover feedback --- */
#main-content a:not(.btn):not(.btn-compact):hover,
.site-main a:not(.btn):not(.btn-compact):hover,
body:not(:has(.tcl-page-hero)) .breadcrumb-list a:hover,
.breadcrumb-container .breadcrumb-list a:hover,
.tcl-style-header a:hover {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

body:not(:has(.tcl-page-hero)) .breadcrumb-list a:focus-visible,
.breadcrumb-container .breadcrumb-list a:focus-visible,
#main-content a:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* Light surfaces: dark text only */
.tcl-inner-page,
.eoi-page,
.codes-policies-page,
.annual-reports-page {
	color: var(--text-on-light);
}
