/**
 * Typography — design turn 5, artboard 5a/5b.
 * Palette from admin-tokens.css, so this screen follows light/dark.
 */

.ag-type {
	font-family: var(--ag-sans);
	color: var(--ag-text);
	max-width: 1200px;
}

.ag-type__lede {
	max-width: 80ch;
	margin: 0 0 20px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ag-text-soft);
}

.ag-type__lede strong { color: var(--ag-text); font-weight: 600; }

.ag-type__panel,
.ag-type__role,
.ag-type__shared {
	background: var(--ag-bg);
	border: 1px solid var(--ag-border);
	border-radius: 3px;
	overflow: hidden;
}

.ag-type__bar {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 16px;
	background: var(--ag-bg-sunk);
	border-bottom: 1px solid var(--ag-rule);
}

.ag-type__label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--ag-text-faint);
}

.ag-type__bar-note { font-size: 10.5px; color: var(--ag-text-mute); }

/* ─── the two roles ───────────────────────────────────────────────────── */

.ag-type__roles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

@media (max-width: 900px) {
	.ag-type__roles { grid-template-columns: minmax(0, 1fr); }
}

/* The specimen carries the real stack, so it shows the font rather than
   describing it. Inline font-family is the point of the element. */
.ag-type__specimen {
	padding: 18px 16px 16px;
	border-bottom: 1px solid var(--ag-rule-soft);
}

.ag-type__specimen-big {
	font-size: 25px;
	line-height: 1.25;
	color: var(--ag-text);
}

.ag-type__specimen-body {
	font-size: 13px;
	line-height: 1.6;
	color: var(--ag-text-soft);
	margin-top: 8px;
}

.ag-type__specimen-glyphs {
	font-size: 11.5px;
	color: var(--ag-text-mute);
	margin-top: 10px;
	overflow-wrap: anywhere;
}

.ag-type__resolved {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--ag-rule-soft);
}

.ag-type__resolved-value {
	font-family: var(--ag-mono);
	font-size: 11.5px;
	color: var(--ag-text);
	margin-top: 3px;
	overflow-wrap: anywhere;
}

.ag-type__claims { padding: 12px 16px 16px; }

.ag-type__claims-head {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ag-text-faint);
	margin-bottom: 10px;
}

.ag-type__claim {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 8px 0;
	border-top: 1px solid var(--ag-rule-soft);
}

.ag-type__claim:first-of-type { border-top: 0; }

.ag-type__swatch {
	display: inline-block;
	width: 9px;
	height: 9px;
	flex: none;
	margin-top: 4px;
	background: var(--ag-text);
}

/* Not claimed: the variable exists, this role just does not own it. */
.ag-type__swatch--off { background: none; border: 1px solid var(--ag-border); }

.ag-type__claim-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ag-text);
}

.ag-type__claim-label code,
.ag-type__shared code {
	font-family: var(--ag-mono);
	font-size: 11px;
	font-weight: 400;
	color: var(--ag-text-mute);
	margin-left: 6px;
}

.ag-type__claim-note {
	font-size: 11.5px;
	line-height: 1.55;
	color: var(--ag-text-soft);
	margin: 4px 0 0;
}

/* ─── the shared weight variable ──────────────────────────────────────── */

.ag-type__shared {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 0;
	margin-bottom: 18px;
}

@media (max-width: 900px) {
	.ag-type__shared { grid-template-columns: minmax(0, 1fr); }
}

.ag-type__shared-main { padding: 14px 16px 16px; }

.ag-type__shared-value {
	padding: 14px 16px 16px;
	background: var(--ag-bg-sunk);
	border-left: 1px solid var(--ag-rule);
}

.ag-type__resolves-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ag-text-faint);
}

.ag-type__resolves {
	font-family: var(--ag-mono);
	font-size: 26px;
	font-weight: 500;
	color: var(--ag-text);
	margin-top: 4px;
	font-variant-numeric: tabular-nums;
}

.ag-type__resolves-from {
	font-size: 11px;
	line-height: 1.5;
	color: var(--ag-text-mute);
	margin-top: 5px;
}

/* ─── the library ─────────────────────────────────────────────────────── */

.ag-type__family {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px;
	gap: 16px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--ag-rule-soft);
}

.ag-type__family-name { font-size: 13.5px; font-weight: 600; color: var(--ag-text); }

.ag-type__family-meta {
	font-family: var(--ag-mono);
	font-size: 10.5px;
	color: var(--ag-text-mute);
	margin-top: 4px;
}

/* Files no browser will ever request — dead weight, not an error. */
.ag-type__family-flag {
	margin-top: 8px;
	padding-left: 9px;
	border-left: 2px solid var(--ag-warn-rule);
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--ag-warn);
}

.ag-type__family-role-value {
	font-size: 12.5px;
	color: var(--ag-text);
	margin-top: 3px;
}

.ag-type__empty {
	padding: 16px;
	font-size: 13px;
	color: var(--ag-text-soft);
}

.ag-type__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 13px 16px 15px;
	background: var(--ag-bg-sunk);
}

.ag-type__btn {
	font-family: var(--ag-sans);
	font-size: 12px;
	padding: 8px 12px;
	border: 1px solid var(--ag-border);
	background: var(--ag-bg);
	color: var(--ag-text);
	border-radius: 2px;
	text-decoration: none;
}

.ag-type__btn:hover { border-color: var(--ag-text-mute); color: var(--ag-text); }
.ag-type__btn:focus-visible { outline: 2px solid #2271b1; outline-offset: 1px; }

.ag-type__actions-note { font-size: 11.5px; color: var(--ag-text-mute); }
