/* Themed [group_events] lists (GEV_List_Themes). Shared card in templates/loop-theme.php; .gev-lt--{theme} picks the look. */
.gev-lt {
  --lt-blue: #1b6fd0; --lt-navy: #0c2a55; --lt-ink: #163d72; --lt-muted: #4a6489; --lt-soft: #5b7397;
  --lt-sky: #eaf3ff; --lt-sky2: #d6e8ff; --lt-line: #cfe0f7; --lt-red: #e11d2e; --lt-card: #fff;
  --lt-gap: 12px;
  --lt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.gev-lt-tool, .gev-lt-tool input, .gev-lt-tool button, .gev-lt-card, .gev-lt-card p, .gev-lt-empty { font-family: var(--lt-font); }
/* Sponsor banner (Settings → Mainokset): full width between card blocks, same rounding as the cards */
.gev-lt-list > .gev-list-ad { position: relative; line-height: 0; }
.gev-lt-list > .gev-list-ad[hidden] { display: none; }
.gev-lt-list > .gev-list-ad a, .gev-lt-list > .gev-list-ad > img { border-radius: 16px; }
.gev-lt--sarakkeet .gev-lt-list > .gev-list-ad a, .gev-lt--sarakkeet .gev-lt-list > .gev-list-ad > img { border-radius: 14px; }
.gev-lt--on-dark .gev-lt-list > .gev-list-ad a, .gev-lt--on-dark .gev-lt-list > .gev-list-ad > img { border-color: transparent; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.gev-lt--on-dark .gev-list-ad__label { background: rgba(0,0,0,.7); }

/* Toolbar: search + sort toggle on one compact row under the tabs */
.gev-lt .gev-list-toolbar { margin-bottom: 0 !important; }
.gev-lt-tool { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; }
.gev-lt-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; margin: 0 !important;
  background: #fff; border: 1.5px solid var(--lt-line); border-radius: 999px; color: var(--lt-soft); cursor: text; }
.gev-lt-search:focus-within { border-color: var(--lt-blue); }
.gev-lt-search svg { width: 16px; height: 16px; flex: none; }
.gev-lt .gev-lt-search input[type="search"] { flex: 1; min-width: 0; width: 100%; height: 34px; border: 0 !important; outline: 0; background: none !important;
  box-shadow: none !important; padding: 0 !important; margin: 0 !important; font-size: 14px; font-weight: 500; line-height: 1; color: var(--lt-ink); -webkit-appearance: none; appearance: none; }
.gev-lt .gev-lt-search input::placeholder { color: #8aa0bf; opacity: 1; }
.gev-lt .gev-lt-search input::-webkit-search-cancel-button { cursor: pointer; }
.gev-lt .gev-lt-sort { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; margin: 0; border-radius: 999px;
  border: 1.5px solid var(--lt-line); background: #fff; color: var(--lt-blue); font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
  text-transform: none; letter-spacing: 0; box-shadow: none; }
.gev-lt .gev-lt-sort:hover, .gev-lt .gev-lt-sort:focus-visible { border-color: var(--lt-blue); background: #fff; color: var(--lt-blue); }
.gev-lt-sort svg { width: 16px; height: 16px; flex: none; }
.gev-lt-empty { margin: 8px 0 0; color: var(--lt-soft); font-size: 15px; }

/* List: CSS grid until list-themes.js switches to masonry columns */
.gev-lt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--lt-gap); margin: 0 !important; padding: 0 !important; }
.gev-lt--sarakkeet .gev-lt-list { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; --lt-gap: 10px; }
.gev-lt-list.is-masonry { display: block; }
.gev-lt-cols { display: flex; gap: var(--lt-gap); align-items: flex-start; }
.gev-lt-cols + .gev-lt-cols, .gev-lt-list [data-gev-list-ad] + .gev-lt-cols { margin-top: var(--lt-gap); }
.gev-lt-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--lt-gap); }
.gev-lt-list > [data-gev-list-ad] { margin-top: var(--lt-gap); }
.gev-lt-card[hidden] { display: none !important; }

/* Card */
.gev-lt-card { position: relative; display: flex; flex-direction: column; background: var(--lt-card); border-radius: 16px; overflow: hidden; margin: 0;
  box-shadow: 0 2px 4px rgba(12,42,85,.06), 0 8px 20px rgba(12,42,85,.08); color: var(--lt-ink); text-align: left; transition: transform .15s ease, box-shadow .15s ease; }
