/* === DARBĪBAS JOMA (joma.html) — viena veidne visām auditorijām ===
   Sānjosla, virsraksts, pogas — style.css */

/* ── JOMU PĀRSLĒDZĒJS ────────────────────────────────── */
.jm-switch {
  max-width: 1365px;
  margin: 24px auto 0;
  padding: 0 24px;
}

.jm-switch-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.jm-switch-inner::-webkit-scrollbar { display: none; }

.jm-switch a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  transition: all .15s;
}

.jm-switch a:hover { border-color: var(--blue); color: var(--blue); }
.jm-switch a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── JOMAS BLOKI (redzams tikai izvēlētais) ──────────── */
.jm-joma { display: none; }
.jm-joma.active { display: block; }

/* ── SKAITĻI ─────────────────────────────────────────── */
.jm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.jm-stats > div { background: var(--light-bg); border-radius: 12px; padding: 14px 18px; }
.jm-stats strong { display: block; font-size: 24px; font-weight: 600; color: var(--blue); line-height: 1.1; }
.jm-stats span { font-size: 12.5px; color: var(--muted); }

/* ── GALERIJA ────────────────────────────────────────── */
.jm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.jm-gallery .img-slot { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; }
.jm-gallery .img-slot-label { height: 100%; font-size: 11px; }
.jm-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ── TABULA (kursu grupas) ───────────────────────────── */
.jm-table-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding: 16px 20px; background: var(--light-bg); }
.jm-table-head h4 { font-size: 15px; font-weight: 600; color: #111; margin-bottom: 2px; }
.jm-table-head p { font-size: 12.5px; color: var(--muted); }
.jm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jm-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 10px 20px; }
.jm-table td { padding: 12px 20px; border-top: 1px solid #eef0f4; }
.jm-table td:last-child { text-align: right; }
.jm-table strong { font-weight: 600; }
.jm-code { font-size: 12px; font-weight: 700; color: var(--navy); background: #eef2fa; border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.btn-primary.jm-sm { padding: 7px 14px; font-size: 12.5px; }

/* ── KONTAKTI / PERSONA ──────────────────────────────── */
.jm-contacts { display: flex; flex-direction: column; gap: 6px; }
.jm-contacts a { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); width: fit-content; }
.jm-contacts a:hover { color: var(--blue); }
.jm-contacts svg { color: var(--blue); flex-shrink: 0; }
.jm-person { display: flex; gap: 16px; align-items: flex-start; }
.jm-avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--blue); font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jm-role { font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--tag); margin-bottom: 2px; }

/* ── SOĻI ────────────────────────────────────────────── */
.jm-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.jm-steps li { counter-increment: s; position: relative; padding-left: 34px; font-size: 13.5px; line-height: 1.5; min-height: 24px; }
.jm-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.jm-kons { align-items: start; }
.jm-kons .jm-box { display: flex; flex-direction: column; height: 100%; }
.jm-kons .jm-checks { margin-bottom: 16px; }
.jm-kons .btn-primary { align-self: flex-start; margin-top: auto !important; }
.jm-box a:not(.btn-primary) { color: var(--blue); font-weight: 600; }

/* ── PLAKĀTS (pilna attēla vieta) ───────────────────── */
.jm-poster { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--light-bg); }
.jm-poster img { width: 100%; height: auto; display: block; }
.jm-poster .img-slot-label { height: 280px; border: none; border-radius: 0; }

