/* Explicit hierarchy: section title, people, supporting context, event. */
body.direction-frontier #team.team-context-section { display: block; padding-block: 64px 56px; border: 0; }
body.direction-frontier #team .team-heading { display: block; margin: 0 0 40px; }
body.direction-frontier #team .team-heading h2 { margin: 0; font-size: 36px; line-height: 1.15; }
body.direction-frontier #team .team-people, body.direction-frontier #team .team-context, body.direction-frontier #team .team-place { min-width: 0; }
body.direction-frontier #team .team-people { display: block; margin: 0; padding: 0; border: 0; }
body.direction-frontier #team .founders { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; width: 100%; max-width: none; }
body.direction-frontier #team .founder { min-width: 0; margin: 0; padding: 0; border: 0; }
body.direction-frontier #team .founder-role { margin: 0; font-size: 11px; line-height: 1.5; }
body.direction-frontier #team .founder-name-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
body.direction-frontier #team .founder-name-row h3 { margin: 0; font-size: 28px; line-height: 1.25; }
body.direction-frontier #team .founder-social { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
body.direction-frontier #team .founder-background { margin: 16px 0 0; font-size: 14px; line-height: 1.7; }
body.direction-frontier #team .team-cohort { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin: 32px 0 0; padding: 0; border: 0; }
body.direction-frontier #team .team-cohort > span { font-size: 14px; white-space: nowrap; }
body.direction-frontier #team .team-cohort p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
body.direction-frontier #team .team-location { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ink); }
body.direction-frontier #team .team-region { max-width: 42ch; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
body.direction-frontier #team .team-region a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.direction-frontier #team .team-ranking { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 100%; color: var(--ink); line-height: 1.5; text-decoration: none; }
body.direction-frontier #team .team-ranking strong { font-size: 14px; font-weight: 500; }
body.direction-frontier #team .team-ranking-positions { font-size: 19px; letter-spacing: -.02em; line-height: 1.4; }
body.direction-frontier #team .team-ranking-positions > span { white-space: nowrap; }
body.direction-frontier #team .team-ranking-subjects { color: var(--muted); font-size: 12px; }
body.direction-frontier #team .team-ranking small { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.direction-frontier #team .team-ranking:hover .team-ranking-positions { text-decoration: underline; text-underline-offset: 3px; }
body.direction-frontier #team a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
body.direction-frontier #team .team-next-event { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 40px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); border-bottom: 0; }
body.direction-frontier #team .team-event-date { grid-column: 1; }
body.direction-frontier #team .team-event-date time { font-size: 13px; }
body.direction-frontier #team .team-event-description { grid-column: 1; }
body.direction-frontier #team .team-event-description h3 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
body.direction-frontier #team .team-event-description p { max-width: none; margin: 0; font-size: 13px; line-height: 1.6; }
body.direction-frontier #team .team-event-link { grid-column: 2; grid-row: 1 / 3; justify-self: stretch; min-width: 0; min-height: 48px; font-size: 13px; }
@media(max-width:1000px) {
  body.direction-frontier #team.team-context-section { padding-block: 48px; }
  body.direction-frontier #team .team-heading { margin-bottom: 32px; }
  body.direction-frontier #team .team-heading h2 { font-size: 32px; }
}
@media(max-width:700px) {
  body.direction-frontier #team.team-context-section { padding-block: 40px; }
  body.direction-frontier #team .team-heading h2 { font-size: 30px; }
  body.direction-frontier #team .founders { grid-template-columns: minmax(0,1fr); gap: 32px; }
  body.direction-frontier #team .founder-name-row h3 { font-size: 27px; }
  body.direction-frontier #team .founder-background { margin-top: 8px; }
  body.direction-frontier #team .team-cohort { margin-top: 28px; }
  body.direction-frontier #team .team-location { font-size: 17px; }
  body.direction-frontier #team .team-next-event { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 32px; padding-top: 24px; }
  body.direction-frontier #team .team-event-link { grid-column: 1; grid-row: auto; width: 100%; min-width: 0; margin-top: 4px; }
}

/* One shared three-column grid for the opening row and context band. */
body.direction-frontier #team .team-opening { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; align-items: start; }
body.direction-frontier #team .team-heading { margin: 0; padding-top: 28px; }
body.direction-frontier #team .team-people { grid-column: 2 / -1; }
body.direction-frontier #team .founders { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
body.direction-frontier #team .founder-name-row h3 { font-size: 32px; }
body.direction-frontier #team .team-context { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
body.direction-frontier #team .team-cohort { display: block; margin: 0; }
body.direction-frontier #team .team-cohort p { margin-top: 10px; }
body.direction-frontier #team .team-next-event { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; align-items: start; margin-top: 36px; padding-top: 28px; }
body.direction-frontier #team .team-event-intro { margin: 0; font-size: 18px; line-height: 1.4; }
body.direction-frontier #team .team-event-details { min-width: 0; }
body.direction-frontier #team .team-event-date { margin-bottom: 8px; }
body.direction-frontier #team .team-event-link { grid-column: 3; grid-row: auto; align-self: center; justify-self: start; min-width: 225px; }
@media(max-width:1000px) {
  body.direction-frontier #team .team-next-event { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 32px; }
  body.direction-frontier #team .team-event-intro { grid-column: 1 / -1; }
  body.direction-frontier #team .team-event-link { grid-column: 2; }
  body.direction-frontier #team .team-opening { grid-template-columns: minmax(0,1fr); gap: 32px; }
  body.direction-frontier #team .team-heading { padding-top: 0; }
  body.direction-frontier #team .team-people { grid-column: auto; }
  body.direction-frontier #team .founders { gap: 32px; }
  body.direction-frontier #team .team-context { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 32px; }
  body.direction-frontier #team .team-cohort { grid-column: 1 / -1; display: flex; gap: 16px; }
  body.direction-frontier #team .team-cohort p { margin: 0; }
}
@media(max-width:700px) {
  body.direction-frontier #team .team-next-event { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body.direction-frontier #team .team-event-link { grid-column: 1; min-width: 0; justify-self: stretch; }
  body.direction-frontier #team .founders { grid-template-columns: minmax(0,1fr); }
  body.direction-frontier #team .founder-name-row h3 { font-size: 27px; }
  body.direction-frontier #team .team-context { grid-template-columns: minmax(0,1fr); margin-top: 32px; gap: 24px; }
  body.direction-frontier #team .team-cohort { display: block; }
  body.direction-frontier #team .team-cohort p { margin-top: 8px; }
}

/* Keep the regional source link without a permanent underline. */
body.direction-frontier #team .team-region a { text-decoration: none; }
