/* Our training standards. Builds on about.css. */

/* Numbers band. */
.numbers { padding: 48px 0; color: var(--white);
  background: radial-gradient(50% 90% at 0% 0%, rgba(92, 193, 127, 0.3), transparent 62%), linear-gradient(135deg, #0E4424 0%, #10332F 52%, var(--navy) 100%); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.nums div { padding-left: 20px; border-left: 2px solid rgba(255, 255, 255, 0.18); }
.nums dt { font-size: 14px; color: rgba(255, 255, 255, 0.78); order: 2; }
.nums dd { margin: 0 0 6px; font-size: clamp(36px, 1.6rem + 1.8vw, 56px); font-weight: 600; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.nums div { display: flex; flex-direction: column-reverse; }
.nums__todo { margin-top: 24px; }
.nums__todo .todo { border-color: rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.85); }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

/* Bodies, grouped. */
.sbodies__head, .history__head { display: grid; gap: 16px; margin-bottom: 40px; }
.sgroup + .sgroup { margin-top: 40px; }
.sgroup__h { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--forest-72); padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--forest-12); }
.sgroup__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sbody { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 20px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--forest-12); }
.sbody__logo { display: grid; place-items: center; height: 80px; padding: 8px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--forest-06); }
.sbody__logo img { max-width: 100%; max-height: 64px; object-fit: contain; }
.sbody__text { display: grid; gap: 4px; }
.sbody__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.sbody__name a { text-underline-offset: 3px; }
.sbody__kind { font-size: 13px; color: var(--green); font-weight: 500; }
.sbody__covers { font-size: 14px; color: var(--forest-72); }
.sbody__ref { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .sgroup__list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sbody { grid-template-columns: 80px 1fr; gap: 14px; padding: 16px; } .sbody__logo { height: 64px; } }

/* Pillars. */
.pillars { background: var(--paper); }
.pillars__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.pillars__head { display: grid; gap: 16px; position: sticky; top: calc(var(--bar) + 32px); }
.pillars__fig { margin: 16px 0 0; }
.pillars__fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.pillars__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: pl; }
.pillar { position: relative; display: grid; gap: 8px; padding: 26px 28px 26px 84px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--forest-12); counter-increment: pl; }
.pillar__n { position: absolute; left: 26px; top: 24px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--white); font-weight: 600; background: linear-gradient(140deg, var(--green), var(--blue)); }
.pillar__n::before { content: counter(pl, decimal-leading-zero); font-size: 14px; }
.pillar h3 { font-size: 19px; font-weight: 600; }
.pillar p { font-size: 15px; color: var(--forest-72); }
.pillar .todo { justify-self: start; margin-left: 0; }
@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr; gap: 32px; } .pillars__head { position: static; } }

/* Timeline: a centre line that fills as you scroll, cards either side. */
.tl { position: relative; }
.tl__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.tl__line { position: absolute; top: 8px; bottom: 8px; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: var(--forest-12); overflow: hidden; }
.tl__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--fill, 0)); background: linear-gradient(180deg, var(--green), var(--blue)); }
.tl__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.tl__dot { position: absolute; left: 50%; top: 26px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--forest-12); transition: box-shadow 300ms var(--ease), background-color 300ms var(--ease); }
.tl__item.is-past .tl__dot { background: var(--green); box-shadow: 0 0 0 4px rgba(42, 138, 74, 0.25); }
.tl__card { grid-column: 1; position: relative; display: grid; gap: 8px; padding: 24px 26px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--forest-12), 0 12px 30px rgba(23, 25, 58, 0.06); }
.tl__item:nth-child(odd) .tl__card { grid-column: 2; }
.tl__year { font-size: 32px; font-weight: 600; letter-spacing: -0.5px; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.tl__card h3 { font-size: 19px; font-weight: 600; }
.tl__card p { font-size: 15px; color: var(--forest-72); padding-right: 72px; }
.tl__logo { position: absolute; right: 20px; top: 20px; width: 64px; height: 40px; object-fit: contain; }
.history__more { margin-top: 32px; text-align: center; }
@media (max-width: 760px) {
  .tl__line { left: 9px; margin-left: 0; }
  .tl__item { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .tl__dot { left: 2px; margin-left: 0; }
  .tl__card, .tl__item:nth-child(odd) .tl__card { grid-column: 1; }
  .tl__card p { padding-right: 0; }
  .tl__logo { position: static; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .tl__fill { transform: none; } }

.nums--8 { grid-template-columns: repeat(4, 1fr); row-gap: 36px; }
@media (max-width: 760px) { .nums--8 { grid-template-columns: 1fr 1fr; } }
