/* ══════════════════════════════════════════════════════════════════════════
   css/exam-countdown.css — the free exam countdown (item 18)
   Namespaced ec-*. The ring is also used in the strip on each course page.
   ══════════════════════════════════════════════════════════════════════════ */

.ec-wrap { padding: 38px 0 60px; }
.ec-wrap .wrap { max-width: 980px; }

.ec-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .ec-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

.ec-card {
  background: #fff; border: 1px solid var(--line, #E7E3D9);
  border-radius: 14px; padding: 17px 18px 15px;
  display: grid; gap: 11px; align-content: start;
}
.ec-card.is-urgent { border-color: #FCA5A5; background: #FFFCFB; }

.ec-top { display: flex; align-items: center; gap: 15px; }
.ec-id { min-width: 0; }
.ec-code {
  margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em;
  color: var(--navy, #0B1D3F); line-height: 1.1;
}
.ec-name { margin: 2px 0 0; font-size: .9rem; color: var(--ink-3, #78848F); line-height: 1.35; }
.ec-days { margin: 6px 0 0; font-size: .95rem; color: var(--ink-2, #4A5666); }
.ec-days strong { font-size: 1.15rem; font-weight: 800; color: var(--orange-ink, #B45309); }

/* ── The ring ────────────────────────────────────────────────────────────── */
.ec-ring { flex: 0 0 auto; width: 92px; height: 92px; }
.ec-ring-track { stroke: var(--bg-2, #F4F2EC); stroke-width: 9; }
.ec-ring-fill  { stroke: var(--orange, #D97706); stroke-width: 9; stroke-linecap: round; }
.ec-ring-n {
  fill: var(--navy, #0B1D3F); font: 800 22px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.is-urgent .ec-ring-fill { stroke: #DC2626; }

/* ── Dates ───────────────────────────────────────────────────────────────── */
.ec-when { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ec-session, .ec-sit {
  font-size: .8rem; border-radius: 999px; padding: 4px 10px;
  border: 1px solid var(--line, #E7E3D9); color: var(--ink-2, #4A5666);
  background: var(--bg-2, #F4F2EC);
}
.ec-session { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; }
.ec-sit b { color: var(--navy, #0B1D3F); font-weight: 800; }

/* ── What to do with the time ────────────────────────────────────────────── */
.ec-stage { margin: 0; font-size: .94rem; line-height: 1.6; color: var(--ink-2, #4A5666); }
.ec-stage-label {
  display: inline-block; margin-right: 7px;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--navy, #0B1D3F);
  border-radius: 5px; padding: 3px 8px; vertical-align: 1px;
}
.is-urgent .ec-stage-label { background: #DC2626; }

.ec-reg {
  margin: 0; font-size: .86rem; color: var(--orange-ink, #B45309);
  background: var(--bg-orange, #FFF7ED); border: 1px solid #FCD9B5;
  border-radius: 8px; padding: 7px 11px;
}
.ec-reg b { font-weight: 800; }

.ec-links { margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.ec-links a {
  font-size: .88rem; font-weight: 700; color: var(--orange-ink, #B45309);
  text-decoration: none; border-bottom: 1px solid transparent;
}
.ec-links a:hover, .ec-links a:focus-visible { border-bottom-color: currentColor; }

.ec-note, .ec-empty {
  margin: 20px 0 0; font-size: .93rem; line-height: 1.65;
  color: var(--ink-2, #4A5666); max-width: 66ch;
}
.ec-note a, .ec-empty a { color: var(--orange-ink, #B45309); font-weight: 650; }

@media (max-width: 560px) {
  .ec-card { padding: 15px 14px 13px; border-radius: 12px; }
  .ec-ring { width: 78px; height: 78px; }
  .ec-top { gap: 12px; }
  .ec-code { font-size: 1.32rem; }
}

/* ══ The strip on a course page ═══════════════════════════════════════════
   Same data, one line, no grid. Lives here so there is one place the ring is
   styled, not two that can drift apart. */
.ec-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #E7E3D9);
  border-left: 4px solid var(--orange, #D97706);
  border-radius: 12px; padding: 13px 16px; margin: 0 0 4px;
}
.ec-strip .ec-ring { width: 64px; height: 64px; }
.ec-strip .ec-ring-n { font-size: 19px; }
.ec-strip-text { min-width: 0; flex: 1 1 15rem; }
.ec-strip-days { margin: 0; font-size: 1rem; font-weight: 700; color: var(--navy, #0B1D3F); }
.ec-strip-days b { color: var(--orange-ink, #B45309); font-weight: 900; }
.ec-strip-sub { margin: 3px 0 0; font-size: .87rem; color: var(--ink-3, #78848F); line-height: 1.45; }
.ec-strip-cta {
  flex: 0 0 auto; font-size: .87rem; font-weight: 700;
  color: var(--orange-ink, #B45309); text-decoration: none;
}
.ec-strip-cta:hover { text-decoration: underline; }
