/* ============================================================
   Latvijas Universitāte — Lecture Schedule
   Styled after luis.lu.lv  |  Primary: #004a87
   ============================================================ */

/* --- Reset & base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #004a87; text-decoration: none; }
a:hover { text-decoration: underline; color: #003366; }

/* --- LU page header (mirrors luis.lu.lv exactly) ---------- */
.pageHeader {
  background-color: #004a87;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-top: 10px;
  position: relative;
}
/* dark overlay on the photo */
.pageHeader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 100, 0.62);
  pointer-events: none;
}
.pageHeader > * { position: relative; }

/* Top row — language switcher */
div.rb_top { height: 35px; overflow: hidden; }
div.rb_top div.lng {
  float: right;
  padding: 6px 14px 0 0;
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .88rem;
  font-weight: 700;
}
div.rb_top div.lng a { color: rgba(255,255,255,.6); text-decoration: none; }
div.rb_top div.lng a.active { color: #fff; }
div.rb_top div.lng a:hover { color: #fff; }
.lang-sep { color: rgba(255,255,255,.35); }

/* Logo */
.menuRibbon__logo-wrap { padding-left: 0; }
.menuRibbon__logo { display: inline-block; }
.menuRibbon__logo:hover { opacity: .88; }
.menuRibbon__logo img { display: block; }

/* Navigation rows */
div.navigation_inner { clear: both; }
div.navigation_inner.pad_b2 { padding-bottom: 7px; color: #fff; display: block; }
div.left_mrg { margin-left: 28px; }

div.txtb_small_link {
  color: #fff;
  padding: 2px 10px;
  display: inline;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
div.txtb_small_curent_levpages_link {
  color: #fff;
  padding: 2px 10px;
  float: left;
  margin-right: 4px;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
div.dp { padding: 4px 10px; }

a.white { color: #fff; text-decoration: none; }
a.white:hover { color: #fff; text-decoration: underline; }
a.white.active { color: #fff; font-weight: 900; }
a.fs2 { font-weight: 700; font-size: 1.35rem; letter-spacing: .08em; }
a.fs4 { font-weight: 700; font-size: 3.2rem;  letter-spacing: .06em; line-height: 1.1; }

/* --- Info bar (term + group) ------------------------------ */
.info-bar {
  background: #eeeeee;
  border-bottom: 1px solid #d8d8d8;
}
.info-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .4rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #333;
}
.info-term  { font-weight: 600; color: #004a87; }
.info-sep   { color: #aaa; }
.info-group { font-weight: 600; color: #333; }
.info-dept  { color: #777; font-size: .78rem; }

/* --- Main & footer ---------------------------------------- */
.site-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}
.site-footer {
  background: #004a87;
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: .65rem 1rem;
  font-size: .78rem;
  margin-top: auto;
}
.site-footer-inner { }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  padding: .35rem .9rem;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #004a87;
  background: #fff;
  color: #004a87;
  text-decoration: none;
  transition: background .1s, color .1s;
}
.btn:hover { background: #e6eef5; text-decoration: none; }
.btn-primary { background: #004a87; color: #fff; }
.btn-primary:hover { background: #003575; color: #fff; }
.btn-secondary { background: #eeeeee; border-color: #ccc; color: #333; }
.btn-secondary:hover { background: #e0e0e0; }
.btn-ghost { border-color: transparent; background: transparent; color: #004a87; }
.btn-ghost:hover { background: #e6eef5; }
.btn-disabled { opacity: .4; cursor: default; pointer-events: none; }

/* --- Index page ------------------------------------------- */
.page-index { max-width: 900px; }

.page-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #004a87;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: .65rem;
  flex-wrap: wrap;
  padding-bottom: .5rem;
  border-bottom: 2px solid #004a87;
}
.heading-term {
  font-size: .88rem;
  font-weight: 400;
  color: #666;
}

/* Department accordion */
.dept-list { display: flex; flex-direction: column; gap: .4rem; }

.dept-details {
  border: 1px solid #ccd9e6;
  background: #fff;
}

.dept-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: #e6eef5;
  border-left: 4px solid #004a87;
}
.dept-summary::-webkit-details-marker { display: none; }
.dept-summary::before {
  content: "▶";
  font-size: .6rem;
  color: #004a87;
  flex-shrink: 0;
  transition: transform .15s;
}
.dept-details[open] > .dept-summary::before { transform: rotate(90deg); }
.dept-summary:hover { background: #d4e4f0; }

.dept-name { font-weight: 700; font-size: .92rem; color: #004a87; flex: 1; }
.dept-meta { font-size: .75rem; color: #666; white-space: nowrap; }

.dept-body {
  border-top: 1px solid #ccd9e6;
  padding: .5rem .75rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* Course accordion */
.course-details {
  border: 1px solid #e2eaf2;
  background: #fafbfd;
}
.course-details[open] { background: #fff; border-color: #ccd9e6; }

.course-summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .75rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.course-summary::-webkit-details-marker { display: none; }
.course-summary::before {
  content: "▶";
  font-size: .55rem;
  color: #99b3cc;
  flex-shrink: 0;
  transition: transform .15s;
}
.course-details[open] > .course-summary::before { transform: rotate(90deg); color: #004a87; }
.course-summary:hover { background: #eef4f9; }

.course-name { font-weight: 500; font-size: .88rem; color: #1a1a1a; flex: 1; }
.course-group-count { font-size: .78rem; color: #999; font-weight: 400; margin-left: .25rem; }
.course-level { font-size: .78rem; color: #777; font-weight: 400; margin-left: .35rem; }

.course-other .course-name { color: #666; font-style: italic; }

/* Group list inside course */
.group-list { list-style: none; padding: .2rem .75rem .5rem 2rem; display: flex; flex-direction: column; gap: .2rem; }
.group-link {
  display: block;
  padding: .3rem .6rem;
  font-size: .85rem;
  color: #004a87;
  border: 1px solid transparent;
  transition: background .1s, border-color .1s;
}
.group-link:hover {
  background: #e6eef5;
  border-color: #b3c9de;
  text-decoration: none;
}

/* Search box on index */
.search-box {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.search-box .input-search {
  flex: 1;
  max-width: 420px;
  border-radius: 3px;
}
.idx-hidden { display: none !important; }
.idx-no-results { padding: .6rem 0; color: #888; font-size: .9rem; }

.hint-msg, .empty-msg {
  color: #666;
  font-size: .9rem;
  padding: 1.5rem 0;
}

/* --- Weekly view ------------------------------------------ */
.weekly-page {}

.week-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.week-label {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
  color: #004a87;
}
.week-num { color: #888; font-size: .8rem; margin-left: .4rem; }

.timetable-wrap {
  overflow-x: auto;
  border: 1px solid #ccd9e6;
  background: #fff;
}

.timetable {
  display: grid;
  /* 2026-07-30 #108042 arī svētdiena */
  grid-template-columns: 50px repeat(7, minmax(120px, 1fr));
  min-width: 950px;
}

/* Day header cells */
.tt-time-col { background: #f4f4f4; border-right: 1px solid #dde6ef; }

.tt-day-header {
  padding: .45rem .4rem;
  text-align: center;
  border-bottom: 2px solid #ccd9e6;
  border-left: 1px solid #dde6ef;
  background: #f4f4f4;
}
.tt-day-header.today { background: #e6eef5; border-bottom-color: #004a87; }
.day-name { font-size: .75rem; font-weight: 700; color: #004a87; letter-spacing: .05em; } /* #108700 bez uppercase — Pr, Ot, ... */
.day-date { font-size: .72rem; color: #888; }

/* Body columns */
.tt-body-time {
  position: relative;
  border-right: 1px solid #dde6ef;
}
.hour-label {
  position: absolute;
  right: 4px;
  font-size: .67rem;
  color: #aaa;
  transform: translateY(-50%);
  white-space: nowrap;
  line-height: 1;
}

.tt-day-col {
  position: relative;
  border-left: 1px solid #dde6ef;
}
.hour-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #f0f0f0;
}
.hour-line:nth-child(3n) { border-top-color: #dde6ef; }

/* Event blocks */
.ev-block {
  position: absolute;
  left: 1px;
  right: 1px;
  padding: 3px 5px;
  font-size: .7rem;
  line-height: 1.3;
  overflow: hidden;
  border-left: 3px solid transparent;
  cursor: default;
  transition: opacity .15s;
}
.ev-block:hover { opacity: .85; }

/* 2026-07-30 #107993 krāsas pēc nodarbības tipa — vecās LSAR krāsas (PUB_NOD get_krasa L/P/E/K) */
.ev-lecture   { background: #4fa5eb; border-left-color: #1d6fae; color: #082c47; }
.ev-practical { background: #86CFFF; border-left-color: #4fa5eb; color: #063a5e; }
.ev-exam      { background: #ed9f41; border-left-color: #c2410c; color: #42210b; }
.ev-consult   { background: #7FD07F; border-left-color: #2f8f3c; color: #0b3d16; }
.ev-default   { background: #eeeeee; border-left-color: #888;    color: #333; }

/* --- Colour legend under schedules (#107993) --------------- */
.color-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 12px 2px 4px; font-size: .78rem; color: #444; }
.legend-item  { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; border-left-width: 3px; border-left-style: solid; flex: none; }

.ev-time  { font-weight: 700; font-size: .65rem; white-space: nowrap; }
.ev-title { font-weight: 600; margin-top: 1px; }
.ev-title .ev-cat-link { color: inherit; text-decoration: underline dotted; }
.ev-title .ev-cat-link:hover { text-decoration: underline; }
.ev-meta  { color: inherit; opacity: .8; font-size: .72rem; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev-meta-staff { font-weight: 600; font-size: .75rem; }
.ev-meta-room     { font-size: .73rem; }
.ev-meta-building { font-size: .68rem; opacity: .65; }

/* --- Chronological view ----------------------------------- */
.chrono-page {}

/* Help nav button */
.help-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 50%;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  opacity: .85;
  transition: opacity .15s;
}
.help-nav-btn:hover { opacity: 1; }

/* Help page prose */
.help-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  line-height: 1.7;
}
.help-page h1 { font-size: 1.5rem; margin-bottom: .25rem; color: #004a87; }
.help-page h2 { font-size: 1.15rem; margin-top: 2rem; color: #004a87; border-bottom: 1px solid #d0dce8; padding-bottom: .3rem; }
.help-page h3 { font-size: 1rem; margin-top: 1.25rem; color: #1a3a5c; }
.help-page p, .help-page li { color: #222; }
.help-page ul, .help-page ol { padding-left: 2rem; }
.help-page code { background: #eef2f7; border-radius: 3px; padding: 1px 5px; font-size: .88em; }
.help-page pre { background: #eef2f7; border-radius: 6px; padding: .75rem 1rem; overflow-x: auto; }
.help-page table { border-collapse: collapse; width: 100%; margin: .75rem 0; font-size: .93rem; }
.help-page th { background: #004a87; color: #fff; padding: .4rem .75rem; text-align: left; }
.help-page td { border: 1px solid #d0dce8; padding: .35rem .75rem; }
.help-page tr:nth-child(even) td { background: #f5f8fc; }
.help-page blockquote { border-left: 3px solid #004a87; margin: .5rem 0; padding: .4rem .9rem; background: #f0f5fb; color: #444; border-radius: 0 4px 4px 0; }

.pdf-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .75rem;
}

.chrono-filter {
  display: flex;
  gap: .75rem;
  align-items: flex-end;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #ccd9e6;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
}
.chrono-filter label {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .78rem;
  color: #555;
  font-weight: 600;
}
.chrono-filter input[type="date"] {
  padding: .3rem .55rem;
  border: 1px solid #ccc;
  font-size: .88rem;
}

.day-section { margin-bottom: 1.5rem; }
.day-heading {
  font-size: .95rem;
  font-weight: 700;
  color: #004a87;
  padding: .35rem 0 .35rem;
  border-bottom: 2px solid #004a87;
  margin-bottom: .5rem;
}

.event-list { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.event-row {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid #dde6ef;
  padding: .5rem .85rem;
  align-items: flex-start;
  transition: border-color .1s;
}
.event-row:hover { border-color: #004a87; }
.event-row.past { opacity: .5; }
/* 2026-07-30 #107993 krāsas pēc nodarbības tipa
   2026-07-31 #107993 pilnie toņi kā Gundegas mapping + MELNS teksts visiem
   iekšējiem elementiem (pelēkie #555/#888 un tumši zilais #004a87 uz pilnajiem
   toņiem nebija salasāmi) */
.event-row.ev-lecture,
.search-result-row.ev-lecture   { background: #4fa5eb; border-left: 3px solid #1d6fae; color: #000; }
.event-row.ev-practical,
.search-result-row.ev-practical { background: #86CFFF; border-left: 3px solid #4fa5eb; color: #000; }
.event-row.ev-exam,
.search-result-row.ev-exam      { background: #ed9f41; border-left: 3px solid #c2410c; color: #000; }
.event-row.ev-consult,
.search-result-row.ev-consult   { background: #7FD07F; border-left: 3px solid #2f8f3c; color: #000; }
/* melnā teksta inherit noteikums pārcelts aiz .chrono-* definīcijām (~906. r.) —
   vienāda specifiskuma dēļ uzvar vēlākais noteikums failā */

.ev-row-time {
  min-width: 95px;
  font-size: .82rem;
  font-weight: 700;
  color: #004a87;
  white-space: nowrap;
  padding-top: .1rem;
}
.time-sep { margin: 0 .15rem; color: #aaa; }

.ev-row-body { flex: 1; }
.ev-row-title { font-weight: 600; font-size: .9rem; color: #1a1a1a; }
.ev-row-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; align-items: center; }
.meta-item { font-size: .82rem; color: #444; }
.meta-staff { font-weight: 600; font-size: .86rem; color: #1a1a1a; }
.meta-room  { font-size: .82rem; color: #444; }
.meta-building { font-size: .78rem; color: #888; }
.meta-badge {
  font-size: .67rem;
  background: #eeeeee;
  color: #555;
  padding: .1rem .4rem;
  border: 1px solid #ccc;
  font-weight: 600;
}
.meta-badge.online { background: #fef3c7; color: #92400e; border-color: #f6d860; }

/* --- Form controls --------------------------------------- */
.select-dept, .input-search, select, input[type="date"] {
  padding: .35rem .6rem;
  border: 1px solid #ccc;
  font-size: .88rem;
  color: #333;
  background: #fff;
}
select:focus, input:focus { outline: 2px solid #004a87; outline-offset: 0; }

/* --- Hover tooltip ---------------------------------------- */
.ev-tooltip {
  position: fixed;
  z-index: 1500;
  background: #fff;
  border: 1px solid #ccd9e6;
  border-left: 4px solid #004a87;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  padding: .55rem .85rem;
  max-width: 300px;
  min-width: 160px;
  pointer-events: none;
  font-size: .82rem;
  color: #222;
  line-height: 1.4;
}
.ev-tooltip-date   { color: #004a87; font-size: .73rem; margin-bottom: .15rem; }
.ev-tooltip-time   { font-weight: 700; color: #004a87; font-size: .75rem; margin-bottom: .2rem; }
.ev-tooltip-title  { font-weight: 600; color: #1a1a1a; }
.ev-tooltip-row    { color: #555; margin-top: .2rem; font-size: .78rem; }
.ev-tooltip-group  { white-space: pre-line; }

/* --- Detail modal ----------------------------------------- */
.ev-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ev-modal {
  background: #fff;
  max-width: 500px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 4px solid #004a87;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.ev-modal-close {
  position: absolute;
  top: .55rem;
  right: .7rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #777;
  line-height: 1;
  padding: .15rem .3rem;
}
.ev-modal-close:hover { color: #004a87; }

.ev-modal-header {
  background: #e6eef5;
  padding: .85rem 2.5rem .85rem 1.1rem;
  border-bottom: 1px solid #ccd9e6;
}
.ev-modal-title    { font-size: 1.05rem; font-weight: 700; color: #004a87; line-height: 1.35; }
.ev-modal-title-en { font-size: .85rem; color: #666; margin-top: .25rem; }

.ev-modal-body {
  padding: .9rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.ev-modal-row {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  font-size: .88rem;
}
.ev-modal-label {
  color: #888;
  min-width: 76px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.ev-modal-value { color: #1a1a1a; flex: 1; }
.ev-modal-value-groups { white-space: pre-line; }
.ev-modal-value a { color: #004a87; }
.ev-modal-value a:hover { text-decoration: underline; }
.ev-modal-online { margin-top: .3rem; display: inline-block; }

/* --- Search panel (inline, below header) ------------------ */
.search-panel {
  background: #eef3f8;
  border-bottom: 2px solid #ccd9e6;
}
.search-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.search-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-panel-title {
  font-size: .95rem;
  font-weight: 700;
  color: #004a87;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.search-panel-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #888;
  cursor: pointer;
  padding: .1rem .4rem;
  border-radius: 3px;
  line-height: 1;
}
.search-panel-close:hover { color: #004a87; }

.search-field-group {
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.search-field-label {
  font-size: .72rem;
  font-weight: 700;
  color: #556;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.search-input-row {
  display: flex;
  gap: .5rem;
}
.search-text-input {
  flex: 1;
  border: 1.5px solid #c5d3e0;
  border-radius: 4px;
  padding: .42rem .7rem;
  font-size: .9rem;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.search-text-input:focus { border-color: #004a87; }
.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #004a87;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .42rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.search-submit-btn:hover { background: #003366; }
.search-filters-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.search-filters-row .search-field-group { flex: 1; min-width: 140px; }
.search-select,
.search-date-input,
.chrono-date-input {
  width: 100%;
  border: 1.5px solid #c5d3e0;
  border-radius: 4px;
  padding: .38rem .6rem;
  font-size: .88rem;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.search-select:focus,
.search-date-input:focus,
.chrono-date-input:focus { border-color: #004a87; }
.filters-clear-all {
  margin-left: auto;
  margin-right: .5rem;
  font-size: .78rem;
  color: #777;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.filters-clear-all:hover { color: #c0392b; }
.filters-clear-all--inactive { opacity: .35; pointer-events: none; }
.search-results-placeholder {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .4rem 0 .2rem;
  color: #aaa;
  font-size: .88rem;
}
.search-results-placeholder svg { opacity: .4; flex-shrink: 0; }

/* --- Search page ------------------------------------------ */
.search-page {
  /* 2026-07-30 #108601 vienots platums ar grupu lapām — 900px cap noņemts,
     platumu dod .site-main (1200px); sānu padding arī no .site-main */
  padding: 1.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.search-page-form {
  background: #fff;
  border: 1px solid #dde6ef;
  border-radius: 6px;
  padding: 1.3rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.search-field-group--wide { width: 100%; }

/* Label row — label + help toggle on same line */
.search-label-row {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-bottom: .25rem;
}
.search-label-row .search-field-label { margin-bottom: 0; }

/* Help toggle "?" button */
.search-help-details { position: relative; display: inline-block; }
.search-help-details summary.search-help-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #dce8f5;
  color: #004a87;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  line-height: 1;
  border: none;
  outline: none;
  transition: background .15s;
  user-select: none;
}
.search-help-details summary.search-help-toggle::-webkit-details-marker { display: none; }
.search-help-details summary.search-help-toggle:hover { background: #b8d0ea; }
.search-help-details[open] summary.search-help-toggle { background: #004a87; color: #fff; }

/* Help panel */
.search-help-body {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  z-index: 120;
  background: #fff;
  border: 1px solid #c8d9e8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,74,135,.13);
  padding: .7rem .9rem .6rem;
  min-width: 290px;
  max-width: 380px;
  font-size: .82rem;
  color: #2a3a4a;
  line-height: 1.45;
}
.search-help-body p { margin: 0 0 .4rem; }
.search-help-body ul { margin: 0; padding-left: 1.1rem; }
.search-help-body li { margin-bottom: .18rem; }
.search-help-body code {
  background: #edf3fa;
  border-radius: 3px;
  padding: .05em .28em;
  font-size: .9em;
  font-family: monospace;
  color: #004a87;
}

.search-filters-details { border-top: 1px solid #e8eef4; margin-top: .2rem; }
.search-filters-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .1rem;
  cursor: pointer;
  list-style: none;
  font-size: .78rem;
  font-weight: 700;
  color: #004a87;
  text-transform: uppercase;
  letter-spacing: .05em;
  user-select: none;
}
.search-filters-summary::-webkit-details-marker { display: none; }
.search-filters-chevron { transition: transform .2s; flex-shrink: 0; color: #004a87; }
.search-filters-details:not([open]) .search-filters-chevron { transform: rotate(-90deg); }
.search-filters-details[open] .search-grid { padding-top: .55rem; }
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem .85rem;
}
@media (max-width: 700px) {
  .search-grid { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 960px) {
  .search-grid { grid-template-columns: repeat(2, 1fr); }
}
.search-results { display: flex; flex-direction: column; gap: 0; }
.search-results-count {
  font-size: .82rem;
  color: #667;
  padding: .4rem 0 .6rem;
  border-bottom: 1px solid #e4eaf0;
  margin-bottom: .4rem;
}
.search-day-heading {
  font-size: .82rem;
  font-weight: 700;
  color: #004a87;
  padding: .7rem 0 .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.search-result-row {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .85rem;
  align-items: baseline;
  padding: .45rem .6rem;
  border-radius: 4px;
  font-size: .88rem;
  cursor: default;
}
.search-result-row:hover { background: #f0f5fa; }
.search-result-row .chrono-time  { font-weight: 700; color: #004a87; white-space: nowrap; min-width: 90px; }
.search-result-row .chrono-title { font-weight: 600; color: #1a1a1a; flex: 1 1 200px; }
.search-result-row .chrono-programme { color: #004a87; font-size: .80rem; font-weight: 600; }
.search-result-row .chrono-module { color: #334; font-size: .82rem; }
.search-result-row .chrono-staff  { color: #555; font-size: .82rem; }
.search-result-row .chrono-room     { color: #555; font-size: .82rem; }
.search-result-row .chrono-building { color: #777; font-size: .78rem; font-style: italic; }
.search-result-row .chrono-groups-list { display: block; width: 100%; flex-basis: 100%; }
.search-result-row .chrono-group  { display: block; color: #888; font-size: .78rem; font-style: italic; }

/* 2026-07-31 #107993 melns teksts pilno toņu rindās — visiem iekšējiem elementiem
   (chrono-*, meta-*, ev-row-*); OBLIGĀTI pēc .chrono-* definīcijām augstāk, jo
   specifiskums vienāds un uzvar vēlākais noteikums failā */
.event-row.ev-lecture *, .event-row.ev-practical *, .event-row.ev-exam *, .event-row.ev-consult *,
.search-result-row.ev-lecture *, .search-result-row.ev-practical *, .search-result-row.ev-exam *, .search-result-row.ev-consult * { color: inherit; }
/* 2026-08-26 #109135/#109118: statusa marķieriem SAVA krāsa — augšējais inherit
   noteikums (0,2,0) pārspēja to klases (0,1,0) un teksts saplūda ar fonu */
.event-row .ev-cancelled-label, .search-result-row .ev-cancelled-label { color: #c00000; }
.event-row .kiosk2-now, .search-result-row .kiosk2-now { color: #1a1a1a; }

/* Suppress native browser clear on type=search */
.search-text-input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Date-picker wrapper: [text input] [×] [📅] in a flex row */
.date-inp-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
}
/* The text input stretches to fill available space; square corners on the right
   because the × and 📅 buttons sit flush against it */
.date-inp-wrap .search-date-input,
.date-inp-wrap .chrono-date-input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 5px 0 0 5px;
  border-right: none;
}
/* Inline × button between the text input and the calendar button */
.date-clear-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  background: #f0f4f8;
  border: 1.5px solid #c5d3e0;
  border-left: none;
  border-radius: 0;
  cursor: pointer;
  color: #888;
  font-size: .85rem;
  line-height: 1;
  transition: color .15s, background .15s;
}
.date-clear-btn:hover { color: #c0392b; background: #fdecea; }
/* Calendar icon button on the far right */
.date-picker-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .5rem;
  background: #f0f4f8;
  border: 1.5px solid #c5d3e0;
  border-left: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  color: #004a87;
  transition: background .15s;
}
.date-picker-btn:hover { background: #d9e6f2; }
.date-native-hidden { display: none; }

/* Wrapper for text/date inputs with inline clear button */
.text-inp-wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
.text-inp-wrap .search-text-input,
.text-inp-wrap .search-date-input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 1.8rem;
}
.text-inp-wrap .combo-clear { right: .4rem; }

/* Combobox (replaces native select in search filters) */
.combo-wrap {
  position: relative;
}
/* Cross-filter loading state — briefly dims dropdowns during AJAX fetch */
.combo-wrap.combo-loading .combo-input  { opacity: .55; pointer-events: none; }
.combo-wrap.combo-loading .combo-arrow  { opacity: .35; }
.combo-wrap.combo-loading .combo-clear  { pointer-events: none; }
.combo-input {
  width: 100%;
  border: 1.5px solid #c5d3e0;
  border-radius: 4px;
  padding: .38rem 1.8rem .38rem .6rem;
  font-size: .88rem;
  color: #222;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .15s;
}
.combo-input:focus { border-color: #004a87; cursor: text; }
.combo-clear {
  position: absolute;
  right: 1.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 .1rem;
  z-index: 1;
}
.combo-clear:hover { color: #444; }
.combo-arrow {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: .7rem;
  transition: transform .15s;
}
.combo-arrow::after { content: '▾'; }
.combo-arrow--open { transform: translateY(-50%) rotate(180deg); }
.combo-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 300;
  border: 1.5px solid #004a87;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: #fff;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.combo-option {
  padding: .35rem .65rem;
  font-size: .88rem;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.combo-option:hover,
.combo-option:focus { background: #e8f1fa; }
.combo-option--selected { background: #d0e4f5; font-weight: 600; }

/* Keyword autocomplete suggestions — override single-line truncation */
.kw-suggest-option {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  white-space: normal;
}
.kw-suggest-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kw-suggest-type {
  flex: 0 0 auto;
  font-size: .7rem;
  color: #7a8fa6;
  background: #eef2f7;
  border-radius: 3px;
  padding: .05rem .3rem;
  line-height: 1.5;
}

.search-results-placeholder--page {
  flex-direction: column;
  padding: 2.5rem 0 1rem;
  gap: .8rem;
  font-size: .95rem;
  color: #999;
}

/* --- 404 page --------------------------------------------- */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-code  { font-size: 5rem; font-weight: 800; color: #ccd9e6; line-height: 1; }
.error-title { font-size: 1.4rem; font-weight: 700; margin: .5rem 0; color: #004a87; }
.error-msg   { color: #666; margin-bottom: 1.5rem; }

/* --- Group schedule heading -------------------------------- */
.group-heading {
  margin-bottom: 1rem;
  padding: .65rem 1rem .7rem;
  background: #fff;
  border-left: 4px solid #004a87;
  border-bottom: 1px solid #ccd9e6;
}

.gh-row {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  line-height: 1.45;
}
.gh-label {
  font-size: .72rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .04em;
  min-width: 6.5rem;
  flex-shrink: 0;
}
.gh-val {
  font-size: .88rem;
  color: #333;
}
.gh-row-group { margin-top: .35rem; }
.gh-group-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #004a87;
  line-height: 1.2;
}

/* --- Week-list view (Nedēļa / RSU style) ------------------ */
.week-list-page {}

.wl-day {
  margin-bottom: 1rem;
  border: 1px solid #ccd9e6;
  background: #fff;
}
.wl-day.wl-today { border-color: #004a87; }
.wl-today .wl-day-heading { background: #e6eef5; border-left-color: #004a87; }

.wl-day-heading {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .5rem .85rem;
  background: #f4f7fb;
  border-left: 4px solid #99b3cc;
  border-bottom: 1px solid #ccd9e6;
}
.wl-day-name { font-weight: 700; font-size: .9rem; color: #004a87; text-transform: uppercase; letter-spacing: .04em; }
.wl-day-date { font-size: .8rem; color: #777; }

.wl-event-list { list-style: none; }
.wl-event-row {
  display: flex;
  gap: .85rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid #f0f4f8;
  cursor: pointer;
  transition: background .1s;
}
.wl-event-row:last-child { border-bottom: none; }
.wl-event-row:hover { background: #f4f7fb; }

.wl-ev-time {
  min-width: 100px;
  font-size: .85rem;
  font-weight: 700;
  color: #004a87;
  white-space: nowrap;
  padding-top: .1rem;
  flex-shrink: 0;
}
.wl-ev-body { flex: 1; }
.wl-ev-title {
  font-weight: 600;
  font-size: .9rem;
  color: #1a1a1a;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.wl-cat-link { color: #004a87; }
.wl-cat-link:hover { text-decoration: underline; }
.wl-ev-type {
  font-size: .72rem;
  color: #777;
  font-weight: 400;
  white-space: nowrap;
}
.wl-ev-meta {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .2rem;
  font-size: .8rem;
  color: #555;
}
.wl-ev-lecturer { font-weight: 600; color: #333; }
.wl-ev-room     { color: #555; }
.wl-ev-building { color: #888; font-size: .76rem; }

.wl-no-events {
  padding: .45rem .85rem;
  font-size: .82rem;
  color: #aaa;
  font-style: italic;
}

/* --- Bottom view switcher --------------------------------- */
.view-switcher-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.view-switcher-row .view-switcher,
.view-switcher-row .cal-sub-switcher { margin-bottom: 0; }

.view-switcher {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid #004a87;
  width: fit-content;
}
.view-link {
  display: inline-block;
  padding: .4rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: #004a87;
  text-decoration: none;
  border-right: 1px solid #004a87;
  letter-spacing: .03em;
  transition: background .1s, color .1s;
}
.view-link:last-child { border-right: none; }
.view-link:hover { background: #e6eef5; text-decoration: none; }
.view-link.active { background: #004a87; color: #fff; }

/* --- Semester schedule — Nedēļas skats ------------------------ */

/* Level 1 — Day section */
.ns-day-section {
  margin-bottom: 1.25rem;
  border: 1px solid #ccd9e6;
  background: #fff;
}

.ns-day-heading {
  margin: 0;
  padding: .45rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: #004a87;
}

/* Level 2 — Timeslot row (flex: time label + event list) */
.ns-slot {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #dde6ef;
}

.ns-slot-time {
  flex-shrink: 0;
  width: 110px;
  padding: .55rem .75rem;
  font-family: "Courier New", monospace;
  font-size: .82rem;
  font-weight: 700;
  color: #004a87;
  background: #f4f7fb;
  border-right: 2px solid #ccd9e6;
  white-space: nowrap;
}

/* Level 3 — Event list */
.ns-events {
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 0;
}

.ns-event {
  position: relative;
  padding: .5rem 2rem .5rem .85rem;
  border-bottom: 1px solid #f0f4f8;
  cursor: pointer;
  transition: background .1s;
}

.ns-event:last-child { border-bottom: none; }
.ns-event:hover { background: #f4f7fb; }

.ns-event-name {
  font-weight: 600;
  font-size: .88rem;
  color: #1a1a1a;
}

.ns-event-link { color: #004a87; }
.ns-event-link:hover { text-decoration: underline; }

.ns-event-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .2rem;
  font-size: .78rem;
  color: #555;
}

.ns-event-staff { font-weight: 600; color: #333; }
.ns-event-staff a,
.ns-event-room a  { color: #004a87; }
.ns-event-staff a:hover,
.ns-event-room a:hover { text-decoration: underline; }

.ns-event-building { color: #888; font-size: .73rem; }

.ns-event-weeks {
  margin-top: .25rem;
  font-size: .75rem;
  color: #777;
  line-height: 1.5;
}

/* --- Secondary calendar sub-switcher ---------------------- */
.cal-sub-switcher {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid #7aa3c8;
  width: fit-content;
}
.cal-sub-link {
  display: inline-block;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: #004a87;
  text-decoration: none;
  border-right: 1px solid #7aa3c8;
  transition: background .1s, color .1s;
}
.cal-sub-link:last-child { border-right: none; }
.cal-sub-link:hover { background: #e6eef5; text-decoration: none; }
.cal-sub-link.active { background: #5b8db8; color: #fff; }

/* --- Month view ------------------------------------------- */
.month-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
}
.month-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #004a87;
  min-width: 160px;
  text-align: center;
}

.month-grid {
  display: grid;
  /* 2026-07-30 #108042 arī svētdiena */
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #ccd9e6;
  border: 1px solid #ccd9e6;
}
/* 2026-07-30 #107957 nedēļas skats meklētājā — mēneša režģa variants ar 1 rindu */
.week-grid .month-cell { min-height: 160px; }
.week-cell .month-ev { display: flex; }        /* rāda visus, bez +N ierobežojuma */
.week-cell-empty { color: #999; }

.month-col-header {
  background: #004a87;
  color: #fff;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem 0;
}
.month-cell {
  background: #fff;
  min-height: 90px;
  padding: 4px;
}
.month-cell.today { background: #e6eef5; }
.month-cell.out-month { background: #f8fafc; }
.month-cell.out-month .month-cell-num { color: #787070; } /* #108704 WCAG AA kontrasts */
.month-cell-num {
  font-size: .72rem;
  font-weight: 700;
  color: #555;
  text-align: right;
  margin-bottom: 2px;
}

/* 2026-07-08 #107989 svētku/saīsināto dienu uzraksti (sarkans treknraksts kā vecajā LSAR) */
.day-holiday-label {
  color: #c00000;
  font-weight: 700;
  font-size: .68rem;
  line-height: 1.2;
  margin-bottom: 2px;
}

/* 2026-08-15 #109118 atcelto nodarbību uzraksts */
.ev-cancelled-label {
  color: #c00000;
  font-weight: 700;
}

.month-ev {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-size: .68rem;
  line-height: 1.3;
  border-radius: 2px;
  padding: 2px 4px;
  margin-bottom: 2px;
  cursor: pointer;
  border-left: 3px solid transparent;
  overflow: hidden;
}
.month-ev:hover { opacity: .8; }
.month-ev-body {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}
.month-ev-time { font-weight: 700; margin-right: 3px; }

/* --- Info icon button on event items ---------------------- */
.ev-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #004a87;
  background: none;
  color: #004a87;
  font-size: .6rem;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: .45;
  transition: opacity .15s, background .15s, color .15s;
  line-height: 1;
}
.ev-info-btn:hover { opacity: 1; background: #004a87; color: #fff; }

/* weekly grid: absolute top-right inside ev-block */
.ev-block .ev-info-btn { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; }

/* nedela-skats list: absolute top-right */
.ns-event .ev-info-btn { position: absolute; top: 7px; right: 7px; }

/* chrono list: flex item pushed to the right */
.event-row .ev-info-btn { align-self: center; margin-left: auto; }

/* monthly: small, flex-shrink already 0 */
.month-ev .ev-info-btn { width: 12px; height: 12px; font-size: .5rem; opacity: .4; }

/* --- Print / PDF ------------------------------------------ */
@media print {
  @page { margin: 1.2cm; }
  @page landscape { size: A4 landscape; }

  .no-print,
  .pageHeader, .info-bar, .chrono-filter, .view-switcher,
  .view-switcher-row, .cal-sub-switcher, .week-nav,
  .pdf-btn-row, .ev-info-btn,
  .ev-modal-overlay, #ev-tooltip,
  .site-footer, .gnav-links, .lang-switcher { display: none !important; }

  /* 2026-08-15 #109121 mēneša uzraksts drukā — slēpj tikai bultiņas */
  .month-nav .btn { display: none !important; }
  .month-nav { justify-content: center; margin-bottom: 6pt; }
  .month-nav-title { font-size: 12pt; }

  .site-main { padding: 0; }
  body { background: #fff; font-size: 10pt; color: #000; }

  /* Chronological / week-list */
  .event-row.past { opacity: 1; }
  .event-row { break-inside: avoid; border: 1px solid #ccc; margin-bottom: 4pt; }
  .day-heading { border-bottom: 1pt solid #004a87; color: #004a87; }

  /* Weekly timetable grid — landscape */
  .timetable-wrap { overflow: visible !important; }
  .timetable { font-size: 8pt; }
  .tt-cell { min-height: auto; }

  /* Monthly grid */
  .month-grid { font-size: 8pt; }
  .month-cell { min-height: auto; }

  /* 2026-08-15 #109121 rūtojums drukā — gap:1px fona triks drukā pazūd, īstas robežas */
  .month-grid { gap: 0; border: 1pt solid #99b3cc; background: none; }
  .month-cell, .month-col-header {
    border-right: .5pt solid #99b3cc;
    border-bottom: .5pt solid #99b3cc;
  }

  /* 2026-08-15 #109121 galvenes/notikumu/leģendas foni arī bez "Background graphics" */
  .month-col-header, .month-ev, .legend-swatch {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 680px) {
  .week-nav { gap: .3rem; }
  .week-label { order: -1; width: 100%; }
  .topbar-inner { flex-wrap: wrap; }
  .gnav-links { margin-left: 0; }
}

/* --- External link box-arrow icon ------------------------- */
.ext-link-arrow {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 3px;
  vertical-align: middle;
  opacity: 0.6;
  /* SVG: Feather "external-link" icon, stroke #005a9c (LU blue) */
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005a9c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  font-size: 0;    /* hide the ↗ text character */
  line-height: 0;
  text-decoration: none !important;
}
.ext-link-arrow:hover {
  opacity: 1;
}

/* 2026-07-09 #107957 meklētāja kalendāra (mēneša) skats */
.search-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e4eaf0;
  margin-bottom: .4rem;
}
.search-results-toolbar .search-results-count {
  border-bottom: none;
  margin-bottom: 0;
}
.search-view-switcher { margin-bottom: .4rem; }
.search-month .month-nav { margin-top: .6rem; }
.search-month .month-ev { cursor: pointer; }
/* šūnā rāda pirmos 4 notikumus; "+N vairāk" izvērš pārējos uz vietas */
.month-cell:not(.month-cell--expanded) .month-ev--extra { display: none; }
.month-more-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: .68rem;
  font-weight: 600;
  color: #004a87;
  text-align: left;
  cursor: pointer;
}
.month-more-btn:hover { text-decoration: underline; }
@media print {
  .month-ev--extra { display: flex !important; } /* drukā rāda visu */
  .month-more-btn, .search-view-switcher { display: none !important; }
}

/* 2026-08-16 #109135 kiosk=2 — telpas galvene un planšetēm pielāgots saraksts */
.kiosk2-header {
  display: flex; align-items: center; gap: 1.5rem;
  background: #003366; color: #fff;
  padding: .9rem 1.4rem; margin-bottom: 1rem; border-radius: 6px;
}
.kiosk2-logo { flex: 0 0 auto; display: block; }
.kiosk2-room { flex: 1 1 auto; min-width: 0; }
.kiosk2-room-name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.kiosk2-room-building { font-size: 1.05rem; opacity: .85; }
.kiosk2-date { flex: 0 0 auto; font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.search-page--kiosk2 .search-result-row { font-size: 1.15em; }
.search-page--kiosk2 .search-day-heading { font-size: 1.25em; }
.search-page--kiosk2 .chrono-groups-list { display: none; }
/* 2026-08-26 #109135 Gundegas 21.08 precizējumi: telpa/ēka rindās lieka
   (galvene tās jau rāda), saraksta teksts LU zilajā #093976; ATCELTS paliek
   sarkans un NOTIEK zaļš (tiem savi noteikumi ar tiešu krāsu) */
.search-page--kiosk2 .chrono-room,
.search-page--kiosk2 .chrono-building { display: none; }
.search-page--kiosk2 .search-result-row .chrono-time,
.search-page--kiosk2 .search-result-row .chrono-title,
.search-page--kiosk2 .search-result-row .chrono-programme,
.search-page--kiosk2 .search-result-row .chrono-staff { color: #093976; }
/* 2026-08-26 #109135 Gundegas 26.08 precizējumi: rindas bez tipa krāsu fona,
   ar atstarpi (dienas virsraksts un leģenda izņemti šablonos) */
.search-page--kiosk2 .search-result-row,
.search-page--kiosk2 .search-result-row.ev-lecture,
.search-page--kiosk2 .search-result-row.ev-practical,
.search-page--kiosk2 .search-result-row.ev-exam,
.search-page--kiosk2 .search-result-row.ev-consult {
  background: #fff;
  border: 1px solid #c9d6e4;
  border-radius: 4px;
  margin-bottom: .5rem;
}
/* 2026-08-26 #109135 NOTIEK: dzintara fons ar tumšu tekstu — izceļas uz baltajām
   rindām ar zilo tekstu (zaļš un zils disonēja) */
.kiosk2-now {
  background: #ffb300; color: #1a1a1a; font-weight: 700;
  padding: 0 .45em; border-radius: 4px; margin-right: .3em;
}
.search-result-row.now-running { box-shadow: inset 0 0 0 3px #093976; }
