/* FedM8 cert desk lift — additive visual layer for the certification desk.
 * Loaded from os.html AFTER os-bundle.js. Never edits cert-desk.js.
 * All hooks are additive classes injected by cert-desk-lift.js.
 *
 * Specificity is intentionally high (section.cd.cd-lift ...) because
 * cert-desk.css is appended to <head> at mount time, AFTER this file.
 */

section.cd.cd-lift {
  --lift-navy: var(--navy, #060d18);
  --lift-ink: var(--ink, #15181d);
  --lift-ink2: var(--ink-2, #4b5361);
  --lift-muted: var(--muted, #4f5a6b);
  --lift-line: var(--line, #d9e0ea);
  --lift-gold: #c4a35a;
  --lift-gold-deep: #8a6d2f;
  margin: 22px 0 32px;
}

/* ---- header ---- */
section.cd.cd-lift .cd-lift-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lift-gold-deep);
  margin: 0 0 6px;
}
section.cd.cd-lift h2 {
  font-size: clamp(1.45rem, 1.1rem + 2.4vw, 1.9rem);
  letter-spacing: -0.015em;
}
section.cd.cd-lift .lead {
  font-size: 15px;
  max-width: 62ch;
}

/* ---- segmented mode control ---- */
section.cd .cd-modes.cd-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #edf0f5;
  border: 1px solid var(--lift-line);
  border-radius: 99px;
  padding: 4px;
  margin: 0 0 18px;
  max-width: 100%;
}
section.cd .cd-modes.cd-seg .cd-modes-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
section.cd .cd-modes.cd-seg button {
  border: 0;
  background: transparent;
  border-radius: 99px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lift-ink2);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
section.cd .cd-modes.cd-seg button:hover {
  color: var(--lift-navy);
}
section.cd .cd-modes.cd-seg button.on {
  background: var(--lift-navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 13, 24, 0.28);
}
section.cd .cd-modes.cd-seg button:focus-visible {
  outline: 2px solid var(--lift-gold);
  outline-offset: 2px;
}

/* ---- guided stepper ---- */
section.cd .cd-lift-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 16px;
}
section.cd .cd-lift-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lift-muted);
  white-space: nowrap;
}
section.cd .cd-lift-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e7ebf1;
  color: var(--lift-muted);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
section.cd .cd-lift-step.active {
  color: var(--lift-navy);
}
section.cd .cd-lift-step.active .cd-lift-dot {
  background: var(--lift-navy);
  color: #fff;
}
section.cd .cd-lift-step.done {
  color: var(--lift-navy);
}
section.cd .cd-lift-step.done .cd-lift-dot {
  background: #1a8a44;
  color: #fff;
}
section.cd .cd-lift-bar {
  flex: 1;
  height: 3px;
  min-width: 24px;
  background: #e7ebf1;
  border-radius: 3px;
  overflow: hidden;
}
section.cd .cd-lift-bar i {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, var(--lift-navy), var(--lift-gold));
  border-radius: 3px;
  transition: width 0.25s ease;
}

