/* AiNex Edu — 과정 상세 (hrdedu/edudetail/edudetail.html), 2026-10 redesign. Prefix .cx-
   Blue hero + facts, sticky enrol card overlapping the hero, goals checklist, numbered curriculum,
   professor cards, blue close band, restyled 학습신청 modal (legacy ids kept). */

.cx {
  --cx-ink: #12141a;
  --cx-text: #3b4252;
  --cx-muted: #6b7385;
  --cx-line: #e3e7ec;
  --cx-accent: #0d3f76;
  --cx-accentDeep: #0a3260;
  --cx-tint: #eef3f9;
  --cx-bg: #f6f7fb;
  --cx-side: 380px;
  color: var(--cx-text);
  background: #fff;
}

.cx-in {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- hero ---------- */
.cx-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 64px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgb(255 255 255 / 0.16), transparent 60%),
    radial-gradient(600px 300px at 10% 120%, rgb(120 160 255 / 0.35), transparent 70%),
    var(--p);
  color: #fff;
  isolation: isolate;
}

.cx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 70%, transparent 100%);
  pointer-events: none;
}

.cx-heroMain {
  max-width: calc(100% - var(--cx-side) - 48px);
}

.cx-crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
}

.cx-crumb li { display: inline-flex; align-items: center; gap: 6px; color: rgb(255 255 255 / 0.72); }
.cx-crumb li + li::before { content: "›"; color: rgb(255 255 255 / 0.45); }
.cx-crumb a { color: inherit; text-decoration: none; }
.cx-crumb a:hover { color: #fff; }
.cx-crumb li:last-child { color: #fff; }

.cx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

.cx-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.cx-title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.25;
  word-break: keep-all;
}

.cx-title span { display: block; }

.cx-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgb(255 255 255 / 0.84);
  font-size: 16.5px;
  line-height: 1.6;
  word-break: keep-all;
}

.cx-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: 10px;
  margin: 30px 0 0;
}

.cx-facts > div {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(8px);
}

.cx-facts dt { color: rgb(255 255 255 / 0.7); font-size: 12.5px; font-weight: 700; }

.cx-facts dd {
  margin: 6px 0 0;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.cx-facts dd small { margin-left: 3px; font-size: 14px; font-weight: 700; opacity: 0.8; }
.cx-facts .cx-factText { font-size: 15.5px; word-break: keep-all; line-height: 1.45; letter-spacing: -0.02em; }

/* ---------- layout: content + sticky enrol card ---------- */
.cx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cx-side);
  gap: 48px;
  align-items: start;
  padding-bottom: 96px;
}

.cx-main { grid-column: 1; grid-row: 1; min-width: 0; padding-top: 8px; }

.cx-side {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 92px;
  margin-top: -300px;
  z-index: 2;
}

.cx-card {
  overflow: hidden;
  border: 1px solid var(--cx-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgb(16 24 40 / 0.04), 0 40px 80px -40px rgb(16 30 90 / 0.45);
}

.cx-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cx-tint);
}

.cx-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cx-coverScene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(33 73 240 / 0) 40%, rgb(18 24 60 / 0.55) 100%);
}

.cx-coverTag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.92);
  color: var(--cx-ink);
  font-size: 12.5px;
  font-weight: 800;
}

.cx-cardBody { padding: 22px 24px 24px; }

.cx-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 0 18px;
  padding: 4px;
  border-radius: 6px;
  background: #f2f4f7;
}

.cx-seg .cd-tab,
.cx-seg .cd-tab:nth-child(odd),
.cx-seg .cd-tab:nth-child(-n+4) {
  position: static;
  height: 38px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--cx-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.cx-seg .cd-tab::after { display: none; }
.cx-seg .cd-tab:hover { color: var(--cx-ink); }

.cx-seg .cd-tab.cd-tabOn {
  background: #fff;
  color: var(--cx-ink);
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.08), 0 4px 12px -6px rgb(16 24 40 / 0.2);
}

.cx-priceLabel { margin: 0; color: var(--cx-muted); font-size: 13px; font-weight: 700; }

