/**
 * /mdr-content/css/public-partials/events.css — public /events/ page (evp-*)
 *
 * The approved 16:9 design (events-public-entwurf-v3, Keylam 2026-07-19) inside
 * the shared public main-area frame: white cap boxes top/bottom over the
 * --content-surface ("sandpaper") ground — the same skeleton as the content
 * pages and the news front.
 *
 *   evp-row/-cap/-surface  cap-box frame — GEOMETRY SYNC: mirrors
 *                          .home-introtile/-bottomtile (one of the copies:
 *                          cpg-*, ir-*, sx-*, nws-*, evp-*); a change to the
 *                          home cap geometry must be mirrored here.
 *   evp-ongoing            flat "currently running" strip (long-runners as one
 *                          line each — a 12-month exhibition must not clog the
 *                          upcoming stream).
 *   evp-month              month divider headings (the eye jumps, nobody reads
 *                          a wall of 80 entries).
 *   evp-grid/-card/-date   two-column card grid on desktop (16:9 is the normal
 *                          case), single column below 900px (mobile is the
 *                          fallback, not the default).
 *   evp-join               the "Join / Watch" button of online events.
 *   evp-pager/-feed        paged navigation + the iCal subscribe line.
 *
 * @package    TaNaSi-MDR
 * @author     Keylam Folker
 * @co-author  Claude (Anthropic)
 * @copyright  2026 TaNaSi
 * @license    proprietary — see RULES.md
 * @link       https://ta-na-si.eu
 * @since      1.0.0
 */

.evp-row { width: var(--w-page); margin: 0 auto; }
.evp-cap {
    background: var(--card);
    display: flex; align-items: center;
    color: var(--navy);
}
.evp-cap-top {
    min-height: 40px; margin-top: 20px;
    border-radius: 20% 20% 0 0;
    padding: 10px 20px 0;
    font-size: 1.05rem; font-weight: 600; line-height: 1.4;
}
.evp-cap-bottom {
    min-height: 30px; margin-bottom: 20px;
    border-radius: 0 0 20% 20%;
    padding: 0 20px;
}
.evp-surface {
    width: var(--w-page); margin: 0 auto;
    background: var(--content-surface);
    padding: 30px clamp(16px, 4vw, 56px) 40px;
}

/* Currently-running strip: long-runners as single lines, side by side. */
.evp-ongoing {
    border: 1px solid var(--line, #d8e2db); border-radius: 10px;
    background: var(--card);
    padding: 10px 18px 12px; margin: 0 0 22px;
    display: flex; gap: 8px 34px; flex-wrap: wrap; align-items: baseline;
}
.evp-ongoing h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #667); margin: 0; flex-basis: 100%; }
.evp-ongoing a { color: inherit; text-decoration: none; font-size: .92rem; }
.evp-ongoing .evp-until { color: var(--muted, #667); font-size: .82rem; }

/* Month divider */
.evp-month {
    font-size: .9rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted, #667);
    border-bottom: 2px solid var(--line, #d8e2db);
    padding-bottom: 6px; margin: 24px 0 14px;
}

/* Two-column card grid (desktop-first: 16:9 is the normal case). */
.evp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.evp-card {
    display: grid; grid-template-columns: 92px 1fr; gap: 16px;
    background: var(--card); border: 1px solid var(--line, #dfe5e2);
    border-radius: 10px; padding: 15px 18px;
}
.evp-date { text-align: center; align-self: start; border-right: 1px solid var(--line, #dfe5e2); padding-right: 13px; }
.evp-date b { display: block; font-size: 1.65rem; line-height: 1; }
.evp-date .evp-dow { font-size: .72rem; color: var(--muted, #667); text-transform: uppercase; }
.evp-date .evp-time { font-size: .78rem; color: var(--muted, #667); margin-top: 5px; }
.evp-card h3 { margin: 0 0 5px; font-size: 1.02rem; }
.evp-card p { margin: 0 0 6px; font-size: .88rem; }
.evp-loc { font-size: .82rem; color: var(--muted, #667); }
.evp-join {
    display: inline-block; margin-top: 8px; padding: 7px 15px; border-radius: 7px;
    background: var(--c-accent, #2f6b4f); color: #fff; text-decoration: none; font-size: .85rem;
}
.evp-empty { color: var(--muted, #667); margin: 18px 0; }

/* Pager (function blue like the news pager) + the iCal subscribe line. */
.evp-pager { margin: 24px 0 8px; display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.evp-pager a { padding: 7px 13px; border: 1px solid var(--line, #d8e2db); border-radius: 7px; background: var(--card); color: #2563eb; text-decoration: none; }
.evp-pager .evp-now { padding: 7px 13px; border-radius: 7px; background: var(--c-accent, #2f6b4f); color: #fff; }
.evp-feed { margin-top: 12px; font-size: .9rem; }
.evp-feed a { color: #2563eb; text-decoration: none; }
.evp-feed a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .evp-grid { grid-template-columns: 1fr; }
  .evp-ongoing { display: block; }
  .evp-ongoing a { display: block; padding: 3px 0; }
}