.jm-mini { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 6px; }
.jm-mini td { padding: 6px 0; border-top: 1px solid #e5e7eb; }
.jm-mini tr:first-child td { border-top: none; }
.jm-mini td:last-child { text-align: right; font-weight: 600; }
.jm-doc-icon.web { font-size: 9px; }

/* ── JAUNĀS GRĀMATAS ─────────────────────────────────── */
.jm-books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.jm-book { display: flex; flex-direction: column; gap: 4px; }
.jm-book-cover { aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--light-bg); margin-bottom: 6px; transition: box-shadow .2s, transform .2s; }
.jm-book-cover .img-slot-label { height: 100%; border: none; border-radius: 0; font-size: 11px; }
.jm-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.jm-book:hover .jm-book-cover { box-shadow: 0 8px 20px rgba(10, 33, 85, .15); transform: translateY(-2px); }
.jm-book strong { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.jm-book:hover strong { color: var(--blue); }
.jm-book span { font-size: 12px; color: var(--muted); }
@media (max-width: 800px) { .jm-books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── PANEĻI (katra apakšsadaļa atsevišķi) ────────────── */
.jm-panel { display: none; animation: jmFade .2s ease; }
.jm-panel.active { display: block; }

@keyframes jmFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.jm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.jm-panel-title { display: flex; align-items: center; gap: 12px; }

.jm-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2fa;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jm-panel-title h2 { font-size: 21px; font-weight: 600; color: #111; }

.jm-sub { font-size: 15px; font-weight: 600; color: #111; margin: 30px 0 12px; }
.jm-text { font-size: 14.5px; line-height: 1.7; color: var(--text); max-width: 860px; margin-bottom: 12px; }
.jm-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ── ZIŅAS ───────────────────────────────────────────── */
.jm-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.jm-news-card { display: flex; flex-direction: column; gap: 8px; }

.jm-news-img {
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #c8cdd8;
  overflow: hidden;
  margin-bottom: 4px;
}

.jm-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.jm-news-card:hover .jm-news-img img { transform: scale(1.04); }

.jm-meta { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; color: var(--muted); }
.jm-meta .tag { font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tag); }

.jm-news-card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--text); transition: color .15s; }
.jm-news-card:hover h3 { color: var(--blue); }
.jm-news-card p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.jm-news-card .read-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--navy); }

/* ── KURSI ───────────────────────────────────────────── */
.jm-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.jm-course {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
}