.cx-priceValue {
  margin: 4px 0 0;
  color: var(--cx-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.cx-priceValue small { margin-left: 2px; font-size: 18px; font-weight: 700; }

.cx-priceRow {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--cx-line);
  font-size: 14px;
}

.cx-priceRow b { color: var(--cx-ink); }

.cx-refund { display: grid; gap: 8px; margin: 14px 0 0; }

.cx-refundRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--cx-bg);
  font-size: 13.5px;
}

.cx-refundRow strong { grid-column: 1 / -1; color: var(--cx-ink); font-size: 13.5px; font-weight: 800; }
.cx-refundRow span { display: flex; flex-direction: column; color: var(--cx-text); font-weight: 600; }
.cx-refundRow em { color: var(--cx-muted); font-size: 11.5px; font-style: normal; font-weight: 700; }
.cx-refundRow b { color: var(--cx-accent); font-weight: 800; }

.cx-note { margin: 10px 0 0; color: var(--cx-muted); font-size: 12.5px; line-height: 1.5; }
.cx-noteWarn { padding: 10px 12px; border-radius: 6px; background: #fff6e8; color: #9a5b00; }

.cx-actions { display: grid; gap: 8px; margin: 20px 0 0; }

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cx-btnPrimary {
  background: var(--cx-accent);
  color: #fff;
  box-shadow: 0 14px 28px -16px rgba(13,63,118,0.9);
}

.cx-btnPrimary:hover { background: var(--cx-accentDeep); transform: translateY(-1px); }

.cx-btnPrimary.is-disabled {
  background: #e4e7ec;
  color: #98a2b3;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.cx-btnLine { border-color: #d9dee6; background: #fff; color: var(--cx-ink); }
.cx-btnLine:hover { border-color: var(--cx-accent); color: var(--cx-accent); }
.cx-btnWhite { background: #fff; color: var(--cx-accentDeep); }
.cx-btnWhite:hover { background: #eef3f9; transform: translateY(-1px); }
.cx-btnGlass { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.1); color: #fff; }
.cx-btnGlass:hover { background: rgb(255 255 255 / 0.2); }
.cx-btn:focus-visible { outline: 3px solid rgba(13,63,118,0.35); outline-offset: 2px; }

.cx-meta {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 6px 0 0;
  list-style: none;
  border-top: 1px solid var(--cx-line);
}

.cx-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--cx-line);
  font-size: 14px;
}

.cx-meta li:last-child { border-bottom: 0; padding-bottom: 0; }
.cx-meta span { color: var(--cx-muted); font-weight: 600; }
.cx-meta b { color: var(--cx-ink); font-weight: 800; text-align: right; }

.cx-meta b.is-open { display: inline-flex; align-items: center; gap: 6px; color: #0f8a5f; }

.cx-meta b.is-open::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b886;
  box-shadow: 0 0 0 4px rgb(18 184 134 / 0.16);
}

/* ---------- sub navigation ---------- */
.cx-subnav {
  position: sticky;
  top: 72px;
  z-index: 1;
  display: flex;
  gap: 4px;
  margin: 0 0 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cx-line);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
}

.cx-subnav a {
  padding: 9px 16px;
  border-radius: 6px;
  color: var(--cx-muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.cx-subnav a:hover { background: #f2f4f7; color: var(--cx-ink); }

/* ---------- sections ---------- */
.cx-section { padding: 56px 0 8px; scroll-margin-top: 150px; }
.cx-section + .cx-section { border-top: 1px solid var(--cx-line); margin-top: 48px; }

.cx-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--cx-accent);
  font-size: 14px;
  font-weight: 800;
}

.cx-kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--cx-tint);
  font-variant-numeric: tabular-nums;
}

.cx-h2 {
  margin: 0;
  color: var(--cx-ink);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.35;
  word-break: keep-all;
}

.cx-h3 { margin: 34px 0 14px; color: var(--cx-ink); font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }

