/* ============================================================
   THE COMPLIANCE MAP — page styles
   Loaded after atf.css and built on its tokens. Same Steel
   rules as the rest of the site: no border-radius anywhere,
   mono for data, condensed for headings, blaze for the one
   thing that matters. Mobile first; every row has to read on
   a 390px phone without the page ever moving sideways.
   ============================================================ */

/* ---------- the standing honest line, under the lede ---------- */
.cm-honest{
  margin-top:clamp(20px,5vw,26px);
  max-width:58ch;
  padding:14px 16px;
  border-left:3px solid var(--blaze);
  background:rgba(255,90,0,.06);
}
.cm-honest p{
  font-size:clamp(15px,4vw,16.5px);line-height:1.6;color:#C9C5BF;
}
.cm-honest p b{color:var(--paper);font-weight:600}

/* ---------- the map section ---------- */
.cmap{background:radial-gradient(120% 72% at 6% 0%,rgba(255,90,0,.05),transparent 60%),var(--base)}

/* ------------------------------------------------------------
   FILTER BAR
   Sits outside .wrap so its charcoal runs the full width of the
   window — otherwise rows would scroll through the gutters
   beside it.

   The chips WRAP, they never scroll sideways: at 390px the five
   of them need 540px, so a horizontal scroller would have hidden
   "Employer kit" off the edge of a phone where nobody would ever
   find it. Two visible rows beat one hidden control.

   It is only sticky from 1000px, where the whole bar is one 68px
   line. On a phone the stacked bar is 150px tall and holds a text
   input — pinning that to the top would eat a fifth of the screen
   and fight the on-screen keyboard for the rest.
   ------------------------------------------------------------ */
.cm-bar{
  background:#101010;
  border-top:2px solid var(--rule-hi);
  border-bottom:1px solid var(--rule);
}
.cm-bar-in{
  display:grid;gap:10px;
  padding-top:12px;padding-bottom:12px;
}

.cm-chips{display:flex;flex-wrap:wrap;gap:8px}
.cm-chip{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;
  min-height:40px;padding:0 12px;
  background:transparent;border:1.5px solid var(--rule-hi);
  font-family:var(--fm);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--mute);cursor:pointer;white-space:nowrap;
  transition:color .18s var(--ease),border-color .18s var(--ease),background-color .18s var(--ease);
}
.cm-chip i{font-style:normal;font-size:9.5px;letter-spacing:.05em;color:var(--mute-2)}
.cm-chip:hover{border-color:var(--blaze);color:var(--paper)}
.cm-chip[aria-pressed="true"]{background:var(--blaze);border-color:var(--blaze);color:#0E0E0E;font-weight:700}
.cm-chip[aria-pressed="true"] i{color:rgba(14,14,14,.62)}

.cm-find{display:flex;align-items:center;gap:12px}
.cm-search{
  flex:1 1 auto;min-width:0;min-height:44px;
  background:#171717;border:1px solid var(--rule-hi);
  padding:10px 12px;
  font-family:var(--fb);font-size:16px;color:var(--paper);
  transition:border-color .18s var(--ease);
}
.cm-search::placeholder{color:var(--mute-2)}
.cm-search:focus{border-color:var(--blaze)}
.cm-count{
  flex:none;font-family:var(--fm);font-size:11px;letter-spacing:.12em;color:var(--mute-2);
  font-variant-numeric:tabular-nums;
}
.cm-count b{color:var(--blaze);font-weight:400}
.cm-count i{font-style:normal}

@media (min-width:1000px){
  .cm-bar{
    position:sticky;top:64px;z-index:600;
    box-shadow:0 12px 26px rgba(0,0,0,.55);
  }
  .cm-bar-in{grid-template-columns:minmax(0,1fr) minmax(240px,340px);align-items:center;gap:22px}
}

/* ------------------------------------------------------------
   GROUPS
   ------------------------------------------------------------ */
.cm-list{padding-bottom:clamp(44px,9vw,80px)}
.cm-group{margin-top:clamp(34px,7vw,58px)}
.cm-group[hidden]{display:none}

.cm-ghead{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  padding-bottom:10px;border-bottom:2px solid var(--rule-hi);
}
.cm-ghead h3{
  font-family:var(--fd);font-weight:800;text-transform:uppercase;
  font-size:clamp(22px,6vw,32px);line-height:1;letter-spacing:.005em;
  min-width:0;overflow-wrap:break-word;
}
.cm-gcount{
  flex:none;font-family:var(--fm);font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mute-2);font-variant-numeric:tabular-nums;
}
.cm-gcount b{color:var(--blaze);font-weight:400}
.cm-gcount i{font-style:normal}
.cm-gnote{
  margin:13px 0 3px;color:var(--mute);
  font-size:14.5px;line-height:1.55;max-width:62ch;
}

