/* ==========================================================================
   ILEES member pages: "the lift plan"
   --------------------------------------------------------------------------
   ILEES's own look for the affiliation pages (the other six projects each have
   a different one). The lifting yard sets the tone: a warning stripe under the
   page head, pages hanging from it as capacity tags, the stages as the links of
   a chain under a hook, a segmented load indicator for the membership period,
   capacity plates for the figures, and condensed capitals for every heading.
   Colours and fonts are those of the website (ilees.css): deep navy, signal red,
   Barlow Condensed headings, Inter text.
   ========================================================================== */

.af-root.afl {
  --af-surface: #ffffff;
  --af-surface-2: #f4f6fa;
  --af-line: #e3e8f0;
  --af-line-strong: #c3ccd9;
  --af-text: #0e1726;
  --af-muted: #6b7a90;
  --af-primary: #0a1a33;
  --af-primary-ink: #ffffff;
  --af-accent: #c0142f;
  --af-ok: #1a7a4c;        --af-ok-bg: #e4f5ec;
  --af-warn: #9b5d00;      --af-warn-bg: #fff3d6;
  --af-bad: #c0142f;       --af-bad-bg: #fde9ec;
  --af-info: #1b4f9c;      --af-info-bg: #e8f0fb;
  --af-radius: 6px;
  --af-radius-sm: 4px;
  --af-font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --af-display: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --af-mono: 'Barlow Condensed', ui-monospace, Consolas, monospace;
  --af-shadow: 0 10px 30px -16px rgba(10, 26, 51, .3);
  --afl-navy: #0a1a33;
  --afl-red: #e31b3b;
  --afl-yellow: #ffc61a;
  background: #f4f6fa;
  padding-bottom: 80px;
}

.afl h1, .afl h2, .afl h3 { text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }
.afl .af-eyebrow, .afl .af-kv dt, .afl .af-table th, .afl .af-fee__label { font-family: var(--af-display); font-size: 13.5px; letter-spacing: .14em; font-weight: 700; }
.afl .af-eyebrow { color: var(--afl-red); }
.afl .af-card, .afl .af-step { border-radius: 6px; border-color: var(--af-line); }
.afl .af-card__title { font-size: 26px; line-height: 1.1; }
.afl .af-step__title { font-size: 26px; line-height: 1.1; }
.afl .af-step__no { font-size: 15px; color: var(--afl-red); font-weight: 700; }
.afl .af-pill { font-family: var(--af-display); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; padding: 3px 10px; }
.afl .af-kv dd { font-weight: 700; }