.cx-goals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-goals li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--cx-line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cx-goals li:hover { border-color: #cdd8ff; box-shadow: 0 18px 36px -28px rgba(13,63,118,0.5); }

.cx-goalNum {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--p);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.cx-goals p { margin: 5px 0 0; color: var(--cx-text); font-size: 15px; font-weight: 600; line-height: 1.6; word-break: keep-all; }

.cx-target {
  display: flex;
  gap: 18px;
  margin: 28px 0 0;
  padding: 22px 24px;
  border-radius: 6px;
  background: var(--cx-bg);
}

.cx-target .cx-h3 { margin: 2px 0 6px; font-size: 16px; }
.cx-target p { margin: 0; color: var(--cx-text); font-size: 15px; line-height: 1.7; word-break: keep-all; }

.cx-targetIcon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px -16px rgb(16 24 60 / 0.5);
}

.cx-targetIcon svg { width: 26px; height: 26px; fill: none; stroke: var(--cx-accent); stroke-width: 1.7; stroke-linecap: round; }

/* curriculum */
.cx-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 22px;
  padding: 0;
  list-style: none;
}

.cx-counts li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--cx-bg);
  font-size: 14px;
  font-weight: 700;
}

.cx-counts b { color: var(--cx-ink); font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.cx-counts .cx-count-A { background: var(--cx-tint); }
.cx-counts .cx-count-A b { color: var(--cx-accent); }

.cx-curriculum {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--cx-line);
  border-radius: 6px;
  overflow: hidden;
}

.cx-curriculum li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--cx-line);
  background: #fff;
  transition: background 0.15s ease;
}

