/* Join the Club page (prefix jn-) */

/* ---------- What our club does (shared .split) ---------- */
.jn-why-list { margin-bottom: 0; }

/* ---------- The year: heading on the left, a timeline on the right ----------
   Divi: row with 1/3 + 2/3 columns; the list is a Text module with class jn-timeline. */
.jn-year { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 72px; align-items: start; }
.jn-year .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.jn-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.jn-timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.jn-timeline li { position: relative; padding: 0 0 36px 44px; }
.jn-timeline li:last-child { padding-bottom: 0; }
.jn-timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--white); border: 3px solid var(--red); }
.jn-timeline li.is-key::before { background: var(--red); }
.jn-timeline__when { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.jn-timeline strong { display: block; font: 600 21px/1.3 var(--font-head); color: var(--ink); }
.jn-timeline p { margin: 6px 0 0; color: var(--muted); max-width: 620px; }

/* ---------- Club roles (page option "jn-roles-look": open columns or table) ---------- */
.jn-roles .pc p { margin-bottom: 14px; }
html[data-jn-roles-look="cols"] .jn-roles--table,
html[data-jn-roles-look="table"] .jn-roles--cols { display: none; }
.jn-roles--table th:nth-child(1) { width: 22%; }
.jn-roles--table th:nth-child(2) { width: 22%; }
.jn-roles--table td:nth-child(2) { color: var(--ink); font-weight: 600; }

/* ---------- Time commitment (page option "jn-time-look": side, row or stats) ---------- */
.jn-facts { display: grid; }
.jn-facts > div { display: grid; gap: 6px; padding-left: 22px; border-left: 3px solid var(--red); }
.jn-facts__num { font: 600 clamp(34px, 3.4vw, 42px)/1.05 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.jn-facts__label { font-size: 17px; line-height: 1.45; color: var(--muted); max-width: 340px; }
html[data-jn-time-look="side"] .jn-time__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
html[data-jn-time-look="side"] .jn-time .section-head { margin-bottom: 0; }
html[data-jn-time-look="side"] .jn-facts { gap: 32px; }
html[data-jn-time-look="row"] .jn-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
html[data-jn-time-look="stats"] .jn-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
html[data-jn-time-look="stats"] .jn-facts > div { padding: 28px 32px 8px; border-left: 0; }
html[data-jn-time-look="stats"] .jn-facts > div:first-child { padding-left: 0; }
html[data-jn-time-look="stats"] .jn-facts > div + div { border-left: 1px solid var(--line); }
html[data-jn-time-look="stats"] .jn-facts__num { font-size: clamp(44px, 5vw, 60px); color: var(--red); }

/* ---------- Growing into leadership: the path (page option "jn-ladder") ---------- */
.jn-ladder { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px; max-width: 1120px; }
.jn-step { position: relative; display: flex; flex-direction: column; padding: 40px 36px 44px; border-top: 3px solid var(--red) !important; border-radius: 0; }
.jn-step h3 { font-size: 26px; margin-bottom: 12px; }
.jn-step p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
/* Each card a little stronger than the last: white, light red, dark */
.jn-step--gm { background: var(--white); border: 1px solid var(--line); }
.jn-step--es { background: color-mix(in srgb, var(--red) 8%, white); border: 1px solid color-mix(in srgb, var(--red) 28%, white); }
.jn-step--off { background: var(--second); border: 1px solid var(--second); }
.jn-step--off h3 { color: #fff; }
.jn-step--off p { color: rgba(255, 255, 255, .82); }
/* The arrow between two cards, centered in the gap */
.jn-step:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -46px; transform: translateY(-50%); font: 500 30px/1 var(--font-body); color: var(--red); }

/* "stairs": three steps rising from left to right. Bottoms line up and each card is taller
   than the last, so the tops climb. No arrows. (Divi: give the three columns Min Height 240px / 310px / 380px
   and align the row's columns to the bottom.) */
html[data-jn-ladder="stairs"] .jn-ladder { align-items: end; gap: 24px; }
html[data-jn-ladder="stairs"] .jn-step--gm { min-height: 240px; }
html[data-jn-ladder="stairs"] .jn-step--es { min-height: 310px; }
html[data-jn-ladder="stairs"] .jn-step--off { min-height: 380px; }
html[data-jn-ladder="stairs"] .jn-step::after { display: none; }

/* The officer board (Divi: row with 1/3 + 2/3 columns, Text modules) */
.jn-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; margin-top: 80px; padding-top: 40px; border-top: 2px solid var(--ink); }
.jn-board__intro h3 { font-size: 24px; margin-bottom: 12px; }
.jn-board__intro p { color: var(--muted); margin-bottom: 24px; }
.jn-board__label { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.jn-exec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0 0 32px; }
.jn-exec > div { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.jn-exec dt { font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.35; }
.jn-exec dd { margin: 4px 0 0; font-size: 15.5px; color: var(--muted); }

/* Core officers (page option "jn-core-look": list or row) */
html[data-jn-core-look="row"] .jn-core { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
html[data-jn-core-look="row"] .jn-core > div { padding-top: 16px; border-top: 3px solid var(--red); border-bottom: 0; }
html[data-jn-core-look="row"] .jn-core dt { font: 600 20px/1.3 var(--font-head); }
.jn-board__roles > .placeholder-note { margin-top: 4px; }

/* ---------- Ways to join: the shared numbered steps, then a callout ---------- */
.jn-flag { max-width: 760px; margin: 48px auto 0; background: var(--white); }
.jn-flag p { margin: 0; color: var(--muted); }
.jn-flag strong { display: inline; margin: 0; color: var(--ink); }
.jn-flag a { color: var(--red); font-weight: 600; }
.jn-steps p a { color: var(--ink); font-weight: 600; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); text-underline-offset: 3px; }
.jn-steps .placeholder-note { display: table; margin: 8px auto 0; }


@media (max-width: 980px) {
  .jn-ladder { grid-template-columns: 1fr; gap: 56px; max-width: 560px; }
  html[data-jn-ladder="stairs"] .jn-ladder { gap: 16px; }
  html[data-jn-ladder="stairs"] .jn-step--gm, html[data-jn-ladder="stairs"] .jn-step--es, html[data-jn-ladder="stairs"] .jn-step--off { min-height: 0; }
  html[data-jn-ladder="stairs"] .jn-step--gm { margin-right: 64px; }
  html[data-jn-ladder="stairs"] .jn-step--es { margin: 0 32px; }
  html[data-jn-ladder="stairs"] .jn-step--off { margin-left: 64px; }
  .jn-step:not(:last-child)::after { content: "↓"; top: auto; bottom: -44px; right: auto; left: 50%; transform: translateX(-50%); }
  html[data-jn-time-look="side"] .jn-time__wrap { grid-template-columns: 1fr; gap: 32px; }
  html[data-jn-time-look] .jn-facts { grid-template-columns: 1fr; gap: 24px; }
  html[data-jn-time-look="stats"] .jn-facts > div, html[data-jn-time-look="stats"] .jn-facts > div:first-child { padding: 20px 0 0; border-left: 0; }
  html[data-jn-core-look="row"] .jn-core { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .jn-board { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .jn-year { grid-template-columns: 1fr; gap: 36px; }
  .jn-year .section-head { position: static; }
}
@media (max-width: 640px) {
  .jn-step { padding: 28px 24px 30px; }
  html[data-jn-ladder="stairs"] .jn-step--gm { margin-right: 32px; }
  html[data-jn-ladder="stairs"] .jn-step--es { margin: 0 16px; }
  html[data-jn-ladder="stairs"] .jn-step--off { margin-left: 32px; }
  .jn-step h3 { font-size: 23px; }
  .jn-step p { font-size: 17px; }
  .jn-exec { grid-template-columns: 1fr; }
    .jn-timeline li { padding-left: 36px; }
  .jn-roles .pc p:last-child { margin-bottom: 0; }
}
