/* exhibitions.css — «Выставки» (/exhibitions) and an exhibition's own page (/exhibitions/<slug>), on the catalogue
   template (catalog.css) by her rule of 13.10. An exhibition is a line, not a card: when it closes is its first fact
   (the board's 05-exhibitions, 14.11.2026). Colours come from styles.css and catalog.css, so the dark theme follows. */
.ex-list { display: block; }
.ex-row { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "pic tx" "pic when" "cr cr"; gap: 6px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.ex-row:first-child { border-top: 0; }
.ex-pic { grid-area: pic; display: block; width: 112px; height: 84px; overflow: hidden; background: rgba(var(--ink), .06); border-radius: 4px; }
.ex-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No picture of its own: a typographic card — never its museum's building (her rule, 14.11.2026) */
.ex-type { display: flex; align-items: flex-end; padding: 10px; box-sizing: border-box; background: var(--txt); color: var(--bg); text-decoration: none; }
.ex-type span { font-size: 12px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ex-type:hover { color: var(--bg) !important; }
.ex-tx { grid-area: tx; min-width: 0; color: inherit; text-decoration: none; }
.ex-where { display: block; font-size: 13px; color: var(--mut); }
.ex-tx h3 { margin-top: 2px; font-size: 18px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.ex-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--mut); }
.ex-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; font-weight: 500; }
.ex-facts:empty { display: none; }
.ex-when { grid-area: when; min-width: 0; }
.ex-date { font-size: 22px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.ex-date small { font: 400 14px/1 inherit; color: var(--mut); margin-right: 4px; font-family: inherit; letter-spacing: 0; }
.ex-bar { display: block; height: 2px; max-width: 200px; margin: 8px 0 6px; background: var(--line); }
.ex-bar > i { display: block; height: 100%; background: var(--txt); }
.ex-left { font-size: 13px; color: var(--mut); }
.ex-left b { color: var(--txt); font-weight: 600; }
.ex-cr { grid-area: cr; font-size: 11px; color: var(--mut); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-none { padding: 40px 0; font-size: 16px; color: var(--mut); }
.ct-when { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-when [aria-pressed="true"] { background: var(--txt); color: var(--bg); border-color: var(--txt); }
@media (min-width: 761px) {
  .ex-row { grid-template-columns: 160px minmax(0, 1fr) 200px; grid-template-areas: "pic tx when" "cr cr cr"; gap: 6px 24px; padding: 22px 0; }
  .ex-pic { width: 160px; height: 112px; }
  .ex-cr { max-width: 160px; }
}

/* ── an exhibition's own page ── */
.xp { padding-top: 40px; padding-bottom: 96px; }
.xp-grid { display: grid; gap: 40px; }
@media (min-width: 1001px) { .xp-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; } .xp-ticket { position: sticky; top: 96px; } }
.xp-crumbs { font-size: 14px; color: var(--mut); }
.xp-crumbs a { color: inherit; }
.xp h1 { margin-top: 16px; font-size: clamp(34px, 6vw, 64px); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.xp-orig { margin-top: 10px; font-size: 16px; color: var(--mut); }
.xp-dates { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.xp-dates b { font-size: clamp(56px, 10vw, 112px); font-weight: 200; line-height: .85; letter-spacing: -.05em; }
.xp-dates span { font-size: 17px; line-height: 1.4; }
.xp-dates span small { display: block; font-family: inherit; letter-spacing: 0; font-size: 15px; color: var(--mut); }
.xp-bar { display: block; height: 3px; max-width: 520px; margin-top: 24px; background: var(--line); }
.xp-bar > i { display: block; height: 100%; background: var(--txt); }
.xp-left { margin-top: 8px; font-size: 14px; font-weight: 600; }
.xp-over { margin-top: 24px; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(var(--ink), .08); font-size: 14px; font-weight: 500; }
.xp-what { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.xp-what p:not(.ct-kick) { margin-top: 10px; font-size: clamp(20px, 2.6vw, 28px); font-weight: 400; line-height: 1.3; letter-spacing: -.01em; max-width: 34ch; }
.xp-more { margin-top: 56px; }
.xp-more h2 { font-size: 13px; font-weight: 500; color: var(--mut); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.xp-more a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.xp-more a span { font-size: 14px; color: var(--mut); }
.xp-more a b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.xp-more a small { display: block; font-family: inherit; letter-spacing: 0; font-size: 13px; color: var(--mut); font-weight: 400; }
.xp-ticket { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.xp-ticket img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.xp-tk { padding: 18px 20px 22px; }
.xp-ticket:not(:has(img)) .xp-tk { padding-top: 22px; }
.xp-cr { font-size: 11px; color: var(--mut); padding: 6px 20px 0; }
/* The picture under the title — a phone and a tablet only; from 1001px it lives in the ticket. */
.xp-pic { margin-top: 24px; }
.xp-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.xp-pic .xp-cr { padding: 6px 0 0; }
@media (max-width: 1000px) { .xp-ticket img, .xp-ticket .xp-cr { display: none; } }
@media (min-width: 1001px) { .xp-pic { display: none; } }
.xp-where { font-size: 12px; color: var(--mut); margin-bottom: 2px; }
.xp-museum { display: block; font-size: 18px; font-weight: 600; color: inherit; }
.xp-museum small { display: block; font-family: inherit; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--mut); }
.xp-facts { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.xp-facts span { display: flex; justify-content: space-between; gap: 12px; }
.xp-go { display: block; margin-top: 18px; padding: 14px 18px; border-radius: 999px; background: var(--txt); color: var(--bg); text-align: center; font-weight: 600; text-decoration: none; }
.xp-go:hover { color: var(--bg) !important; opacity: .9; }
.xp-src { margin-top: 40px; font-size: 13px; color: var(--mut); }
.xp-src a { color: inherit; }
