/* ITI Graduate Highlights – scoped under .itih so theme styles don't leak in. */
.itih { --itih-accent: #1d3f94; --itih-ink: #1b1f2a; --itih-muted: #5a6275; --itih-gap: 20px; --itih-card: 300px; box-sizing: border-box; color: var(--itih-ink); }
.itih *, .itih *::before, .itih *::after { box-sizing: inherit; }
.itih ul { list-style: none; margin: 0; padding: 0; }
.itih-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.itih blockquote.itih-sr { display: block; }

.itih-title { text-align: center; margin: 0 0 16px; }
.itih-more { text-align: center; margin: 16px 0 0; }

/* Card */
.itih-card { position: relative; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); overflow: hidden; display: flex; flex-direction: column; }
.itih-open { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; width: 100%; }
.itih-open img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.itih-open:focus-visible { outline: 3px solid var(--itih-accent); outline-offset: -3px; }
.itih-card-text { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.itih-name { font-size: 16px; color: var(--itih-ink); }
.itih-meta { color: var(--itih-accent); font-weight: 600; }
.itih-job { color: var(--itih-muted); }

/* A-Z page */
.itih-letters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 24px; position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); padding: 10px 0; }
.itih-letter { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 6px; border: 1px solid #c9d1e6; font-weight: 700; text-decoration: none; color: var(--itih-accent); background: #fff; }
.itih-letter:hover, .itih-letter:focus-visible { background: #eef2fb; }
.itih-letter.is-active { background: var(--itih-accent); color: #fff; border-color: var(--itih-accent); }
.itih-letter.is-empty { color: #b3b9c9; border-style: dashed; background: transparent; cursor: default; }
.itih-letter-title { text-align: center; margin: 0 0 16px; font-size: 36px; color: var(--itih-accent); }
.itih-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--itih-gap); }
.itih-az.is-enhanced .itih-letter-section[hidden] { display: none; }
.itih-az:not(.is-enhanced) .itih-letter-section { margin-bottom: 40px; }

/* Slow continuous strip (homepage) */
.itih-ticker { padding: 28px 0; overflow: hidden; }
.itih-ticker-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.itih-ticker-track { display: flex; gap: var(--itih-gap); width: max-content; animation: itih-scroll var(--itih-secs, 70s) linear infinite; will-change: transform; padding: 4px 0 8px; }
.itih-ticker-track .itih-card { width: var(--itih-card); flex: 0 0 auto; }
.itih-ticker:hover .itih-ticker-track, .itih-ticker:focus-within .itih-ticker-track, .itih-ticker.is-paused .itih-ticker-track { animation-play-state: paused; }
/* Move exactly half the track (one full set) plus half a gap so the duplicate set lines up for a seamless loop. */
@keyframes itih-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - (var(--itih-gap) / 2))); } }
@media (prefers-reduced-motion: reduce) {
	.itih-ticker-track { animation: none; width: auto; overflow-x: auto; padding: 4px 16px 12px; scroll-snap-type: x mandatory; }
	.itih-ticker-track .itih-card { scroll-snap-align: start; }
	.itih-ticker-track .itih-card[aria-hidden="true"] { display: none; }
	.itih-ticker-viewport { -webkit-mask-image: none; mask-image: none; overflow: visible; }
}

/* Program slider (interval-based) */
.itih-slider { padding: 28px 0; }
.itih-slider-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.itih-slider-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; flex: 1; scrollbar-width: none; padding: 4px 2px 10px; }
.itih-slider-viewport::-webkit-scrollbar { display: none; }
.itih-slider-viewport:focus-visible { outline: 3px solid var(--itih-accent); outline-offset: 2px; }
.itih-slider-track { display: flex; gap: var(--itih-gap); }
.itih-slider-track .itih-card { flex: 0 0 calc((100% - 2 * var(--itih-gap)) / 3); scroll-snap-align: start; }
.itih-nav { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--itih-accent); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.itih-nav:hover, .itih-nav:focus-visible { filter: brightness(1.15); }
@media (max-width: 900px) { .itih-slider-track .itih-card { flex-basis: calc((100% - var(--itih-gap)) / 2); } }
@media (max-width: 600px) {
	.itih-slider-track .itih-card { flex-basis: 85%; }
	.itih-ticker-track .itih-card { width: 240px; }
	.itih-nav { width: 36px; height: 36px; font-size: 22px; }
}

/* Lightbox */
.itih-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.itih-lightbox::backdrop { background: rgba(8,12,24,.86); }
.itih-lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 8px; }
.itih-lb-figure { margin: 0; max-width: min(92vw, 900px); max-height: 94vh; display: flex; flex-direction: column; align-items: center; }
.itih-lb-img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 6px; background: #111; }
.itih-lb-cap { color: #fff; text-align: center; font-size: 15px; margin-top: 10px; line-height: 1.4; }
.itih-lightbox button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 28px; cursor: pointer; line-height: 1; }
.itih-lightbox button:hover, .itih-lightbox button:focus-visible { background: rgba(255,255,255,.3); }
.itih-lb-close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 600px) { .itih-lb-prev, .itih-lb-next { position: absolute; bottom: 14px; } .itih-lb-prev { left: 14px; } .itih-lb-next { right: 14px; } }

.itih-preview-badge { background: #fff4c2; border: 1px dashed #b58900; color: #5c4a00; padding: 6px 12px; border-radius: 6px; font-size: 13px; text-align: center; margin: 0 auto 12px; max-width: 760px; }