/* ------------------------------------------------------------
   A ROW
   Closed: the citation chip, and the requirement in one line.
   Open: what it actually says, then where the course covers it.
   ------------------------------------------------------------ */
.cm-row{position:relative;border-bottom:1px solid var(--rule)}
.cm-row[hidden]{display:none}
.cm-row::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:transparent;
  transition:background-color .2s var(--ease),width .2s var(--ease);
}
.cm-row:hover::before{background:var(--rule-hi)}
.cm-row[open]::before{background:var(--blaze);width:4px}
.cm-row.is-key::before{background:var(--blaze-dk)}
.cm-row.is-key[open]::before{background:var(--blaze)}

.cm-row > summary{
  position:relative;display:flex;flex-direction:column;gap:9px;
  padding:15px 40px 15px 15px;
  cursor:pointer;list-style:none;
  transition:background-color .2s var(--ease);
}
.cm-row > summary::-webkit-details-marker{display:none}
.cm-row > summary:hover,
.cm-row[open] > summary{background:var(--panel)}

.cm-plus{position:absolute;right:13px;top:19px;width:14px;height:14px}
.cm-plus::before,.cm-plus::after{
  content:"";position:absolute;background:var(--blaze);
  transition:transform .25s var(--ease);
}
.cm-plus::before{left:0;top:6px;width:14px;height:2px}
.cm-plus::after{left:6px;top:0;width:2px;height:14px}
.cm-row[open] .cm-plus::after{transform:scaleY(0)}

.cm-cites{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.cm-cite{
  font-family:var(--fm);font-size:10px;letter-spacing:.09em;text-transform:uppercase;
  color:#C9C5BF;border:1.5px solid var(--rule-hi);
  padding:5px 7px;line-height:1.25;white-space:nowrap;
  transition:color .2s var(--ease),border-color .2s var(--ease);
}
.cm-row[open] .cm-cite,
.cm-row > summary:hover .cm-cite{border-color:var(--blaze);color:var(--blaze)}
.cm-key{
  font-family:var(--fm);font-size:9px;letter-spacing:.18em;text-transform:uppercase;
  background:var(--blaze);color:#0E0E0E;font-weight:700;
  padding:5px 7px;line-height:1.25;white-space:nowrap;
}
.cm-req{
  min-width:0;overflow-wrap:break-word;
  font-size:15.5px;line-height:1.5;color:#C9C5BF;
}
.cm-row[open] .cm-req{color:var(--paper)}

/* ---------- the open half ---------- */
.cm-body{padding:2px 22px 24px 15px}
.cm-body > p{
  margin-top:13px;max-width:64ch;
  color:var(--mute);font-size:15px;line-height:1.65;
}
.cm-body > p b{color:var(--paper);font-weight:600}

/* the eleven instruction types under G11.2(6)-1 — a numbered
   register, not a bullet list, because the count is the point */
.cm-eleven{
  counter-reset:cme;list-style:none;padding:0;
  margin-top:17px;max-width:64ch;border-top:1px solid var(--rule);
}
.cm-eleven li{
  position:relative;counter-increment:cme;
  padding:9px 0 9px 36px;border-bottom:1px solid var(--rule);
  color:#C9C5BF;font-size:14.5px;line-height:1.5;
}
.cm-eleven li::before{
  content:counter(cme,decimal-leading-zero);
  position:absolute;left:0;top:11px;
  font-family:var(--fm);font-size:10px;letter-spacing:.1em;color:var(--blaze);
}

.cm-cov{margin-top:20px;padding-top:14px;border-top:2px solid var(--rule-hi);max-width:64ch}
.cm-cov-l{
  display:block;margin-bottom:8px;
  font-family:var(--fm);font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--blaze);
}
.cm-cov ul{margin:0}
.cm-cov li{
  display:flex;gap:12px;align-items:flex-start;
  padding:8px 0;border-bottom:1px solid var(--rule);
  font-size:15px;line-height:1.5;color:#C9C5BF;
}
.cm-cov li:last-child{border-bottom:0}
.cm-cov li b{
  flex:none;min-width:58px;
  font-family:var(--fd);font-weight:800;font-size:16px;letter-spacing:.03em;line-height:1.35;
  color:var(--blaze);
}
.cm-cov li span{min-width:0;overflow-wrap:break-word}