.gev-lt-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(12,42,85,.08), 0 12px 28px rgba(12,42,85,.12); }
.gev-lt-card__link { position: absolute; inset: 0; z-index: 3; background: none !important; padding: 0 !important; }
.gev-lt-card__link:focus-visible { outline: 3px solid var(--lt-blue); outline-offset: -3px; border-radius: 16px; }
.gev-lt-card__img { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2f86ea, #1b6fd0 60%, #0c2a55); overflow: hidden; }
.gev-lt-card__img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.gev-lt-chip { position: absolute; z-index: 2; background: #fff; color: var(--lt-blue); border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.15); line-height: 1.05; }
.gev-lt-chip--date { left: 10px; top: 10px; padding: 5px 9px; text-align: center; }
.gev-lt-chip__wd { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lt-soft); }
.gev-lt-chip__d { display: block; font: 800 17px/1.05 Montserrat, Arial, sans-serif; }
.gev-lt-chip--city { right: 10px; top: 10px; padding: 8px 10px; font: 800 14px/1 Montserrat, Arial, sans-serif; max-width: calc(100% - 110px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gev-lt-full { position: absolute; z-index: 2; right: 10px; bottom: 10px; background: var(--lt-red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 999px; line-height: 1; }
.gev-lt-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 0; flex: 1; }
.gev-lt .gev-lt-title { margin: 0 0 8px !important; padding: 0 !important; font: 800 19px/1.2 Montserrat, Arial, sans-serif !important; letter-spacing: -.01em; color: var(--lt-navy) !important; text-transform: none !important; }
.gev-lt .gev-lt-title a { color: inherit !important; text-decoration: none !important; background: none !important; padding: 0 !important; }
.gev-lt-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.3; color: var(--lt-muted); }
.gev-lt-meta__row { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.gev-lt-ic { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--lt-blue); display: inline-flex; }
.gev-lt-ic svg { width: 100%; height: 100%; }
.gev-lt-meta b { color: var(--lt-navy); font-weight: 700; }
.gev-lt-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gev-lt-aud { margin-top: 10px; }
.gev-lt-aud__groups { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.gev-lt-aud__label { font-size: 12.5px; color: var(--lt-soft); font-weight: 500; margin-right: 1px; }
.gev-lt-aud__g { background: var(--lt-sky); color: var(--lt-ink); font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; line-height: 1.25; }
.gev-lt-aud__sep { display: none; }
.gev-lt .gev-lt-aud__lang { margin: 8px 0 0 !important; font-size: 13px; line-height: 1.35; color: var(--lt-blue); font-weight: 500; }
.gev-lt .gev-lt-aud__lang + .gev-lt-aud__lang { margin-top: 2px !important; }
.gev-lt-when { display: none; }

/* ---------- Theme: sarakkeet (two compact columns on phones, more on desktop) ---------- */
.gev-lt--sarakkeet .gev-lt-card { border-radius: 14px; box-shadow: 0 1px 2px rgba(12,42,85,.06), 0 4px 14px rgba(12,42,85,.07); }
.gev-lt--sarakkeet .gev-lt-card__img { aspect-ratio: 16 / 10; }
.gev-lt--sarakkeet .gev-lt-chip--date { display: none; }
.gev-lt--sarakkeet .gev-lt-chip--city { left: 0; right: auto; top: auto; bottom: 0; max-width: 100%; background: var(--lt-blue); color: #fff; border-radius: 0 8px 0 0;
  box-shadow: none; padding: 5px 9px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .07em; text-transform: uppercase; }
.gev-lt--sarakkeet .gev-lt-full { top: 6px; right: 6px; bottom: auto; font-size: 10px; padding: 4px 7px; }
.gev-lt--sarakkeet .gev-lt-card__body { padding: 10px 11px 12px; }
.gev-lt--sarakkeet .gev-lt-when { display: block; font: 800 13.5px/1.2 Montserrat, Arial, sans-serif; color: var(--lt-blue); margin-bottom: 4px; }
.gev-lt.gev-lt--sarakkeet .gev-lt-title { font-size: 15px !important; line-height: 1.1 !important; margin-bottom: 6px !important; }
.gev-lt--sarakkeet .gev-lt-meta { font-size: 12px; gap: 3px; }
.gev-lt--sarakkeet .gev-lt-meta__time { display: none; }
.gev-lt--sarakkeet .gev-lt-ic { width: 13px; height: 13px; }
.gev-lt--sarakkeet .gev-lt-aud { margin-top: 8px; padding-top: 7px; border-top: 2px solid var(--lt-sky2); }
.gev-lt--sarakkeet .gev-lt-aud__groups { display: block; font-size: 12.5px; line-height: 1.3; color: var(--lt-navy); font-weight: 700; }
.gev-lt--sarakkeet .gev-lt-aud__label { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--lt-soft); margin: 0 0 2px; }
.gev-lt--sarakkeet .gev-lt-aud__g { background: none; padding: 0; border-radius: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.gev-lt--sarakkeet .gev-lt-aud__sep { display: inline; }
.gev-lt.gev-lt--sarakkeet .gev-lt-aud__lang { font-size: 11.5px; line-height: 1.3; font-weight: 600; margin-top: 5px !important; }
@media (min-width: 700px) {
  .gev-lt.gev-lt--sarakkeet .gev-lt-title { font-size: 17px !important; }
  .gev-lt--sarakkeet .gev-lt-meta { font-size: 13px; }
}

/* ---------- Dark page background: header, tabs and toolbar flip, cards stay white ---------- */
.gev-lt--on-dark .gev-list-title { color: #fff !important; }
.gev-lt--on-dark .gev-list-count { color: rgba(255,255,255,.75) !important; }
.gev-lt--on-dark .gev-list-toolbar .gev-tab:not(.is-active) { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.gev-lt--on-dark .gev-list-toolbar .gev-tab.is-active { background: #fff !important; color: var(--lt-blue) !important; border-color: #fff !important; }
.gev-lt--on-dark .gev-lt-search, .gev-lt--on-dark .gev-lt-sort { border-color: transparent !important; }
.gev-lt--on-dark .gev-lt-empty { color: rgba(255,255,255,.8); }
.gev-lt--on-dark .gev-lt-card { box-shadow: 0 6px 22px rgba(0,0,0,.35); }

/* Narrow phones (list ~310px wide): tighter toolbar and audience pills */
@media (max-width: 480px) {
  .gev-lt-tool { gap: 6px; }
  .gev-lt-search { padding: 0 10px; gap: 6px; }
  .gev-lt .gev-lt-search input[type="search"] { font-size: 13.5px; }
  .gev-lt .gev-lt-sort { padding: 0 10px; gap: 5px; font-size: 13px; }
  .gev-lt-aud__groups { gap: 4px; }
  .gev-lt-aud__label { font-size: 12px; }
  .gev-lt-aud__g { font-size: 12px; padding: 3px 8px; }
  .gev-lt-card__body { padding: 11px 12px 13px; }
  .gev-lt .gev-lt-title { font-size: 18px !important; }
}

/* Week dividers in date order: "Viikko 46" in dark grey between grey lines */
.gev-lt-week { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; color: #4b5563; font-family: var(--lt-font); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.gev-lt-week::before, .gev-lt-week::after { content: ""; flex: 1; height: 1px; background: #c9d1dc; }
.gev-lt-list > .gev-lt-week:first-child { margin-top: 2px; }
.gev-lt-week + .gev-lt-cols { margin-top: 0 !important; }
.gev-lt--on-dark .gev-lt-week { color: rgba(255,255,255,.75); }
.gev-lt--on-dark .gev-lt-week::before, .gev-lt--on-dark .gev-lt-week::after { background: rgba(255,255,255,.3); }

/* Family tab only: note on adult events that also welcome guardians of children with type 1 */
.gev-lt .gev-family-note { display: none; }
.gev-lt.gev-show-family .gev-family-note { display: block; }

/* Themed lists: heading, count and tabs in the card fonts (classic list keeps Crete Round on phones) */
.gev-lt .gev-list-title { font-family: Montserrat, Arial, sans-serif !important; font-weight: 800 !important; color: var(--lt-blue); }
.gev-lt .gev-list-count, .gev-lt .gev-list-toolbar .gev-tab { font-family: var(--lt-font) !important; }
.gev-lt .gev-list-toolbar .gev-tab { font-weight: 700; }