/* buttons: square, condensed capitals, a red bar under the main one */
.afl .af-btn { border-radius: 4px; font-family: var(--af-display); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 22px; transition: background .2s, border-color .2s, transform .2s; }
.afl .af-btn--primary { background: var(--afl-red); }
.afl .af-btn--primary:hover { background: #b5122c; filter: none; transform: translateY(-1px); }
.afl .af-btn--ghost { background: #fff; border: 2px solid var(--afl-navy); color: var(--afl-navy) !important; }
.afl .af-btn--ghost:hover { background: var(--afl-navy); color: #fff !important; border-color: var(--afl-navy); }
.afl .af-btn--link { font-family: var(--af-font); font-size: 14.5px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.afl .af-btn--sm { font-size: 15px; padding: 5px 16px; min-height: 34px; }

/* inputs */
.afl .af-label { font-size: 13.5px; font-weight: 700; }
.afl .af-input { border-radius: 4px; border: 2px solid var(--af-line-strong); }
.afl .af-input:focus { border-color: var(--afl-navy); box-shadow: 0 0 0 3px rgba(255, 198, 26, .45); }
.afl .af-tile__body { border-radius: 4px; border-width: 2px; }
.afl .af-tile input:checked + .af-tile__body { border-color: var(--afl-navy); background: #fff; box-shadow: inset 0 -5px 0 var(--afl-red); }
.afl .af-tile input:checked + .af-tile__body i { color: var(--afl-red); }
.afl .af-tile__body strong { font-family: var(--af-display); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.afl .af-choice input, .afl .af-check input { accent-color: var(--afl-navy); }
.afl .af-upload__drop:hover, .afl .af-upload.has-files .af-upload__drop { border-color: var(--afl-red); color: var(--af-accent); }
.afl .af-fee__amount, .afl .af-pay__amount { font-weight: 700; }
.afl .af-progress { height: 6px; border-radius: 0; background: #dfe5ee; }
.afl .af-progress::before { background: var(--afl-red); }

/* ---------- the beam: warning stripe + tags ---------- */
.afl-beam { position: relative; background: var(--afl-navy); border-top: 10px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--afl-yellow) 0 14px, #0e1726 14px 28px) 10; }
.afl-beam--plain { height: 0; }
.afl-beam__in { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; min-height: 62px; }
.afl-tags { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.afl-tags::-webkit-scrollbar { display: none; }
.afl-tag { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 0; padding: 22px 18px 10px; background: #1b3a66; color: #dbe5f5 !important; font: 700 17px var(--af-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; white-space: nowrap; border-radius: 0 0 6px 6px; transition: background .2s, padding .2s; }
.afl-tag::before { content: ""; position: absolute; top: 7px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--afl-navy); box-shadow: inset 0 0 0 2px #7f93b3; }
.afl-tag:hover { background: #26497c; color: #fff !important; }
.afl-tag.is-active { background: #fff; color: var(--afl-navy) !important; padding-bottom: 16px; box-shadow: inset 0 -5px 0 var(--afl-red); }
.afl-tag.is-active::before { background: var(--afl-red); box-shadow: none; }
.afl-tag__mark { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 3px; background: var(--afl-yellow); color: #0e1726; font-size: 13px; display: inline-grid; place-items: center; }
.afl-beam__side { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.afl-beam__side form { margin: 0; }
.afl-service { display: grid; padding: 5px 14px 6px 16px; border-inline-start: 6px solid #7f93b3; background: rgba(255, 255, 255, .08); color: #fff; line-height: 1.15; }
.afl-service b { font: 700 16px var(--af-display); letter-spacing: .1em; text-transform: uppercase; }
.afl-service small { font-size: 12px; color: #b9c7dd; }
.afl-service--in { border-color: #2fbf7a; }
.afl-service--due { border-color: var(--afl-yellow); }
.afl-service--out { border-color: var(--afl-red); }
.afl-out { border: 0; background: none; color: #b9c7dd; font: 700 15px var(--af-display); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; padding: 6px 2px; }
.afl-out:hover { color: #fff; }

.afl-page { padding-top: 34px; }
.af-root.af-root .afl-lead { font-size: 17px; color: #3c4a5e; max-width: 760px; margin: 0 0 24px; }
.afl-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 28px; line-height: 1; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 3px solid var(--afl-navy); }
.afl-h small { font: 600 13px var(--af-font); letter-spacing: .02em; text-transform: none; color: var(--af-muted); }
h3.afl-h { font-size: 22px; border-bottom-width: 2px; margin-bottom: 14px; padding-bottom: 9px; }

/* ---------- lift plan ---------- */
.afl-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; margin-bottom: 20px; }
.afl-plan > .af-card { margin-bottom: 0; }

.afl-rig { display: grid; justify-items: start; padding-inline-start: 6px; }
.afl-hook { width: 46px; color: var(--afl-navy); margin-inline-start: 4px; margin-bottom: -10px; position: relative; z-index: 1; }
.afl-hook svg { display: block; width: 100%; height: auto; }
.af-root .afl-links { display: grid; width: 100%; }
.afl-link { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: -9px; }
.afl-link__ring { position: relative; width: 54px; height: 82px; border-radius: 27px; border: 9px solid var(--afl-navy); display: grid; place-items: center; background: transparent; }
.afl-link__ring i { font: 700 17px var(--af-display); font-style: normal; color: var(--afl-navy); }
.afl-link:nth-child(even) .afl-link__ring { transform: scaleX(.62); }
.afl-link:nth-child(even) .afl-link__ring i { transform: scaleX(1.6); }
.afl-link.is-current .afl-link__ring { border-color: var(--afl-red); }
.afl-link.is-current .afl-link__ring i { color: var(--afl-red); }
.afl-link.is-todo .afl-link__ring { border: 3px dashed #a9b6c9; }
.afl-link.is-todo .afl-link__ring i { color: #8a97ab; }
.afl-link.is-problem .afl-link__ring { border-color: var(--afl-red); border-style: double; border-width: 9px; }
.afl-link__text { display: grid; padding: 10px 0; border-bottom: 1px solid var(--af-line); min-width: 0; }
.afl-link:last-child .afl-link__text { border-bottom: 0; }
.afl-link__text strong { font: 700 21px/1.1 var(--af-display); text-transform: uppercase; letter-spacing: .03em; color: var(--af-text); }
.afl-link__text em { font-style: normal; font-size: 13.5px; color: var(--af-muted); }
.afl-link.is-done .afl-link__text em { color: var(--af-ok); font-weight: 600; }
.afl-link.is-current .afl-link__text em, .afl-link.is-problem .afl-link__text em { color: var(--af-accent); font-weight: 600; }
.afl-link.is-todo .afl-link__text strong { color: #8a97ab; }

.afl-load { display: flex; flex-direction: column; }
.afl-meter { margin-bottom: 18px; }
.afl-meter__bar { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; padding: 8px; background: #0e1726; border-radius: 4px; }
.afl-meter__bar i { height: 34px; background: #24344f; border-radius: 1px; }
.afl-meter__bar i.is-on { background: #2fbf7a; box-shadow: 0 0 8px rgba(47, 191, 122, .55); }
.afl-meter__bar i.is-on.is-amber { background: var(--afl-yellow); box-shadow: 0 0 8px rgba(255, 198, 26, .55); }
.afl-meter__bar i.is-on.is-red { background: var(--afl-red); box-shadow: 0 0 8px rgba(227, 27, 59, .6); }
.afl-meter__scale { display: flex; justify-content: space-between; margin-top: 6px; font: 700 13px var(--af-display); letter-spacing: .12em; text-transform: uppercase; color: var(--af-muted); }
.afl-figure { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.afl-figure strong { font: 800 84px/.82 var(--af-display); color: var(--afl-navy); letter-spacing: -.01em; }
.afl-load--expired .afl-figure strong { color: var(--afl-red); }
.afl-figure span { font: 700 19px var(--af-display); letter-spacing: .1em; text-transform: uppercase; color: var(--af-muted); }
.af-root .afl-plate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 20px; border: 2px solid var(--afl-navy); border-radius: 4px; }
.afl-plate > div { padding: 9px 14px; min-width: 0; border-top: 1px solid var(--af-line-strong); }
.afl-plate > div:nth-child(-n+2) { border-top: 0; }
.afl-plate > div:nth-child(even) { border-inline-start: 1px solid var(--af-line-strong); }
.afl-plate dt { font: 700 12.5px var(--af-display); letter-spacing: .14em; text-transform: uppercase; color: var(--af-muted); margin: 0; }
.afl-plate dd { margin: 0; font: 700 20px/1.2 var(--af-display); letter-spacing: .03em; color: var(--af-text); overflow-wrap: anywhere; }
.afl-load__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

/* next lift */
.afl-next { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 20px; background: var(--afl-navy); color: #fff; border-radius: 6px; border-inline-start: 12px solid var(--afl-yellow); }
.afl-next--bad { border-inline-start-color: var(--afl-red); }
.afl-next--ok { border-inline-start-color: #2fbf7a; }
.afl-next__sign { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 3px solid currentColor; display: grid; place-items: center; font-size: 22px; color: var(--afl-yellow); }
.afl-next--bad .afl-next__sign { color: #ff7f92; }
.afl-next--ok .afl-next__sign { color: #5fe0a2; }
.afl-next__body { flex: 1 1 320px; min-width: 0; }
.afl-next .af-eyebrow { color: var(--afl-yellow); }
.afl-next h2 { color: #fff; font-size: 30px; line-height: 1.05; margin: 2px 0 4px; }
.af-root.af-root .afl-next p { color: #c6d2e6; margin: 0; }

/* plates */
.afl-plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.afl-card { position: relative; margin-bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.afl-card .afl-h { width: 100%; }
.afl-card__swl { position: absolute; top: 16px; inset-inline-end: 20px; font: 800 30px/1 var(--af-display); color: #dfe5ee; letter-spacing: .04em; }
.af-root.af-root .afl-card__name { font: 700 22px/1.15 var(--af-display); letter-spacing: .02em; color: var(--af-text); margin: 0 0 4px; overflow-wrap: anywhere; }
.afl-card > .af-btn { margin-top: auto; }
.af-root.af-root .afl-small { font-size: 14px; color: var(--af-muted); margin: 0 0 6px; }
.af-root.af-root .afl-small--bad { color: var(--af-bad); }
.af-root .afl-rows { display: grid; width: 100%; margin: 2px 0 12px; }
.afl-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 8px 0; border-top: 1px solid var(--af-line); font-size: 14px; }
.afl-rows li:first-child { border-top: 0; }
.afl-rows a { font-weight: 700; color: var(--af-text); }
.afl-rows span { font: 700 17px var(--af-display); letter-spacing: .03em; }
.afl-rows__state { grid-column: 1 / -1; font-style: normal; font: 700 12.5px var(--af-display); letter-spacing: .12em; text-transform: uppercase; color: var(--af-muted); }
.afl-rows__state--ok { color: var(--af-ok); }
.afl-rows__state--warn { color: var(--af-warn); }
.afl-rows__state--bad { color: var(--af-bad); }
.afl-rows__state--info { color: var(--af-info); }
.afl-rows--plain li { display: block; color: #3c4a5e; overflow-wrap: anywhere; }

/* ---------- forms: sections that open one at a time ---------- */
.afl .af-shell { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
.afl .af-shell__nav { top: 130px; }
.afl-side, .afl .af-shell__nav { background: var(--afl-navy); color: #fff; padding: 20px 18px 16px; border-radius: 6px; }
.afl-side__title { display: block; font: 700 14px var(--af-display); letter-spacing: .16em; text-transform: uppercase; color: var(--afl-yellow); margin-bottom: 10px; }
.afl .af-shell__nav .af-progress { background: rgba(255, 255, 255, .16); margin-bottom: 10px; }
.af-root.afl .af-steps { gap: 0; }
.afl .af-steps__item { padding: 9px 6px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); align-items: center; color: #b9c7dd; }
.afl .af-steps__no { width: 30px; height: 30px; border-radius: 4px; border: 2px solid #5f759a; background: none; color: #b9c7dd; font: 700 15px var(--af-display); }
.afl .af-steps__label { font: 700 17px var(--af-display); letter-spacing: .06em; text-transform: uppercase; color: #dbe5f5; }
.afl .af-steps__hint { display: none !important; }
.afl .af-steps__item.is-active .af-steps__no { background: var(--afl-red); border-color: var(--afl-red); color: #fff; }
.afl .af-steps__item.is-active .af-steps__label { color: #fff; }
.afl .af-steps__item.is-done .af-steps__no { background: #2fbf7a; border-color: #2fbf7a; color: #0e1726; }
.afl-side__link { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: #fff !important; font-size: 13.5px; font-weight: 600; }
.afl-side__link:hover { color: var(--afl-yellow) !important; }
.afl .af-shell__nav a:not(.afl-side__link) { color: #fff; }
.afl .af-form .af-step { border-inline-start: 6px solid var(--af-line-strong); }
.afl .af-form .af-step.is-active { border-inline-start-color: var(--afl-red); }
.afl .af-form .af-step.is-done { border-inline-start-color: #2fbf7a; }

/* ---------- registration strip ---------- */
.af-root .afl-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 26px; background: #fff; border: 2px solid var(--afl-navy); border-radius: 6px; overflow: hidden; }
.afl-strip li { position: relative; padding: 18px 20px 18px 62px; border-inline-start: 1px solid var(--af-line-strong); min-width: 0; }
[dir="rtl"] .afl-strip li { padding: 18px 62px 18px 20px; }
.afl-strip li:first-child { border-inline-start: 0; }
.afl-strip b { position: absolute; inset-inline-start: 16px; top: 16px; font: 800 30px/1 var(--af-display); color: var(--afl-red); }
.afl-strip strong { display: block; font: 700 20px/1.1 var(--af-display); letter-spacing: .04em; text-transform: uppercase; color: var(--af-text); }
.afl-strip span { font-size: 13.5px; color: var(--af-muted); }
.afl-strip .is-next { background: var(--afl-navy); }
.afl-strip .is-next b { color: var(--afl-yellow); }
.afl-strip .is-next strong { color: #fff; }
.afl-strip .is-next span { color: #c6d2e6; }

/* ---------- small screens ---------- */
@media (max-width: 991px) {
  .afl-plan, .afl-plates { grid-template-columns: minmax(0, 1fr); }
  .afl .af-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .afl .af-shell__nav { position: static; }
  .af-root .afl-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afl-strip li:nth-child(3) { border-inline-start: 0; }
  .afl-strip li:nth-child(n+3) { border-top: 1px solid var(--af-line-strong); }
  .afl-beam__side { width: 100%; justify-content: space-between; padding-top: 0; }
}
@media (max-width: 640px) {
  .afl-page { padding-top: 24px; }
  .afl-tag { font-size: 15px; padding: 20px 13px 9px; }
  .afl-h { font-size: 24px; }
  .afl-figure strong { font-size: 64px; }
  .af-root .afl-plate { grid-template-columns: minmax(0, 1fr); }
  .afl-plate > div:nth-child(even) { border-inline-start: 0; }
  .afl-plate > div:nth-child(2) { border-top: 1px solid var(--af-line-strong); }
  .afl-meter__bar i { height: 26px; }
  .afl-meter__bar { gap: 2px; padding: 6px; }
  .afl-next { padding: 18px; }
  .afl-next h2 { font-size: 25px; }
  .af-root .afl-strip { grid-template-columns: minmax(0, 1fr); }
  .afl-strip li { border-inline-start: 0; border-top: 1px solid var(--af-line-strong); }
  .afl-strip li:first-child { border-top: 0; }
  .afl-out span { display: none; }
}
