/* Training catalog and course pages (generated by tools/build_training.py) */
.tr-why .box h3 { font-size: 1rem; }
.tr-group { font-size: 1.15rem; color: var(--navy); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tr-group:first-of-type { margin-top: 0; }
.tr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tr-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tr-card:hover { border-color: var(--blue); box-shadow: 0 6px 20px rgba(15,23,42,.07); }
.tr-card.featured { border: 2px solid var(--blue); }
.tr-card .badge { align-self: flex-start; }
.tr-card h3 { margin: 4px 0 0; font-size: 1.05rem; line-height: 1.35; color: var(--navy); }
.tr-card p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.tr-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tr-meta li { font-size: .76rem; font-weight: 600; color: var(--navy); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.tr-go { color: var(--blue); font-weight: 600; font-size: .9rem; }

.tr-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); padding-top: 28px; }
.tr-crumb a:hover { color: var(--blue); }
.tr-head { padding: 28px 0 28px; }
.tr-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.15; color: var(--navy); margin: 14px 0 12px; max-width: 26ch; letter-spacing: -.02em; }
.tr-head .sub { color: var(--muted); max-width: 720px; margin: 0; font-size: 1.05rem; }

.tr-options table { min-width: 0; }
.tr-options th, .tr-options td { text-align: left; }
.tr-options td { font-weight: 600; color: var(--navy); }
.tr-options td:last-child { text-align: right; }