/* From 820px the chip gets its own column, so every requirement
   line starts at the same place down the page and the citations
   read as a single register down the left. */
@media (min-width:820px){
  .cm-row > summary{flex-direction:row;align-items:flex-start;gap:22px;padding:17px 46px 17px 18px}
  .cm-cites{flex:none;width:196px;padding-top:1px}
  .cm-plus{top:21px}
  .cm-body{padding-left:236px;padding-right:46px}
}

/* ---------- nothing found ---------- */
.cm-none{
  margin-top:32px;max-width:52ch;
  color:var(--mute);font-size:16px;line-height:1.7;
}
.cm-none[hidden]{display:none}
.cm-none b{font-family:var(--fm);font-size:13px;color:var(--paper)}
.cm-reset{
  display:inline-block;margin-top:14px;min-height:40px;
  padding:11px 14px;background:transparent;border:1.5px solid var(--rule-hi);
  font-family:var(--fm);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--paper);cursor:pointer;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.cm-reset:hover{border-color:var(--blaze);color:var(--blaze)}

/* ------------------------------------------------------------
   SOURCES STRIP
   ------------------------------------------------------------ */
.cm-src{background:var(--ink)}
.cm-src-in{
  display:grid;gap:20px;
  padding-top:clamp(34px,7vw,58px);padding-bottom:clamp(38px,7vw,64px);
}
.cm-src-l{display:flex;align-items:center;gap:12px;flex:none}
.cm-src-l .bar{width:34px;height:4px;background:var(--blaze);flex:none}
.cm-src-l span{font-family:var(--fm);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--blaze)}
.cm-src-p{max-width:62ch;font-size:clamp(15px,4vw,17px);line-height:1.6;color:#C9C5BF}
.cm-src-p b{color:var(--paper);font-weight:600}
.cm-src-n{margin-top:16px;max-width:64ch;font-size:15px;line-height:1.6;color:var(--mute)}
.cm-src-n b{color:#C9C5BF;font-weight:600}
.cm-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.cm-link{
  display:inline-flex;align-items:center;gap:9px;min-height:44px;
  padding:10px 14px;border:1.5px solid var(--rule-hi);
  font-family:var(--fm);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:#C9C5BF;
  transition:color .18s var(--ease),border-color .18s var(--ease),background-color .18s var(--ease);
}
.cm-link i{font-style:normal;color:var(--blaze)}
.cm-link:hover{border-color:var(--blaze);color:var(--blaze);background:rgba(255,90,0,.06)}
.cm-src-f{
  margin-top:18px;max-width:72ch;overflow-wrap:anywhere;
  font-family:var(--fm);font-size:10px;letter-spacing:.13em;text-transform:uppercase;
  color:var(--mute-2);line-height:1.9;
}
@media (min-width:920px){
  .cm-src-in{grid-template-columns:200px minmax(0,1fr);gap:40px;align-items:start}
  .cm-src-l{padding-top:4px}
}