.cx-curriculum li:last-child { border-bottom: 0; }
.cx-curriculum li:hover { background: #f9faff; }

.cx-chNum {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--cx-bg);
  color: var(--cx-ink);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cx-curriculum li:hover .cx-chNum { background: var(--cx-accent); color: #fff; }

.cx-chNum svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cx-chTitle { color: var(--cx-ink); font-size: 15.5px; font-weight: 700; line-height: 1.5; word-break: keep-all; }

.cx-chTitle em {
  display: inline-flex;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 4px;
  background: #fff1e0;
  color: #b25e00;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  vertical-align: 2px;
}

.cx-chTime { color: var(--cx-muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.cx-isTask { background: #fffcf7 !important; }
.cx-isTask .cx-chNum { background: #fff1e0; color: #b25e00; }

.cx-curriculum.is-collapsed li:nth-child(n+9) { display: none; }

.cx-curriculum.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0), #fff);
  pointer-events: none;
}

.cx-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 12px 0 0;
  border: 1px solid #d9dee6;
  border-radius: 6px;
  background: #fff;
  color: var(--cx-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}

.cx-more:hover { border-color: var(--cx-accent); color: var(--cx-accent); }

/* professors */
.cx-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.cx-person {
  padding: 24px;
  border: 1px solid var(--cx-line);
  border-radius: 6px;
  background: linear-gradient(180deg, #f5f7fa 0%, #fff 55%);
}

.cx-personHead { display: flex; gap: 14px; align-items: center; }

.cx-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--p);
  box-shadow: 0 14px 28px -16px rgba(13,63,118,0.9);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.cx-personHead strong { display: block; color: var(--cx-ink); font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.cx-personHead div > span { display: block; margin-top: 2px; color: var(--cx-muted); font-size: 13.5px; font-weight: 600; line-height: 1.45; }

.cx-personCv {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px dashed #dfe4ee;
}

.cx-personCv li {
  position: relative;
  padding-left: 16px;
  color: var(--cx-text);
  font-size: 14px;
  line-height: 1.55;
}

.cx-personCv li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cx-accent);
}

/* ---------- close band ---------- */
.cx-close {
  padding: 56px 0;
  background:
    radial-gradient(700px 300px at 90% 0%, rgb(255 255 255 / 0.14), transparent 60%),
    var(--p);
  color: #fff;
}

.cx-close .cx-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cx-closeKicker { margin: 0 0 8px; color: rgb(255 255 255 / 0.72); font-size: 14px; font-weight: 700; }

.cx-close h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.35;
  word-break: keep-all;
}

.cx-closeActions { display: flex; flex: none; gap: 10px; }
.cx-closeActions .cx-btn { min-width: 150px; }

/* ---------- missing course ---------- */
.cx-missing { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0 120px; text-align: center; }
.cx-missing .cx-crumb ol { justify-content: center; }
.cx-missing .cx-crumb li { color: var(--cx-muted); }
.cx-missing .cx-crumb li:last-child { color: var(--cx-ink); }
.cx-missing h1 { margin: 0 0 10px; color: var(--cx-ink); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.cx-missing p { margin: 0 0 26px; color: var(--cx-muted); font-size: 16px; }

/* ---------- 학습신청 modal (ids/classes driven by function.js) ---------- */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgb(10 14 30 / 0.55);
  backdrop-filter: blur(4px);
}

.cx-modal.modal-wrap {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: min(560px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
  padding: 32px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 40px 100px -30px rgb(10 14 40 / 0.6);
  transform: translate(-50%, -50%);
}

.cx-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--cx-ink, #12141a);
  font-size: 15px;
  cursor: pointer;
}

.cx-modal .close-btn:hover { background: #e4e7ec; }

.cx-modalKicker {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #eef3f9;
  color: #0d3f76;
  font-size: 12.5px;
  font-weight: 800;
}

.cx-modal h2 { margin: 0 44px 6px 0; color: #12141a; font-size: 21px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.4; }
.cx-modalHint { margin: 0 0 18px; color: #6b7385; font-size: 14px; }

.cx-modal #DateList { display: grid; gap: 8px; margin: 0 0 22px; }
.cx-modal #DateList input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }

.cx-modal #DateList label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 15px 18px 15px 48px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #fff;
  color: #12141a;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cx-modal #DateList label::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  border: 2px solid #c4cad6;
  border-radius: 50%;
  background: #fff;
}

.cx-modal #DateList label:hover { border-color: #b8c7ff; }
.cx-modal #DateList input:checked + label { border-color: #0d3f76; background: #f5f7fa; }
.cx-modal #DateList input:checked + label::before { border: 5px solid #0d3f76; }
.cx-modal #DateList input:focus-visible + label { outline: 3px solid rgba(13,63,118,0.3); outline-offset: 2px; }
.cx-modal .submit_btn .cx-btn { width: 100%; }

/* ---------- responsive ---------- */
@media (width <= 1080px) {
  .cx-heroMain { max-width: none; }
  .cx-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cx-side { grid-column: 1; grid-row: 1; position: static; margin-top: -36px; }
  .cx-main { grid-row: 2; }
  .cx-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .cx-cover { aspect-ratio: auto; min-height: 100%; }
}

@media (width <= 760px) {
  .cx-in { width: calc(100% - 32px); }
  .cx-hero { padding: 24px 0 56px; }
  .cx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-facts .cx-factWide { grid-column: 1 / -1; }
  .cx-facts dd { font-size: 22px; }
  .cx-card { display: block; }
  .cx-cover { aspect-ratio: 16 / 9; }
  .cx-cardBody { padding: 20px; }
  .cx-subnav { top: 60px; overflow-x: auto; scrollbar-width: none; }
  .cx-subnav a { flex: none; padding: 8px 12px; font-size: 14px; }
  .cx-section { padding-top: 40px; }
  .cx-goals { grid-template-columns: 1fr; }
  .cx-curriculum li { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .cx-chNum { width: 36px; height: 36px; border-radius: 6px; font-size: 13px; }
  .cx-chTime { grid-column: 2; margin-top: -8px; }
  .cx-target { flex-direction: column; gap: 12px; padding: 20px; }
  .cx-people { grid-template-columns: 1fr; }
  .cx-close .cx-in { flex-direction: column; align-items: stretch; text-align: left; }
  .cx-closeActions { flex-direction: column; }
  .cx-modal.modal-wrap { padding: 26px 20px 20px; border-radius: 6px; }
}

/* legacy .submit_btn button rules elsewhere must not win inside the modal */
.cx-modal.modal-wrap .submit_btn button.cx-btn { width: 100%; min-height: 52px; border: 0; border-radius: 6px; background: var(--cx-accent, #0d3f76); color: #fff; font-size: 15.5px; font-weight: 800; }
.cx-modal.modal-wrap .submit_btn button.cx-btn:hover { background: #0a3260; }