.jm-course:hover { border-color: #c0d0e8; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }

.jm-course-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2fa;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jm-course strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.jm-course small { font-size: 11.5px; color: var(--muted); }
.jm-course > svg:last-child { margin-left: auto; color: #b0b7c6; flex-shrink: 0; }

/* ── IZCELTS PASĀKUMS ────────────────────────────────── */
.jm-event {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.jm-date {
  background: linear-gradient(135deg, #1565c0 0%, #0d3b8c 60%, var(--navy) 100%);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 14px 8px;
}

.jm-date strong { display: block; font-size: 34px; font-weight: 600; line-height: 1; }
.jm-date span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; opacity: .85; }
.jm-date small { display: block; font-size: 12px; margin-top: 6px; font-weight: 600; }

.jm-event h3 { font-size: 17px; font-weight: 600; color: #111; margin-bottom: 6px; }
.jm-event p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 10px; }

.jm-speakers { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text); }
.jm-speakers b { font-weight: 600; }

.jm-event-side { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
.jm-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.jm-chip {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 10px;
  background: var(--light-bg);
  color: var(--navy);
}

.jm-chip.free { background: #e8f5e9; color: var(--tag); }

/* ── INFO + ĶEKSĪŠU SARAKSTS ─────────────────────────── */
.jm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.jm-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fff;
}

.jm-box h4 { font-size: 14.5px; font-weight: 600; color: #111; margin-bottom: 8px; }
.jm-box p { font-size: 13.5px; line-height: 1.6; color: var(--text); margin-bottom: 8px; }
.jm-box.soft { background: var(--light-bg); border-color: transparent; }

.jm-checks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }

.jm-checks li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.5;
}

.jm-checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eef2fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231a5cb0' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}

/* ── IMPULSS UZVARĒTĀJI ──────────────────────────────── */
.jm-winners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.jm-year {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.jm-year-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--light-bg);
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.jm-year-head small { font-size: 12px; font-weight: 500; color: var(--muted); }

.jm-place {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 18px;
  border-top: 1px solid #eef0f4;
}

.jm-medal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #b0b7c6;
}

.jm-medal.m1 { background: #d9a400; }
.jm-medal.m2 { background: #8f99a8; }
.jm-medal.m3 { background: #b46a32; }
.jm-medal.m4 { background: var(--blue); font-size: 14px; }

.jm-place-body { flex: 1; min-width: 0; }
.jm-place-body strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.jm-place-body span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.jm-prize { font-size: 13px; font-weight: 700; color: var(--tag); white-space: nowrap; }

/* ── DOKUMENTI / SAITES ──────────────────────────────── */
.jm-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.jm-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.jm-doc:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(26, 92, 176, .1); }

.jm-doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: var(--muted);
}

.jm-doc-icon.pdf   { background: #d93838; }
.jm-doc-icon.video { background: #7b4bb3; }
.jm-doc-icon.web   { background: var(--navy); }
.jm-doc-icon.ppt   { background: #d9701e; }

.jm-doc-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.jm-doc-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.jm-doc > svg { color: var(--blue); flex-shrink: 0; }

/* ── IZCELTA SAITE (resursu centrs, katalogs) ─────────── */
.jm-promo {
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 14px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #1565c0 0%, #0d3b8c 60%, var(--navy) 100%);
  color: #fff;
  flex-wrap: wrap;
}

.jm-promo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jm-promo > div:nth-child(2) { flex: 1; min-width: 240px; }
.jm-promo h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.jm-promo p { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); }

.jm-promo a.jm-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}

.jm-promo a.jm-btn-light:hover { background: #eef2fa; }
.jm-promo .jm-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.jm-promo .jm-btn-ghost:hover { background: rgba(255,255,255,.1); }
.jm-promo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* kataloga kategorijas */
.jm-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }

.jm-cat {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .15s, border-color .15s;
}

.jm-cat:hover { border-color: #c0d0e8; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.jm-cat .jm-course-icon { margin-bottom: 4px; }
.jm-cat strong { font-size: 15px; font-weight: 600; color: #111; }
.jm-cat span { font-size: 12.5px; color: var(--muted); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .jm-news, .jm-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jm-event { grid-template-columns: 100px 1fr; }
  .jm-event-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .jm-two, .jm-winners, .jm-docs { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .jm-switch { padding: 0 16px; }
  .jm-table th:first-child, .jm-table td:first-child { display: none; }
  .jm-table td, .jm-table th { padding: 10px 12px; }
  .jm-stats, .jm-gallery { grid-template-columns: 1fr 1fr; }
  .jm-news, .jm-courses, .jm-cats { grid-template-columns: minmax(0, 1fr); }
  .jm-checks { grid-template-columns: 1fr; }
  .jm-event { grid-template-columns: 1fr; }
  .jm-date { display: flex; gap: 10px; align-items: baseline; justify-content: center; }
}

/* ── PHP versijas papildinājumi ─────────────────────── */
.jm-empty { font-size: 14px; color: var(--muted); padding: 8px 0; }
.jm-empty a { color: var(--blue); font-weight: 600; }
.jm-overview-wrap { max-width: 1365px; margin: 32px auto 56px; padding: 0 24px; }
.jm-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; max-width: 860px; margin: 28px auto 0; }
.jm-ov-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s;
}
.jm-ov-row:hover { border-color: var(--blue); background: #f6f8fd; box-shadow: 0 3px 12px rgba(10, 33, 85, .07); }
.jm-ov-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; background: #eef2fa; color: var(--blue); display: flex; align-items: center; justify-content: center; }
.jm-ov-row:hover .jm-ov-icon { background: var(--blue); color: #fff; }
.jm-ov-name { flex: 1; font-size: 15px; font-weight: 600; }
.jm-ov-arrow { color: var(--blue); font-weight: 700; transition: transform .15s; }
.jm-ov-row:hover .jm-ov-arrow { transform: translateX(3px); }
@media (max-width: 600px) { .jm-overview { grid-template-columns: minmax(0, 1fr); } }

/* ── Gari plakāti: samazināti, klikšķis — pilnā izmērā ── */
.jm-poster.is-zoom { position: relative; max-height: 380px; cursor: zoom-in; }
.jm-poster.is-zoom::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.95)); pointer-events: none; }
.jm-poster.is-zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.jm-zoom-btn { position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.jm-poster.is-zoom:hover .jm-zoom-btn { background: var(--blue); }
.jm-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px 70px; background: rgba(10,20,45,.9); cursor: zoom-out; }
.jm-lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 40px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.jm-lightbox-x { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 20px; cursor: pointer; }
body.jm-noscroll { overflow: hidden; }
/* ══ SATURS NO ADMIN VIDES (bloki) ══════════════════════ */
.jm-blk + .jm-blk { margin-top: 16px; }
.jm-blk > .jm-sub:first-child { margin-top: 14px; }
.jm-panel-head + .jm-blk > .jm-sub:first-child { margin-top: 0; }
.jm-cols { display: grid; gap: 14px; }
.jm-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jm-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jm-col { min-width: 0; display: flex; flex-direction: column; }
.jm-col > .jm-sub:first-child { margin-top: 0; }
.jm-col > .jm-box, .jm-col > .jm-year { flex: 1; }
.jm-col .jm-docs { grid-template-columns: minmax(0, 1fr); align-content: start; }
.jm-cols .jm-box { display: flex; flex-direction: column; }
.jm-box .jm-chips { margin-bottom: 10px; }
.jm-box .jm-checks { grid-template-columns: 1fr; margin-bottom: 8px; }
.jm-box .jm-steps { margin-bottom: 8px; }
.jm-box-btn { align-self: flex-start; margin-top: 14px; }
.jm-cols .jm-box-btn { margin-top: auto; }
.jm-cols .jm-box > .jm-rich:not(:last-child), .jm-cols .jm-box > .jm-contacts:not(:last-child) { margin-bottom: 16px; }
.jm-rich > :last-child { margin-bottom: 0; }
.jm-rich + .jm-contacts { margin-top: 10px; }
.jm-text.jm-rich p { margin-bottom: 12px; }
.jm-text.jm-rich ul, .jm-text.jm-rich ol { margin: 0 0 12px; }
.jm-rich h3 { font-size: 16px; font-weight: 600; color: #111; margin: 16px 0 8px; }
.jm-rich h4 { font-size: 14.5px; font-weight: 600; color: #111; margin: 14px 0 6px; }
.jm-rich a { color: var(--blue); font-weight: 600; }
.jm-rich blockquote { border-left: 3px solid var(--blue); padding-left: 14px; color: var(--muted); margin: 0 0 12px; }
.jm-table-box { padding: 0; overflow: hidden; }
.jm-table-wrap { overflow-x: auto; }
.jm-posters { display: flex; flex-direction: column; gap: 14px; }
.jm-gallery .img-slot a { display: block; height: 100%; }
@media (max-width: 1100px) {
  .jm-cols-2 { grid-template-columns: minmax(0, 1fr); }
  .jm-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .jm-cols-3 { grid-template-columns: minmax(0, 1fr); }
  .jm-table:not(.has-code) th:first-child, .jm-table:not(.has-code) td:first-child { display: table-cell; }
}
.jm-cols .jm-box.jm-person { flex-direction: row; }

/* plakāti: 2+ attēli vienā blokā — kolāža, max 3 rindā, rindā vienāds augstums (platums pēc attēla proporcijām) */
.jm-posters.is-kolaza { gap: 14px; }
.jm-poster-row { display: flex; gap: 14px; }
.jm-poster-row > .jm-poster { flex: var(--r) 1 0; aspect-ratio: var(--r); max-height: none; min-width: 0; position: relative; cursor: zoom-in; }
.jm-poster-row.is-dala > .jm-poster { flex: 0 1 calc(var(--r) * 300px); }      /* nepilna rinda — neizstiepj */
.jm-poster-row > .jm-poster img, .jm-poster-row > .jm-poster a { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.jm-posters.is-kolaza .jm-poster.is-zoom::after { height: 70px; }
.jm-posters.is-kolaza .jm-poster.is-viss::after { display: none; }
.jm-posters.is-kolaza .jm-zoom-btn { font-size: 12.5px; padding: 7px 13px; bottom: 12px; white-space: nowrap; }
@media (max-width: 600px) { .jm-poster-row { flex-wrap: wrap; } .jm-poster-row > .jm-poster, .jm-poster-row.is-dala > .jm-poster { flex: var(--r) 1 calc(var(--r) * 150px); } .jm-posters.is-kolaza .jm-zoom-btn { font-size: 0; gap: 0; padding: 8px; } }

.jm-kurss { color: inherit; text-decoration: none; }
.jm-kurss:hover { text-decoration: underline; }
.jm-muted { color: #6b7280; font-size: .92em; }
.jm-start { color: #b3261e; font-weight: 700; white-space: nowrap; }

.jm-nogroup h4 { margin: 0 0 14px; }
.jm-nogroup-in { display: flex; gap: 14px; align-items: flex-start; }
.jm-nogroup-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eef3fb; color: #1d5fb4; }
.jm-nogroup-in strong { display: block; font-size: 16px; margin-bottom: 2px; }
.jm-nogroup-in p { margin: 0; color: #6b7280; }
.jm-nogroup-in { flex-wrap: wrap; align-items: center; }
.jm-nogroup-btn { margin-left: auto; white-space: nowrap; }

.jm-doc-wrap { display: flex; flex-direction: column; border: 1px solid #e3e7ef; border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.jm-doc-wrap:hover { border-color: #c9d3e3; box-shadow: 0 6px 18px rgba(23, 32, 58, .07); }
.jm-doc-wrap .jm-doc { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.jm-doc-piel { display: flex; align-items: flex-start; gap: 7px; margin: -6px 16px 14px 65px; color: #1d5fb4; font-size: 13.5px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.jm-doc-piel svg { flex: none; margin-top: 1px; }
.jm-doc-piel small { color: #6b7280; font-weight: 400; white-space: nowrap; }
.jm-doc-piel:hover { text-decoration: underline; }
@media (max-width: 600px) { .jm-doc-piel { margin-left: 16px; } }