/* CE tracker. Editorial lists, plain numbers and simple bars on the light theme. The red "live"
   color is reserved for LIVE badges, so status uses ink and accent only. */

.tracker { max-width: 1240px; }
.tracker .kicker a { color: inherit; text-decoration: none; }
.tr-lead { max-width: 640px; margin: -12px 0 28px; font-size: 15px; color: var(--muted); }
.tr-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 40px; }
.tr-cta-link { font-weight: 600; }
.tr-features { max-width: 820px; }
.tr-features h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; }
.tr-features p { margin: 0; color: var(--ink-3); }
.tr-aside { max-width: 820px; margin-top: 32px; color: var(--ink-3); }

.tr-notice { max-width: 820px; margin: 0 0 24px; }
.tr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 8px; }
.tr-section { max-width: 820px; margin-top: 48px; }
.tr-section .h2 { margin-bottom: 12px; }

/* Deadlines timeline */
.tr-timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.tr-timeline li {
  display: grid;
  grid-template-columns: 9em 1fr auto auto;
  gap: 4px 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.tl-date { font-weight: 700; }
.tl-what { font-weight: 600; }
.tl-left { color: var(--muted); font-size: 15px; }
.tl-status { font-size: 15px; color: var(--ink-2); text-align: right; }

/* One designation */
.tr-item { max-width: 820px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink); }
.tr-item p { margin: 8px 0 0; color: var(--ink-3); }
.tr-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tr-item-head h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; }
.tr-body { color: var(--muted); font-size: 15px; }
.tr-due { color: var(--ink-2) !important; }

.chip-done { background: var(--accent); color: #FFFFFF; }
.chip-warn { background: var(--card); color: var(--ink); border: 1px solid var(--ink); }

.tr-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 12px; }
.tr-figures div { padding-top: 8px; border-top: 1px solid var(--line); }
.tr-figures dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tr-figures dd { margin: 2px 0 0; font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.15; }
.tr-figures dd span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }

.tr-bar { height: 8px; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.tr-bar span { display: block; height: 100%; background: var(--accent); }

.tr-cats { margin: 16px 0 0; padding: 0; list-style: none; }
.tr-cats li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tr-cat-name { font-weight: 600; }
.tr-cat-figs { color: var(--ink-3); }

.tr-pace { margin-top: 14px !important; color: var(--ink) !important; }

.tr-gaps { margin-top: 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.tr-gap + .tr-gap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tr-gap-line { margin: 0 !important; font-weight: 600; color: var(--ink) !important; }
.tr-gap-sub { font-size: 15px; }
.tr-sessions { margin: 6px 0 0; padding-left: 20px; }
.tr-sessions li { margin: 6px 0; }

.tr-sub { margin: 28px 0 0; font-size: 15px; font-weight: 700; }
.tr-credits { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tr-credit { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tr-credit-main { min-width: 0; }
.tr-credit-main a { font-weight: 600; overflow-wrap: anywhere; }
.tr-credit-meta { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.tr-credit-hours { font-size: 15px; color: var(--ink-2); text-align: right; }

.tr-rule { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.tr-rule summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 32px; }
.tr-rule p { font-size: 14px; }

.tr-upload-band .form { max-width: 560px; }
.tr-fine { max-width: 820px; margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tr-fine h2 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.tr-fine p { margin: 6px 0; }

/* Forms */
.tr-form { max-width: 640px; }
.tr-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.tr-fieldset legend { margin-bottom: 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.tr-fieldset > .hint { margin: 0 0 12px; }
.tr-des { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tr-des:first-of-type { border-top: 1px solid var(--line); }
.tr-des-fields { display: grid; gap: 12px; margin: 12px 0 4px 28px; }
.tr-ids { display: grid; gap: 14px; }
.tr-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 16px; }
.tr-state-grid .check { font-size: 15px; min-height: 32px; align-items: center; }
.tr-state-grid .check input { margin-top: 0; }
.tr-error { font-size: 14px; font-weight: 600; color: var(--live); }

/* Show a designation's fields only while it is ticked; without :has() everything shows. */
.tr-des:not(:has(input[name="d"]:checked)) .tr-des-fields { display: none; }
.tr-form:not(:has(input[data-guide="cfp"]:checked)) .tr-id-cfp { display: none; }
.tr-form:not(:has(input[data-guide="iwi"]:checked)) .tr-id-iwi { display: none; }
.tr-form:not(:has(input[data-guide="cfa"]:checked)) .tr-id-cfa { display: none; }
.tr-form:not(:has(input[data-guide="cfp"]:checked, input[data-guide="iwi"]:checked, input[data-guide="cfa"]:checked)) .tr-ids { display: none; }
.tr-form:not(:has(input[name="d"][value="IAR"]:checked)) .tr-states { display: none; }

.tr-alloc-intro p { margin: 0; }
.tr-alloc { margin: 0; padding: 14px 18px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); min-width: 0; }
.tr-alloc legend { padding: 0 6px; font-weight: 700; color: var(--ink); }
.tr-alloc legend .muted { font-weight: 400; }
.tr-alloc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; }
.tr-alloc-row label { font-size: 14px; }
.tr-pids summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 32px; }
.tr-pids label { margin-top: 12px; }
.tr-delete { margin-top: 24px; }

.tr-upload input[type=file] {
  width: 100%;
  min-height: var(--touch);
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  font: inherit;
  font-weight: 400;
}

/* Certificate confirm page: the file beside the form */
.tr-cert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
.tr-file { width: 100%; height: 72vh; min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tr-file-img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tr-cert-form .notice { margin: 0 0 16px; }
.tr-unmatched { margin: 0 0 16px; font-size: 15px; color: var(--ink-3); }
.tr-unmatched ul { margin: 4px 0 0; padding-left: 20px; }

.tr-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 24px; }
.tr-facts dt { font-weight: 600; color: var(--ink-2); }
.tr-facts dd { margin: 0; color: var(--ink-3); }

@media (max-width: 900px) {
  .tr-cert { grid-template-columns: minmax(0, 1fr); }
  .tr-file { height: 60vh; min-height: 360px; }
}

@media (max-width: 640px) {
  .tr-timeline li { grid-template-columns: 1fr auto; }
  .tl-what { grid-column: 1 / -1; grid-row: 1; }
  .tl-date { font-weight: 600; font-size: 15px; }
  .tl-status { grid-column: 1 / -1; text-align: left; }
  .tr-item-head h2 { font-size: 26px; }
  .tr-figures dd { font-size: 28px; }
  .tr-credit { flex-direction: column; }
  .tr-credit-hours { text-align: left; }
  .tr-des-fields { margin-left: 0; }
  .tr-gaps { padding: 14px 16px; }
}
