/* Giovani: same OSM palette as Talent, with separate layouts for the hub and course pages. */
.youth-page {
  --youth-ink: #071b34;
  --youth-link: #8d174d;
  --youth-soft: #f1f4f7;
  --youth-line: #ced7e1;
}
.youth-page .inline-link,
.youth-title-link { color: var(--youth-link); }
.youth-page .inline-link:hover,
.youth-title-link:hover { color: #651038; }
.youth-title-link { text-decoration: underline; text-underline-offset: 5px; }
.youth-index { border-block: 1px solid var(--youth-line); background: var(--youth-soft); }
.youth-index .container { display: flex; flex-wrap: wrap; gap: 0 30px; padding-block: 10px; }
.youth-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.youth-index a:hover { color: var(--youth-link); }
.youth-section-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(34px,6vw,88px); align-items: start; }
.youth-section-grid > * { min-width: 0; }
.youth-program { background: var(--youth-soft); }
.youth-program p, .youth-format p, .youth-hub-heading p { max-width: 62ch; }
.youth-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 32px; }
.youth-topics article { padding-top: 20px; border-top: 1px solid #9eaec1; }
.youth-topics h3, .youth-map h3 { margin: 0 0 10px; }
.youth-topics p, .youth-map p { margin: 0; }
.youth-page--edu-personal-growth .youth-topics { grid-template-columns: 1fr; }
.youth-facts { margin: 0; }
.youth-facts div { padding: 16px 0; border-bottom: 1px solid var(--youth-line); }
.youth-facts div:first-child { padding-top: 0; }
.youth-facts dt { font-weight: 750; margin-bottom: 7px; }
.youth-facts dd { margin: 0; line-height: 1.6; }
.youth-map { margin: 0; padding: 0; list-style: none; border-left: 2px solid #b6c3d4; }
.youth-map li { padding: 4px 0 24px 24px; }
.youth-map li:last-child { padding-bottom: 0; }
.youth-road-band { background: var(--youth-ink); color: white; }
.youth-road-band h2 { color: white; }
.youth-page .youth-road-band .inline-link,
.youth-page .youth-road-band .inline-link:hover { color: #e1f374; }
.youth-page .youth-road-band a:focus-visible { outline-color: #e1f374; }
.youth-road-band p { margin-top: 0; max-width: 54ch; }
.youth-hub-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: end; margin-bottom: 28px; }
.youth-hub-heading h2 { margin: 0; }
.youth-hub-heading p { margin: 0; }
.youth-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.youth-card { min-width: 0; border-top: 1px solid var(--youth-line); }
.youth-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.youth-card > div { padding: 18px 0 0; }
.youth-card h3 { margin: 0 0 10px; }
.youth-card p { margin: 0 0 12px; }
.youth-hub-section--feature { border-top: 1px solid var(--youth-line); }
.youth-hub-section--feature .youth-cards { grid-template-columns: 1fr; }
.youth-hub-section--feature .youth-card { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,5vw,68px); align-items: center; border: 0; }
.youth-hub-section--feature .youth-card > div { padding: 0; }
.youth-hub-section--feature .youth-card h3 { font-size: clamp(1.35rem,2.4vw,1.8rem); }
.youth-community { background: #f3f7df; }
.youth-community .product-actions { margin-top: 0; }
.youth-resource-list { list-style: none; margin: 0; padding: 0; }
.youth-resource-list li + li { border-top: 1px solid var(--youth-line); margin-top: 14px; padding-top: 14px; }
.youth-resource-list a { display: flex; align-items: center; gap: 18px; color: var(--youth-link); text-decoration: underline; text-underline-offset: 4px; }
.youth-resource-list a:hover { color: #651038; }
.youth-resource-list img { flex: none; width: 48px; height: 68px; object-fit: cover; border: 1px solid var(--youth-line); }
.youth-resource-list small { display: inline-block; margin-left: 5px; color: var(--youth-ink); font-size: .75rem; }
.youth-closing { border-top: 1px solid var(--youth-line); }
.youth-closing__inner { display: flex; align-items: center; gap: 24px 45px; justify-content: space-between; }
.youth-closing__inner p { margin: 0; max-width: 64ch; }
.youth-closing__inner .button { flex: none; }
.youth-back { padding-bottom: 32px; margin-top: -28px; }
@media (max-width: 800px) {
  .youth-topics { gap: 24px; }
  .youth-cards { gap: 20px; }
  .youth-hub-heading { gap: 24px; }
}
@media (max-width: 760px) {
  .youth-section-grid, .youth-hub-heading { grid-template-columns: 1fr; gap: 22px; }
  .youth-hub-section--feature .youth-card { grid-template-columns: 1fr; }
  .youth-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .youth-closing__inner { display: grid; justify-items: start; }
  .youth-back { margin-top: -15px; }
}
@media (max-width: 520px) {
  .youth-topics, .youth-cards { grid-template-columns: 1fr; }
  .youth-index .container { gap: 0 20px; }
  .youth-card img { aspect-ratio: 16 / 10; }
}

/* Use the same opening layout, palette and controls as the other departments. */
.talent-landing.youth-page { padding-top: 0; background: var(--paper); }
.youth-page .youth-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.85rem, 6.6vw, 6.5rem);
  line-height: .96;
  overflow-wrap: anywhere;
}
.youth-hero--text { min-height: 500px; }
.youth-page .page-hero .inline-link,
.youth-page .page-hero .inline-link:hover { color: var(--page-accent-on-dark); }
.youth-page .page-hero a:focus-visible { outline-color: var(--page-accent-on-dark); }
.youth-page .page-hero .button,
.youth-page .youth-closing .button { border-radius: 999px; }
.youth-page .youth-closing .button { background: var(--page-accent); color: var(--page-ink); }
.youth-page .youth-closing .button:hover { filter: brightness(.93); }
.youth-page .youth-closing { background: var(--page-soft); }
.youth-road-band .youth-section-grid { align-items: center; }
.youth-road-figure { margin: 0; }
.youth-road-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.youth-road-figure figcaption { margin-top: 8px; }
.youth-finance { background: var(--page-soft); }
.youth-finance .youth-card img { aspect-ratio: 1; }
.youth-card a:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .youth-card img { transition: transform .2s ease; }
  .youth-card:has(a:hover) img { transform: translateY(-4px); }
}
@media (max-width: 740px) {
  .youth-page .youth-hero { min-height: 620px; padding-bottom: 58px; }
  .youth-page .youth-hero--text { min-height: 0; }
}

.youth-card img.youth-card__art { object-fit: contain; background: #f6f3ef; }
