/*
 * Home CV ledger (2026-11-17). Home page 4134 only, enqueued after home-about-p1p2.css.
 *
 * The credential list becomes a verde panel: the medical registry on top in large
 * Butler numerals, then each credential as a small role line over a large
 * institution line, numbered 01–08 across the three groups. Words and order are
 * the stored ones (lib/home-about-p1p2.php splits markup only).
 *
 * Scope: `html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger`
 * outranks the older proof rules in page-home-atrio.css, page-home-polish.css,
 * page-home-selected-polish.css and home-about-p1p2.css without !important.
 */

html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger {
	--cv-ground: #1e3a2f;
	--cv-ground-2: #152b22;
	--cv-ink: #f1ece7;
	--cv-soft: #a9c2ad;
	--cv-rule: rgba(227, 234, 226, .2);
	--cv-serif: Butler, Georgia, "Times New Roman", serif;
	--cv-sans: Roobert, "Helvetica Neue", Helvetica, Arial, sans-serif;

	counter-reset: jt-cv;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: none;
	grid-auto-flow: row;
	gap: 0 clamp(24px, 3vw, 44px);
	margin: 32px 0 0;
	padding: clamp(28px, 3.4vw, 44px);
	border: 0;
	background: var(--cv-ground);
	color: var(--cv-ink);
}

/* Registry: the CRM and RQE carry the panel. */
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger > .jt-home-45-proof__anchor {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0 0 clamp(22px, 2.6vw, 30px);
	border: 0;
	border-bottom: 1px solid var(--cv-rule);
	background: none;
	color: var(--cv-ink);
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-home-45-proof__anchor small {
	color: var(--cv-soft);
	font: 400 11px/1.4 var(--cv-sans);
	letter-spacing: .18em;
	text-transform: uppercase;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-home-45-proof__num {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px clamp(18px, 2.4vw, 32px);
	color: var(--cv-ink);
	font: 300 clamp(30px, 3.4vw, 44px)/1.05 var(--cv-serif);
	letter-spacing: -.01em;
	font-variant-numeric: lining-nums;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-home-45-proof__num br { display: none; }
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-home-45-proof__num a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
	text-decoration-color: var(--cv-rule);
}

/* Groups. */
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group {
	grid-column: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group:last-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(24px, 3vw, 44px);
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group h3 {
	grid-column: 1 / -1;
	margin: 22px 0 2px;
	padding: 0;
	color: var(--cv-soft);
	font: 400 11px/1.4 var(--cv-sans);
	letter-spacing: .18em;
	text-transform: uppercase;
}

/* One credential: number, role, institution. */
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group > div {
	counter-increment: jt-cv;
	position: relative;
	display: block;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 16px 0 16px 34px;
	border: 0;
	border-bottom: 1px solid var(--cv-rule);
	background: none;
	color: var(--cv-ink);
	font: 400 15px/1.45 var(--cv-sans);
	text-wrap: pretty;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group > div::before {
	content: counter(jt-cv, decimal-leading-zero);
	position: absolute;
	top: 19px;
	left: 0;
	color: var(--cv-soft);
	font: 400 11px/1 var(--cv-sans);
	letter-spacing: .08em;
	font-variant-numeric: tabular-nums;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-cv-role {
	display: block;
	color: var(--cv-soft);
	font: 400 13.5px/1.4 var(--cv-sans);
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-cv-org {
	display: block;
	margin-top: 4px;
	color: var(--cv-ink);
	font: 300 clamp(22px, 2vw, 27px)/1.12 var(--cv-serif);
	letter-spacing: -.005em;
	text-wrap: balance;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-cv-org small {
	color: var(--cv-soft);
	font: 400 13px/1 var(--cv-sans);
	letter-spacing: .02em;
	white-space: nowrap;
}

/* The SBD credential is a link: the whole row answers. */
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-cv-item a {
	display: block;
	color: inherit;
	text-decoration: none;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-cv-item a .jt-cv-org {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	text-decoration-color: var(--cv-rule);
	transition: text-decoration-color .2s cubic-bezier(.16, 1, .3, 1);
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger :is(.jt-cv-item a, .jt-home-45-proof__num a):is(:hover, :focus-visible) .jt-cv-org,
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-home-45-proof__num a:is(:hover, :focus-visible) {
	text-decoration-color: currentColor;
}
html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger a:focus-visible {
	outline: 2px solid var(--cv-ink);
	outline-offset: 4px;
}

/* Phone and narrow tablet: one column, the panel runs edge to edge. */
@media (max-width: 760px) {
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger {
		grid-template-columns: minmax(0, 1fr);
		margin: 8px -24px 0;
		padding: 32px 24px 12px;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group:last-child {
		display: block;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-home-45-proof__num {
		font-size: clamp(30px, 9vw, 38px);
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group h3 {
		margin-top: 26px;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group > div:last-child {
		border-bottom: 0;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group:not(:last-child) > div:last-child {
		border-bottom: 1px solid var(--cv-rule);
	}
}

/* Wide screens: one ruled row per credential, role on the left, institution on the right,
   so no institution name breaks inside the right-hand column. */
@media (min-width: 1100px) {
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger {
		grid-template-columns: minmax(0, 1fr);
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group:last-child {
		display: block;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group > div {
		display: grid;
		grid-template-columns: 34px minmax(0, 210px) minmax(0, 1fr);
		column-gap: 18px;
		align-items: baseline;
		padding: 15px 0;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group > div::before {
		position: static;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group > div > a {
		grid-column: 2 / -1;
		display: grid;
		grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
		column-gap: 18px;
		align-items: baseline;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-cv-org {
		margin-top: 0;
	}
	html body.jt-home-atrio .jt-home-45-doctor .jt-cv-ledger.jt-cv-ledger .jt-ha-cv-group > div:last-child {
		border-bottom: 0;
	}
}
