/* Hero Layout: Index (3.3.9, CUSTOM-TEMPLATE.md D8). A book's contents page: the title block beside a ruled, numbered
   list of links. Restyle with Branding (colors, fonts) and a site's css/screen.css; --ct6-accent is the one accent. */
.ct2-hero-index { --ct6-accent: var(--color-main); }
.ct2-hero-index.is-dark, .ct2-hero-index.ct2-hp-main { --ct6-accent: currentColor; }
.ct2-hero-index.is-full:not(.cc-fit) { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box; }
.ct2-hero-index .ct6-ix-wrap { padding-bottom: clamp(56px, 7vw, 120px); }

.ct6-ix { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 120px); align-items: end; }
.ct6-ix--empty { grid-template-columns: minmax(0, 1fr); }
.ct6-ix-copy, .ct6-ix-nav { min-width: 0; }
.ct6-ix-copy .ct2-hero-sentence { max-width: 30em; }
.ct6-ix-note-editor { margin: 24px 0 0; font-size: 15px; opacity: .75; }

.ct6-ix-heading { margin: 0 0 18px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; opacity: .75; }
.ct6-ix-list { list-style: none; margin: 0; padding: 0; }
.ct6-ix-item { position: relative; margin: 0; padding: 0; list-style: none; }
.ct6-ix-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: color-mix(in srgb, currentColor 22%, transparent); transform-origin: left; }
.ct6-ix-item:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.ct6-ix-link { display: flex; align-items: baseline; padding: clamp(16px, 1.6vw, 24px) 0; color: inherit !important; text-decoration: none !important; }
.ct6-ix-num { flex: none; width: 3.2em; font-family: var(--font-body); font-size: 14px; font-variant-numeric: tabular-nums; opacity: .6; }
.ct6-ix-label { font-family: var(--font-headlines, var(--font-titles)); font-size: clamp(22px, 2vw, 34px); line-height: 1.15; min-width: 0; transition: color .2s; }
.ct6-ix-leader { flex: 1 1 auto; min-width: 24px; margin: 0 14px .35em; border-bottom: 1px dotted currentColor; opacity: .35; }
.ct6-ix-note { flex: none; font-family: var(--font-body); font-size: 15px; opacity: .75; white-space: nowrap; }
.ct6-ix-arrow { flex: none; margin-left: 14px; font-size: 18px; line-height: 1; }
a.ct6-ix-link:hover .ct6-ix-label, a.ct6-ix-link:focus-visible .ct6-ix-label { color: var(--ct6-accent); }
a.ct6-ix-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ct6-ix-item.is-current .ct6-ix-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }

@media (prefers-reduced-motion: no-preference) {
	.ct6-ix-arrow { transition: transform .25s cubic-bezier(.2, .7, 0, 1); }
	a.ct6-ix-link:hover .ct6-ix-arrow, a.ct6-ix-link:focus-visible .ct6-ix-arrow { transform: translateX(6px); }
	/* The one motion moment: the row rules draw left to right in a stagger. Text is never hidden. */
	.ct6-ix-item::before { transform: scaleX(0); animation: ct6-ix-rule .7s cubic-bezier(.2, .7, 0, 1) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
}
@keyframes ct6-ix-rule { to { transform: scaleX(1); } }

@media (max-width: 1024px) {
	.ct6-ix { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; }
}
@media (max-width: 900px) {
	.ct6-ix { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 767px) {
	.ct6-ix-link { flex-wrap: wrap; }
	.ct6-ix-label { flex: 1 1 0; }
	.ct6-ix-leader { display: none; }
	.ct6-ix-arrow { order: 3; margin-left: auto; }
	.ct6-ix-note { order: 4; flex-basis: 100%; padding-left: 3.2em; white-space: normal; box-sizing: border-box; margin-top: 4px; }
}
