/* Apprenticeship page (/apprenticeship/). */
.su-ap-facts { background: #111; color: #fff; border-top: 1px solid #2A2A2A; }
.su-ap-facts__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 30px; padding-bottom: 30px; }
.su-ap-facts__row div { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid #CC0000; padding-left: 14px; }
.su-ap-facts strong { font: 700 34px/1.1 Ubuntu, sans-serif; font-variant-numeric: tabular-nums; }
.su-ap-facts span { color: #CFCFCF; font-size: 14px; }

/* Timeline bar: sticky, fills with scroll, highlights the year in view. */
.su-ap-jump { position: sticky; top: var(--su-hdr, 0px); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--suh-line); }
.su-ap-jump .suh-wrap { position: relative; }
.su-ap-tl { list-style: none; margin: 0; padding: 14px 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.su-ap-tl::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 4px; background: var(--suh-line); border-radius: 4px; }
.su-ap-tl::after { content: ""; position: absolute; left: 12.5%; top: 31px; height: 4px; width: calc(75% * var(--p, 0)); background: #CC0000; border-radius: 4px; transition: width .15s linear; }
.su-ap-tl li { position: relative; text-align: center; }
.su-ap-tl a { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--suh-muted); font-weight: 600; font-size: 14px; }
.su-ap-tl__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid var(--suh-line); display: inline-flex; align-items: center; justify-content: center; font: 700 15px/1 Ubuntu, sans-serif; color: var(--suh-muted); transition: background-color .25s, border-color .25s, color .25s, transform .25s; }
.su-ap-tl__txt small { display: block; font-weight: 500; font-size: 12px; color: #6a6a6a; }
.su-ap-tl a:hover .su-ap-tl__dot { border-color: #CC0000; color: #CC0000; }
.su-ap-tl a.is-done .su-ap-tl__dot { background: #CC0000; border-color: #CC0000; color: #fff; }
.su-ap-tl a.is-active { color: var(--suh-ink); }
.su-ap-tl a.is-active .su-ap-tl__dot { background: #CC0000; border-color: #CC0000; color: #fff; transform: scale(1.18); box-shadow: 0 0 0 5px rgba(204,0,0,.18); }

.su-ap-year { scroll-margin-top: calc(var(--su-hdr, 0px) + 130px); }
.su-ap-year.is-alt { background: var(--suh-bg); }
.su-ap-year__grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.su-ap-year__panel { position: sticky; top: calc(var(--su-hdr, 0px) + 140px); min-height: 280px; background: #161616; border-radius: var(--suh-radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 26px; color: #fff; }
.su-ap-year__panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, rgba(204,0,0,.38) 100%); }
.su-ap-year__mark { position: absolute; top: 22px; left: 26px; line-height: 0; }
.su-ap-year__num { position: relative; font: 700 56px/1 Ubuntu, sans-serif; }
.su-ap-year__hours { position: relative; color: #CFCFCF; font-size: 15px; }
.su-ap-year__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #CC0000; }
.su-ap-year__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.su-ap-year .suh-tag { background: #fff; border: 1px solid var(--suh-line); }
.su-ap-status { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #ECECEC; color: #4A4A4A; }
.su-ap-status.is-open { background: #CC0000; color: #fff; }
.su-ap-start { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #111; color: #fff; }
.suh .su-ap-year__body h2 { margin-bottom: 10px; }
.suh .su-ap-year__sum { color: var(--suh-muted); font-size: 18px; max-width: 720px; }
.suh .su-ap-year__sub { font: 600 14px/1.3 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--suh-muted); margin: 28px 0 14px; }
.suh .su-ap-year__sub small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; margin-left: 8px; color: #6a6a6a; }

.su-ap-topics { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.su-ap-topics li { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px 16px; background: #fff; border: 1px solid var(--suh-line); border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.su-ap-topics li:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.su-ap-t__name { font-weight: 500; }
.su-ap-topics b { flex: none; font-weight: 600; font-size: 13px; color: var(--suh-muted); background: #F1F1F1; border-radius: 999px; padding: 3px 9px; }
.su-ap-t__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--w, 100%); background: linear-gradient(90deg, #CC0000, #FF5A5A); border-radius: 0 4px 0 0; }
.su-js .su-ap-t__bar { width: 0; transition: width .9s cubic-bezier(.2,.7,.2,1); }
.su-js .su-ap-year.is-in .su-ap-t__bar, .su-js details[open] .su-ap-t__bar { width: var(--w, 100%); }

.su-ap-more { margin-top: 4px; }
.su-ap-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 44px; padding: 8px 18px; border: 1px solid var(--suh-line); border-radius: 999px; font-weight: 600; background: #fff; color: var(--suh-ink); margin-bottom: 12px; }
.su-ap-more summary::-webkit-details-marker { display: none; }
.su-ap-more summary::before { content: "+"; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: #CC0000; color: #fff; font-weight: 700; line-height: 1; }
.su-ap-more[open] summary::before { content: "\2212"; }
.su-ap-more summary:hover { border-color: #CC0000; }
.su-ap-more summary:focus-visible { outline: 3px solid #CC0000; outline-offset: 2px; }
.su-ap-more__close { display: none; }
.su-ap-more[open] .su-ap-more__open { display: none; }
.su-ap-more[open] .su-ap-more__close { display: inline; }
.su-ap-more[open] .su-ap-topics { animation: su-ap-fade .35s ease; }
@keyframes su-ap-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.suh .su-ap-note { color: var(--suh-muted); font-size: 14px; margin: 12px 0 20px; }
.su-ap-soon { color: var(--suh-muted); font-style: italic; }

/* Reveal on scroll (only when JS runs). */
.su-js .su-ap-year__panel, .su-js .su-ap-year__body { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.su-js .su-ap-year.is-in .su-ap-year__panel, .su-js .su-ap-year.is-in .su-ap-year__body { opacity: 1; transform: none; }
.su-js .su-ap-year.is-in .su-ap-year__body { transition-delay: .1s; }

@media (max-width: 900px) {
	.su-ap-year__grid { grid-template-columns: 1fr; gap: 24px; }
	.su-ap-year__panel { position: relative; top: 0; min-height: 150px; }
	.su-ap-facts__row { grid-template-columns: repeat(2, 1fr); }
	.su-ap-topics { grid-template-columns: 1fr; }
	.su-ap-tl__txt small { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
	.su-js .su-ap-year__panel, .su-js .su-ap-year__body { opacity: 1; transform: none; transition: none; }
	.su-js .su-ap-t__bar { width: var(--w, 100%); transition: none; }
	.su-ap-topics li, .su-ap-more[open] .su-ap-topics, .su-ap-tl__dot { transition: none; animation: none; }
}
