/* refont: source-sans-3 */
/* What we do: page-only styles (shared components are in css/site.css) */

/* "Jump to" links under the facts strip */
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.jump .h4 { color: var(--gold); }
.jump__links { display: flex; flex-wrap: wrap; gap: 8px; }
.jump__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(221, 232, 244, 0.3); border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--white); transition: border-color 0.18s ease, color 0.18s ease; }
.jump__links a:hover { border-color: var(--gold); color: var(--gold); }

/* Adventure: one big photo over two small ones */
.adv-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adv-photos__main { grid-column: 1 / -1; --ratio: 16 / 10; }
.adv-photos .label-photo:not(.adv-photos__main) { --ratio: 1 / 1; }
.callout .h4 { color: var(--gold); margin-bottom: 8px; }
.adv-kit { font-size: 16px; line-height: 1.5; }

/* Camps: cards and a note under the photo grid; two photos a row on phones so the grid stays short */
.camps-cards { margin-top: 16px; }
@media (max-width: 560px) {
  #camps .grid-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  #camps .label-photo { --ratio: 1 / 1; }
  #camps .label-photo span { left: 6px; right: 6px; bottom: 6px; padding: 4px 7px; font-size: 12px; letter-spacing: 0.06em; width: fit-content; }
}
.camps-note { margin-top: 32px; font-weight: 600; max-width: 62ch; }
/* six camp cards: three a row on wide screens so they sit in two even rows */
@media (min-width: 1000px) { .camps-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* nine camp photos: where the grid drops to two columns, the last one runs full width as a banner */
@media (max-width: 900px) { #camps .grid-3 > .label-photo:last-child:nth-child(odd) { grid-column: 1 / -1; --ratio: 2 / 1; } }

/* Sport: keep the two photos side by side on phones */
@media (max-width: 560px) { .sport-photos { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* Sport: the seven RAF Air Cadets sports, the levels slip and a strip of four photos */
.sport-more { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.sport-seven { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.sport-seven .h3 { color: var(--gold); font-size: clamp(26px, 3vw, 34px); }
.sport-seven p { max-width: 58ch; }
.sport-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 8px; }
.sport-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.sport-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sport-strip .label-photo { --ratio: 1 / 1; }
@media (max-width: 900px) {
  .sport-seven { grid-template-columns: 1fr; }
  .sport-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sport-strip { gap: 8px; }
  .sport-strip .label-photo span { left: 6px; right: 6px; bottom: 6px; padding: 4px 7px; font-size: 12px; letter-spacing: 0.06em; width: fit-content; }
  .sport-slip .slip__body, .sport-slip .slip__end { padding-left: 20px; padding-right: 20px; }
  .sport-slip .row { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
  .sport-slip .row .leader { display: none; }
  .sport-slip .row .val { flex-basis: 100%; white-space: normal; font-weight: 500; color: var(--blue); }
  .sport-slip .row > span:first-child { font-weight: 700; }
}

/* Drill: below desktop, the first photo runs wide and the other two sit side by side */
@media (max-width: 900px) {
  .drill-grid { grid-template-columns: 1fr 1fr; }
  .drill-grid > :first-child { grid-column: 1 / -1; --ratio: 4 / 3 !important; }
}
@media (max-width: 560px) { .drill-grid { gap: 8px; } }

/* Drill: the list of parades under the photos */
.drill-more { margin-top: 48px; }
.drill-more > p { max-width: 52ch; }

/* Community: list under the tiles */
.community-list { margin-top: 32px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .community-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .community-list { grid-template-columns: 1fr; } }

/* Socials: wide photo over two squares */
.social-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-photos__main { grid-column: 1 / -1; }

/* Progression photo stays level with the steps */
@media (min-width: 900px) { .prog-photo { position: sticky; top: 108px; } }