/* ---- guided option cards ---- */
section.cd .cd-guide-kicker {
  font-size: 13.5px;
}
section.cd .cd-guide-q {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
section.cd .cd-guide-opts {
  gap: 10px;
  margin-bottom: 14px;
}
section.cd button.cd-guide-opt.cd-lift-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--lift-line);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 1px 2px rgba(6, 13, 24, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
section.cd button.cd-guide-opt.cd-lift-opt:hover {
  border-color: var(--lift-gold);
  box-shadow: 0 6px 18px rgba(6, 13, 24, 0.1);
  transform: translateY(-1px);
}
section.cd button.cd-guide-opt.cd-lift-opt:active {
  transform: translateY(0);
}
section.cd button.cd-guide-opt.cd-lift-opt:focus-visible {
  outline: 2px solid var(--lift-gold);
  outline-offset: 2px;
}
section.cd .cd-lift-ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #142b45 0%, #060d18 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
section.cd .cd-lift-ico svg {
  width: 24px;
  height: 24px;
}
section.cd .cd-lift-tx {
  flex: 1;
  min-width: 0;
  display: block;
}
section.cd button.cd-guide-opt.cd-lift-opt b {
  display: block;
  font-size: 15.5px;
  color: var(--lift-ink);
  margin-bottom: 3px;
  letter-spacing: -0.005em;
}
section.cd button.cd-guide-opt.cd-lift-opt .cd-lift-tx > span {
  font-size: 13px;
  color: var(--lift-muted);
  line-height: 1.45;
  display: block;
}
section.cd .cd-lift-chev {
  flex: 0 0 auto;
  color: var(--lift-muted);
  display: inline-flex;
  transition: transform 0.16s ease, color 0.16s ease;
}
section.cd .cd-lift-chev svg {
  width: 20px;
  height: 20px;
}
section.cd button.cd-guide-opt.cd-lift-opt:hover .cd-lift-chev {
  transform: translateX(3px);
  color: var(--lift-gold-deep);
}
section.cd .cd-guide-back {
  font-size: 13.5px;
}

/* ---- journey stages ---- */
section.cd .cd-stage.cd-lift-stage {
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(6, 13, 24, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
section.cd .cd-stage.cd-lift-stage:hover {
  border-color: var(--lift-gold);
  box-shadow: 0 6px 18px rgba(6, 13, 24, 0.08);
}
section.cd .cd-stage.cd-lift-stage .cd-stage-n {
  width: 32px;
  height: 32px;
  font-size: 14px;
  line-height: 32px;
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.35);
}
section.cd .cd-stage.cd-lift-stage .cd-stage-head h3 {
  font-size: 16px;
  letter-spacing: -0.005em;
}
section.cd .cd-stage.cd-lift-stage .cd-stage-tools button {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 99px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
section.cd .cd-stage.cd-lift-stage .cd-stage-tools button:hover {
  background: var(--lift-navy);
  border-color: var(--lift-navy);
  color: #fff;
}

/* ---- advance mode ---- */
section.cd .cd-lift-route {
  background: #fff;
  border: 1px solid var(--lift-line);
  border-radius: 16px;
  padding: 16px 18px;
}
section.cd .cd-lift-route label {
  font-size: 14px;
  font-weight: 700;
  color: var(--lift-ink);
  display: block;
  margin-bottom: 8px;
}
section.cd .cd-lift-route textarea {
  border-radius: 10px;
}
section.cd .cd-tabs {
  gap: 8px;
  margin: 14px 0;
}
section.cd .cd-tabs button {
  font-size: 13px;
  padding: 8px 14px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
section.cd .cd-tabs button:hover {
  border-color: var(--lift-navy);
  color: var(--lift-navy);
}
section.cd .cd-tabs button.on {
  box-shadow: 0 2px 8px rgba(6, 13, 24, 0.22);
}

/* ---- tool panels: light polish, copy untouched ---- */
section.cd .cd-panel {
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(6, 13, 24, 0.04);
}
section.cd .cd-panel h3 {
  font-size: 17px;
  letter-spacing: -0.005em;
}

@media (max-width: 560px) {
  section.cd .cd-lift-step span:last-child {
    display: none;
  }
  section.cd .cd-lift-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  section.cd button.cd-guide-opt.cd-lift-opt {
    padding: 12px 14px;
    gap: 12px;
  }
  section.cd .cd-modes.cd-seg {
    display: flex;
    width: 100%;
  }
  section.cd .cd-modes.cd-seg button {
    flex: 1;
    padding: 9px 8px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  section.cd button.cd-guide-opt.cd-lift-opt,
  section.cd .cd-lift-chev,
  section.cd .cd-lift-bar i,
  section.cd .cd-modes.cd-seg button,
  section.cd .cd-stage.cd-lift-stage {
    transition: none;
  }
  section.cd button.cd-guide-opt.cd-lift-opt:hover {
    transform: none;
  }
}