.tr-body { padding-top: 48px; }
.tr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.tr-main h2 { font-size: 1.35rem; color: var(--navy); margin: 36px 0 12px; }
.tr-main h2:first-child { margin-top: 0; }
.tr-main > p { color: var(--text); margin: 0 0 12px; }
.tr-list { margin: 0; padding-left: 20px; }
.tr-list li { margin: 4px 0; }
.tr-small li { font-size: .9rem; color: var(--muted); }
.tr-obj { flex: none; margin-bottom: 0; }
.tr-agenda { list-style: none; counter-reset: ag; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tr-agenda li { counter-increment: ag; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tr-agenda li::before { content: counter(ag, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-weight: 600; color: var(--blue); padding-top: 1px; }
.tr-agenda strong { color: var(--navy); }
.tr-agenda span { color: var(--muted); font-size: .93rem; }

.tr-side { position: sticky; top: 88px; display: grid; gap: 16px; }
.tr-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: .9rem; }
.tr-dl dt { color: var(--muted); }
.tr-dl dd { margin: 0; font-weight: 600; color: var(--navy); }
.tr-print { width: 100%; margin-top: 10px; cursor: pointer; font: inherit; }
.tr-instructor p { margin: 8px 0 12px; }

.tr-private { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.tr-private h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); margin: 0 0 12px; line-height: 1.2; }
.tr-private p { color: var(--muted); margin: 0; }
.tr-private-cta { display: grid; gap: 12px; justify-items: stretch; text-align: center; }

/* Contact page: training request fields (shown with ?topic=training) */
.tr-fields { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 0; }
.tr-fields legend { font-weight: 700; color: var(--navy); padding: 0 6px; font-size: .9rem; }
.tr-fields .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tr-fields[hidden] { display: none; }

@media (max-width: 960px) {
  .tr-grid { grid-template-columns: repeat(2, 1fr); }
  .tr-layout, .tr-private { grid-template-columns: 1fr; }
  .tr-side { position: static; }
}
@media (max-width: 640px) {
  .tr-grid, .tr-fields .row2 { grid-template-columns: 1fr; }
  .tr-options thead { display: none; }
  .tr-options tr, .tr-options td { display: block; }
  .tr-options td { padding: 8px 16px; border: 0; }
  .tr-options td[data-l]::before { content: attr(data-l); display: block; font-size: .74rem; font-weight: 500; color: var(--muted); }
  .tr-options td:last-child { text-align: left; padding-bottom: 16px; }
}

/* "Download overview (PDF)" prints the course page without site chrome */
@media print {
  .nav, .footer, .tr-crumb, .tr-options td:last-child, .tr-options th:last-child, .tr-side .btn, #private, .tr-others, .cta { display: none !important; }
  .tr-layout { grid-template-columns: 1fr 240px; gap: 24px; }
  .tr-side { position: static; }
  .section, .tr-body { padding: 12px 0; }
  .box, .table-wrap { break-inside: avoid; }
  body { font-size: 11pt; }
}

/* Images */
.tr-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px 24px; flex: 1; }
.tr-thumb { margin: 0; aspect-ratio: 16 / 9; background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tr-card:hover .tr-thumb img { transform: scale(1.03); }
.tr-fig { margin: 0; }
.tr-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tr-fig figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.tr-hero-fig { margin-top: 28px; }
.tr-hero-fig img { box-shadow: 0 10px 30px rgba(15,23,42,.08); }
.tr-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tr-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.tr-gallery img { aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.tr-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; margin: 0 0 12px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tr-instructor .tr-avatar { margin-top: 12px; }
@media (max-width: 960px) { .tr-gallery-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tr-gallery, .tr-gallery-3 { grid-template-columns: 1fr; } }
@media print { .tr-gallery, .tr-hero-fig img { break-inside: avoid; } .tr-hero-fig img { max-height: 320px; width: auto; max-width: 100%; box-shadow: none; } }

/* Customer-specific program: click-to-play video and catalog band */
.tr-video { position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 1000px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, #1e3a8a 0%, #0b1220 60%); border: 1px solid #1e293b; }
.tr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tr-video-btn { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; color: #fff; display: grid; place-items: center; font: inherit; }
.tr-video-play, .tr-program-play { width: 84px; height: 84px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 10px rgba(37,99,235,.25); position: relative; transition: transform .15s; }
.tr-video-play::after, .tr-program-play::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.tr-video-btn:hover .tr-video-play { transform: scale(1.06); }
.tr-video-cap { position: absolute; left: 24px; bottom: 20px; text-align: left; display: grid; gap: 4px; }
.tr-video-cap b { font-size: 1.15rem; }
.tr-video-cap small { color: #a8b6cc; }
.tr-program { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 24px 28px; border-radius: 12px; background: var(--ink, #0b1220); color: #fff; border: 1px solid #1e293b; }
.tr-program:hover { border-color: #2563eb; }
.tr-program strong { display: block; font-size: 1.3rem; }
.tr-program-sub { display: block; color: #a8b6cc; margin-top: 4px; }
.tr-program .tr-go { color: #93b4f8; }
.tr-program-play { width: 64px; height: 64px; box-shadow: 0 0 0 8px rgba(37,99,235,.25); }
.tr-program-play::after { left: 26px; top: 20px; border-width: 12px 0 12px 20px; }
.btn-ghost-dark { color: var(--blue); font-weight: 600; text-align: center; padding: 6px; }
.btn-ghost-dark:hover { text-decoration: underline; }
@media (max-width: 640px) { .tr-program { grid-template-columns: 1fr; } .tr-video-cap { left: 14px; bottom: 12px; } .tr-video-play { width: 64px; height: 64px; } .tr-video-play::after { left: 26px; top: 20px; border-width: 12px 0 12px 20px; } }

.tr-thumb img[src$='.svg'], .tr-gallery img[src$='.svg'] { object-position: center; }

/* Customer-specific card: same card, with its own call to action */
.tr-card-cta { border-color: #bfd3fb; }
.tr-card-cta h3 a:hover { color: var(--blue); }
.tr-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }

.tr-cred { margin: 0 0 10px; font-size: .92rem; font-weight: 600; color: var(--navy); }

/* FMEDA tool link box */
.tr-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tr-toolbox { border-color: #bfd3fb; background: linear-gradient(180deg, #f5f8ff, #fff); }
.tr-toolshot { display: block; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tr-toolshot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; transition: transform .3s; }
.tr-toolshot:hover img { transform: scale(1.04); }
.tr-toolbox p { font-size: .9rem; }
