/* JDK „Mārupe” — the "Mantojums" decoration on the "Josta" layouts.
   Carried over from design/css/b.css + final.css + heritage.css (variant a), resolved to final values,
   plus what WordPress's own markup needs. The markup comes from the jdk-site plugin's blocks
   (plugin/inc/render.php): change class names in both places. */

:root {
  --ground: var(--wp--preset--color--ground, #f8f9fa);
  --surface: var(--wp--preset--color--surface, #fff);
  --tint: var(--wp--preset--color--strip, #ebf6fa);
  --strip-ink: var(--wp--preset--color--strip-ink, #4a6580);
  --ink: var(--wp--preset--color--ink, #212529);
  --ink-2: var(--wp--preset--color--ink-2, #5c636a);
  --line: var(--wp--preset--color--line, #dee2e6);
  --red: var(--wp--preset--color--red, #d82626);
  --red-deep: var(--wp--preset--color--red-deep, #ae1114);
  --green: var(--wp--preset--color--green, #b7d02e);
  --sun: var(--wp--preset--color--yellow, #f2ca08);
  --blue: var(--wp--preset--color--blue, #5ec3cb);
  --text: "Arimo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: 16px;
  --r: 12px;
  --card-shadow: 0 1px 2px rgba(33,37,41,.08), 0 8px 20px -6px rgba(33,37,41,.18);
  --card-shadow-hover: 0 1px 2px rgba(33,37,41,.08), 0 14px 28px -8px rgba(33,37,41,.25);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fast: .15s;
  --med: .25s;
}
@media (min-width: 760px) { :root { --gut: 40px; } }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--red) var(--ground); -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); font-synthesis: none; -webkit-font-smoothing: antialiased; }
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: from-font; text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
:target, [id] > h2:first-child { scroll-margin-top: 24px; }
p, li, dd { text-wrap: pretty; }
/* Lazy images still on their way fade in (plugin/assets/site.js marks them); their boxes are sized. */
img[loading="lazy"] { transition: opacity .4s var(--ease-out); }
img.is-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
h1, h2, h3 { font-family: var(--text); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.015em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.i { width: 1.2em; height: 1.2em; flex: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); width: 100%; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
/* Short pages (search, 404) keep the footer at the bottom of the screen. */
.wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ornaments in the margins (the old .jdk-main) ---------- */
.jdk-main { position: relative; isolation: isolate; overflow-x: clip; }
.jdk-main::before, .jdk-main::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.jdk-main::before { top: 0; bottom: 0; left: -70px; width: 260px; background: url(../images/upes-zime-outlines.png) 0 0 / 260px auto repeat-y; opacity: .9; }
@media (min-width: 900px) {
  .jdk-main::before { left: -30px; width: 300px; background-size: 300px auto; }
  .jdk-main::after { top: 760px; right: 40px; width: 300px; height: 300px; background: url(../images/maras-krusts-outline.png) center / contain no-repeat; }
}
@media (max-width: 759px) { .jdk-main::before { opacity: .55; left: -150px; } }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: 999px; font: 700 1.05rem/1 var(--text); text-decoration: none; border: 2px solid currentColor; color: var(--ink); background: transparent; cursor: pointer;
  transition: background-color var(--fast) ease-out, border-color var(--fast) ease-out, color var(--fast) ease-out, scale var(--fast) ease-out; }
.btn:active { scale: .97; }
.btn .i { transition: translate var(--med) var(--ease-out); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--red); }
.btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--icon { padding: 0; width: 52px; justify-content: center; }
.link { font: 700 1.05rem/1.3 var(--text); color: var(--red); text-decoration: underline 2px transparent; text-underline-offset: .25em; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; transition: text-decoration-color var(--fast) ease-out; }
.link:hover { text-decoration-color: currentColor; }
.link .i { transition: translate var(--med) var(--ease-out); }
.link:hover .i { translate: 3px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.crumb { font: 700 1rem/1 var(--text); color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; opacity: .85; transition: color var(--fast) ease-out, opacity var(--fast) ease-out; }
.crumb:hover { opacity: 1; color: var(--red); }
.crumb .i { transition: translate var(--med) var(--ease-out); }
.crumb:hover .i { translate: -3px 0; }

/* ---------- Header ---------- */
.hdr { background: var(--surface); position: relative; z-index: 20; box-shadow: 0 2px 10px rgba(33,37,41,.06); }
.hdr__top { display: flex; flex-direction: column; align-items: center; padding: 24px 0 12px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; }
.wordmark { display: block; width: 150px; aspect-ratio: 1400/723; background: currentColor;
  -webkit-mask: url(../images/wordmark.png) center/contain no-repeat; mask: url(../images/wordmark.png) center/contain no-repeat; }
.nav ul { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.nav a { display: inline-block; font: 700 1.02rem/1 var(--text); text-decoration: none; padding: 14px 18px 16px; border-radius: 999px; color: var(--ink); transition: background-color var(--fast) ease-out, color var(--fast) ease-out; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a[aria-current] { background: var(--red); color: #fff; }
.menu-btn, .sheet { display: none; }

@media (max-width: 899px) {
  .hdr__top { flex-direction: row; justify-content: space-between; padding: 10px 0 10px var(--gut); } /* the "Izvēlne" tab hangs at the very edge */
  .brand img { width: 42px; }
  .brand .wordmark { width: 104px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: -10px; min-height: 58px; padding: 10px 18px 0; border: 0; border-radius: 0 0 16px 16px;
    background: var(--red); color: #fff; font: 700 1.05rem/1 var(--text); box-shadow: 0 3px 10px rgba(0,0,0,.3); cursor: pointer; }
  /* The sheet and its dimmer are always there, hidden; opening slides the sheet up from the edge. */
  body::after { content: ""; position: fixed; inset: 0; background: rgba(33,37,41,.55); z-index: 29; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease-out, visibility 0s linear .3s; }
  .menu-open body::after { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease-out, visibility 0s; }
  .sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-radius: 18px 18px 0 0; border-top: 6px solid var(--red); overflow: auto; overscroll-behavior: contain; max-height: 92dvh; padding: 8px 0 max(20px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25);
    translate: 0 calc(100% + 40px); visibility: hidden; transition: translate .28s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .28s; }
  .menu-open .sheet { translate: 0 0; visibility: visible; transition: translate .4s var(--ease-out), visibility 0s; }
  .menu-btn { transition: background-color var(--fast) ease-out; }
  .menu-btn:hover, .menu-open .menu-btn { background: var(--red-deep); }
  .sheet ul { list-style: none; margin: 0; padding: 0 var(--gut); }
  .sheet li a { display: flex; justify-content: space-between; align-items: center; font: 700 1.7rem/1 var(--text); text-decoration: none; padding: 14px 0; min-height: 56px; border-bottom: 1px solid var(--line); color: var(--ink); transition: color var(--fast) ease-out; }
  .sheet li a:active { color: var(--red); }
  .sheet a[aria-current] { color: var(--red); }
  .sheet a[aria-current]::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--red); rotate: 45deg; }
  .sheet__foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px var(--gut) 0; }
}

/* Over the photo (front page): the old red tabs hanging from the top edge, with labels */
.hdr--over { position: absolute; inset: 0 0 auto; background: transparent; box-shadow: none; }
.admin-bar .hdr--over { top: 32px; }
@media (max-width: 782px) { .admin-bar .hdr--over { top: 46px; } }
@media (min-width: 900px) {
  .hdr--over .hdr__top { flex-direction: row; justify-content: center; align-items: flex-start; padding: 0; }
  .hdr--over .brand { display: none; }
  .hdr--over .nav ul { gap: 10px; }
  /* Each tab is 12px longer than it looks, the extra tucked above the top edge: hover lets it drop. */
  .hdr--over .nav a { background: var(--red); color: #fff; border-radius: 0 0 16px 16px; padding: 30px 20px 14px; margin-top: -12px; box-shadow: 0 3px 10px rgba(0,0,0,.35);
    transition: translate .3s var(--ease-out), background-color var(--fast) ease-out, color var(--fast) ease-out; }
  .hdr--over .nav a:hover, .hdr--over .nav a:focus-visible, .hdr--over .nav a[aria-current] { translate: 0 12px; background: var(--red); color: #fff; }
  .hdr--over .nav a[aria-current] { background: #fff; color: var(--red); }
  .hdr--over .nav a:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--red-deep), 0 3px 10px rgba(0,0,0,.35); }
}
@media (max-width: 899px) { .hdr--over .brand { visibility: hidden; } }

/* ---------- Hero: photo, centred wordmark, zigzag edge, petal in its disc ---------- */
.hero { position: relative; height: min(70vh, 660px); min-height: 480px; color: #fff; background: var(--wp--preset--color--hero-fallback, #56395a); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Parallax, as on the 2019 site: the photo holds still while the zigzag and the page slide up over
   it. A scroll-driven transform on the compositor; plugin/assets/site.js does the same where the
   browser lacks scroll timelines. Reduced motion: a plain photo that scrolls with the page. */
@media (prefers-reduced-motion: no-preference) {
  .hero__media > img { will-change: transform; }
  @supports (animation-timeline: view()) {
    .hero { view-timeline: --jdk-hero block; }
    .hero__media > img { animation: jdk-hero-hold linear both; animation-timeline: --jdk-hero; animation-range: exit 0% exit 100%; }
  }
}
@keyframes jdk-hero-hold { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 100%, 0); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 35%, rgba(0,0,0,0) 60%, rgba(0,0,0,.2)); }
.hero__in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px 150px; }
.hero__title { margin: 0; line-height: 0; }
.hero .wordmark { color: #fff; width: min(460px, 78vw); filter: drop-shadow(0 2px 14px rgba(0,0,0,.35)); }
.zigzag { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; z-index: 3; background: url(../images/dot-pattern.png) left bottom / 300px auto repeat-x; }
.disc { position: absolute; left: 50%; bottom: -1px; z-index: 4; width: 270px; height: 120px; translate: -50% 0; border-radius: 135px 135px 0 0; background: var(--ground); }
.disc img { position: absolute; left: 50%; bottom: -34px; width: 210px; max-width: none; translate: -50% 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.hero + section { padding-top: 64px; }
@media (max-width: 759px) {
  .hero { height: 62vh; min-height: 470px; }
  .hero__in { padding-bottom: 120px; }
  .disc { width: 230px; height: 100px; }
  .disc img { width: 176px; bottom: -28px; }
  .hero + section { padding-top: 52px; }
}

/* ---------- Cards: white, rounded, soft shadow, pale-blue title strip ---------- */
.strip { display: flex; align-items: center; gap: 10px; background: var(--tint); color: var(--strip-ink); font: 700 1rem/1.2 var(--text); padding: 12px 20px; letter-spacing: .02em; }
.strip .i { width: 1.15em; height: 1.15em; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--card-shadow); overflow: hidden; }
.card__body { padding: 20px 24px 24px; }
.card__body h3 { font-size: 1.6rem; margin-bottom: 8px; }
.card__body p { margin: 0; }

/* ---------- Upcoming concerts ---------- */
.pinned { padding: 40px 0 24px; }
.pinned h2 { margin-bottom: 24px; }
.pinned__list { display: grid; gap: 24px; }
@media (min-width: 900px) { .pinned__list { grid-template-columns: 1fr 1fr; } }
/* Every card that is a link lifts a little on hover and settles back when pressed. */
.pcard, .ncard, .ptile, .album-card, .postnav a { transition: box-shadow var(--med) var(--ease-out), translate var(--med) var(--ease-out); }
@media (hover: hover) {
  .pcard:hover, .ncard:hover, .ptile:hover, .album-card:hover, .postnav a:hover { translate: 0 -3px; }
}
.pcard:active, .ncard:active, .ptile:active, .album-card:active, .postnav a:active { translate: 0 0; transition-duration: .08s; }
.pcard h3, .ncard .ncard__title, .ptile b, .album-card h2 { transition: color var(--fast) ease-out; }
.pcard { display: block; background: var(--surface); color: var(--ink); border-radius: var(--r); overflow: hidden; text-decoration: none; position: relative; box-shadow: var(--card-shadow); }
.pcard:hover { color: var(--ink); box-shadow: var(--card-shadow-hover); }
.pcard__body { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px; }
.pcard__body--text { grid-template-columns: 1fr; }
@media (min-width: 760px) { .pcard__body { grid-template-columns: 150px 1fr; } .pcard__body--text { grid-template-columns: 1fr; } }
.pcard .fit { aspect-ratio: 5/7; border-radius: 4px; }
.pcard__date { font: 700 2.4rem/.9 var(--text); color: var(--red); letter-spacing: -.015em; }
.pcard__date small { display: block; font: 700 1rem/1.3 var(--text); color: var(--ink-2); margin-top: 6px; letter-spacing: 0; }
.pcard h3 { margin: 16px 0 8px; font-size: 1.5rem; }
.pcard p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.pcard:hover h3 { color: var(--red); }

/* ---------- A poster shown whole: contained over a blurred, darkened copy of itself ---------- */
.fit { position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate; background: var(--tint); }
.fit > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.fit__img { object-fit: contain; }
.fit__bg { object-fit: cover; scale: 1.25; filter: blur(16px) brightness(.72) saturate(1.1); z-index: -1; }

/* ---------- Intro + join ---------- */
.intro { padding: 72px 0; }
.intro__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; } }
.intro .big p { font: 500 clamp(1.3rem, 2.4vw, 1.7rem)/1.4 var(--text); margin: 0 0 .6em; }
.intro .big p:last-child { margin-bottom: 0; }
.ribbon { background: var(--surface); box-shadow: var(--card-shadow); border-radius: var(--r); overflow: hidden; }
.ribbon__in { padding: 32px; }
.ribbon h2 { font-size: 2rem; margin-bottom: 12px; color: var(--red); }
.ribbon dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 24px; font-size: 1.05rem; }
.ribbon dt { font-weight: 700; }
.ribbon dd { margin: 0; }

/* ---------- News ---------- */
.news { padding: 48px 0 72px; }
.news__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.ncards { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .ncards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ncards { grid-template-columns: repeat(3, 1fr); } }
.ncards > li { display: flex; margin: 0; }
.ncards > li > .ncard { flex: 1; }
.ncard { display: flex; flex-direction: column; text-decoration: none; position: relative; background: var(--surface); color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--card-shadow); }
.ncard:hover { color: var(--ink); box-shadow: var(--card-shadow-hover); }
.ncard__img { display: block; aspect-ratio: 3/2; background: var(--tint); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; }
.ncard .strip { justify-content: space-between; }
.ncard .strip > span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--c, var(--red)); }
.ncard .strip time { font: 700 1.05rem/1 var(--text); color: var(--red); }
.ncards > :nth-child(4n+1) { --c: var(--red); } .ncards > :nth-child(4n+2) { --c: var(--sun); }
.ncards > :nth-child(4n+3) { --c: var(--blue); } .ncards > :nth-child(4n+4) { --c: var(--green); }
.ncard__in { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ncard .ncard__title { font-size: 1.35rem; line-height: 1.2; }
.ncard:hover .ncard__title { color: var(--red); }
.ncard p { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__foot { margin-top: auto; display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.ncard__foot .i { color: #7a9a10; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.more .btn { background: var(--surface); border-color: var(--line); box-shadow: var(--card-shadow); }
.more .btn:hover { background: var(--ink); border-color: var(--ink); }
.news--archive { padding: 8px 0 72px; }

/* Pagination on the news archive */
.pager { margin-top: 40px; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.pager a, .pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--card-shadow); text-decoration: none; color: var(--ink); }
.pager .page-numbers.current { background: var(--red); color: #fff; }
.pager .page-numbers.dots { background: none; box-shadow: none; }
.pager a:hover { background: var(--ink); color: #fff; }

/* ---------- Page head ---------- */
.phead { padding: 48px 0 32px; }
.phead p, .phead__lead p { font-size: 1.25rem; color: var(--ink-2); max-width: 46ch; margin: 16px 0 0; }
.phead .phead__meta { font-size: 1rem; margin-top: 8px; }
.phead--red { background: var(--red); color: #fff; }
.phead--red h1, .phead--red p { color: #fff; }
.phead .crumb { display: flex; width: fit-content; }
.phead .phead__lead > p { margin: 16px 0 0; }

/* ---------- Article (news single, In English) ---------- */
.article { padding: 32px 0 0; }
.article .wrap { max-width: 820px; }
.article h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin: 0 0 32px; }
.article .crumb { display: flex; width: fit-content; }
.cd { display: inline-flex; gap: 8px; align-items: center; background: var(--tint); color: var(--strip-ink); font-weight: 700; padding: 8px 14px; border-radius: 999px; margin: 12px 0 20px; }
.prose { font-size: 1.2rem; line-height: 1.65; }
.prose p, .prose ul, .prose ol { max-width: 66ch; margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--red); }
.prose .jdk-facebook-link { font-size: 1rem; }
.prose--lead > p:first-child { font-size: 1.45rem; font-weight: 500; line-height: 1.5; }
.prose .wp-block-image img, .prose .wp-block-gallery img { border-radius: 6px; }
.news-album { margin: 24px 0 0; }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.postnav a { background: var(--surface); box-shadow: var(--card-shadow); border-radius: var(--r); padding: 16px 20px; text-decoration: none; display: block; color: var(--ink); }
.postnav a:hover { box-shadow: var(--card-shadow-hover); color: var(--red); }
.postnav small { display: block; color: var(--ink-2); font-weight: 700; margin-bottom: 4px; font-size: .95rem; }
.postnav b { font: 700 1.2rem/1.2 var(--text); }
.postnav .postnav__older { grid-column: 2; text-align: right; }
@media (max-width: 559px) { .postnav { grid-template-columns: 1fr; } .postnav .postnav__older { grid-column: 1; } }
.page-body { padding-bottom: 48px; }
.article--en { padding-top: 48px; }
.jdk-lang-en .phead .wrap { max-width: 820px; }
.article--en .mail { font-size: clamp(1.6rem, 5vw, 2.1rem); word-break: normal; overflow-wrap: anywhere; }
.article--en .cblocks { padding-top: 16px; }

/* ---------- Concert single: details first, poster beside (desktop) or after (phone) ---------- */
.concert { padding: 32px 0 72px; }
.concert__grid--facts { display: grid; gap: 32px; margin-top: 12px; }
@media (min-width: 900px) {
  .concert__grid--facts { grid-template-columns: 1fr 420px; gap: 72px; align-items: start; }
  .concert__grid--solo { grid-template-columns: minmax(0, 820px); }
  .concert__poster { position: sticky; top: 24px; }
}
.concert .cd { margin: 0 0 20px; }
.facts { margin: 24px 0; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--card-shadow); }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { font: 700 .95rem/1.9 var(--text); color: var(--ink-2); }
.facts dd { margin: 0; }
.facts dd b { display: block; font: 700 1.35rem/1.15 var(--text); }
.facts dd span { color: var(--ink-2); }
.concert__poster { margin: 0; }
.concert__poster a { display: block; border-radius: 8px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.55); }
.concert__poster .fit { aspect-ratio: var(--ar, 5/7); border-radius: 8px; }
@media (min-width: 900px) { .concert__poster .fit { max-height: calc(100vh - 48px); } }
.concert-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--red); text-decoration: underline 2px transparent; text-underline-offset: .25em; min-height: 44px; transition: text-decoration-color var(--fast) ease-out; }
.concert-link:hover { text-decoration-color: currentColor; }
.nudge { margin-top: 48px; background: var(--surface); box-shadow: var(--card-shadow); border-radius: var(--r); padding: 24px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nudge p { margin: 0; font-weight: 600; }

/* ---------- Concerts archive ---------- */
.past { padding: 8px 0 72px; }
.yearhead { display: flex; align-items: center; gap: 16px; margin: 48px 0 24px; }
.yearhead h2 { font-size: 2.4rem; }
.yearhead__rule { flex: 1; height: 1px; background: var(--line); }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
@media (min-width: 760px) { .pgrid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; } }
.ptile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--card-shadow); }
.ptile:hover { color: var(--ink); box-shadow: var(--card-shadow-hover); }
.ptile:hover b { color: var(--red); }
.ptile__img { aspect-ratio: 5/7; overflow: hidden; background: var(--tint); }
.ptile__img .fit { height: 100%; }
.ptile__img--none { display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; font: 700 1.3rem/1.15 var(--text); color: var(--strip-ink); }
.ptile__text { padding: 12px 14px 16px; }
.ptile time { display: block; font: 700 1rem/1.2 var(--text); color: var(--red); margin-bottom: 4px; }
.ptile b { display: block; font: 700 1.15rem/1.2 var(--text); }
.ptile span { display: block; font-size: .95rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- Gallery ---------- */
.albums { display: grid; gap: 48px 32px; padding-bottom: 48px; }
@media (min-width: 760px) { .albums { grid-template-columns: 1fr 1fr; } }
.album-card { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--r); box-shadow: var(--card-shadow); overflow: hidden; padding-bottom: 18px; }
.album-card:hover { color: var(--ink); box-shadow: var(--card-shadow-hover); }
.album-card__stack { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 3/2; overflow: hidden; background: var(--surface); }
.album-card__stack img { width: 100%; height: 100%; object-fit: cover; min-height: 0; background: var(--tint); }
.album-card__stack img:first-child { grid-row: span 2; }
.album-card__stack--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.album-card__stack--1 img:first-child { grid-row: auto; }
.album-card__stack--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.album-card__stack--2 img:first-child { grid-row: auto; }
.album-card h2 { margin: 16px 0 4px; font-size: 1.5rem; padding: 0 20px; }
.album-card:hover h2 { color: var(--red); }
.album-card p { margin: 0; color: var(--ink-2); padding: 0 20px; }

/* Album: justified rows, every photo in its own ratio */
.album-photos { padding-bottom: 64px; }
.just { display: flex; flex-wrap: wrap; gap: 6px; }
.just a { flex-grow: var(--ar); flex-basis: calc(var(--ar) * 150px); aspect-ratio: var(--ar); border-radius: 6px; overflow: hidden; background: var(--tint); }
.just::after { content: ""; flex-grow: 999; }
.just img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .just a { flex-basis: calc(var(--ar) * 240px); } }

/* Photo viewer: the dark stage */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--wp--preset--color--viewer, #1a1516); color: #fff; overflow: hidden; touch-action: pan-y pinch-zoom; }
.viewer:focus { outline: none; }
.viewer::backdrop { background: var(--wp--preset--color--viewer, #1a1516); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; font: 700 1.05rem/1 var(--text); }
.viewer__stage { margin: 0; display: grid; place-items: center; align-content: center; min-height: 0; padding: 0 0 12px; }
.viewer__frame { position: relative; width: min(100%, calc((100dvh - 190px) * var(--ar, 1.5))); aspect-ratio: var(--ar, 1.5); }
.viewer__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.viewer__img { opacity: 0; }
.viewer__img.is-loaded { opacity: 1; transition: opacity .25s ease-out; }
/* Spinner, only when the full photo takes longer than a moment. */
.viewer__frame::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; opacity: 0; pointer-events: none; }
.viewer__frame.is-loading::after { animation: jdk-spin .8s linear infinite, jdk-appear .2s ease-out .35s forwards; }
@keyframes jdk-spin { to { rotate: 1turn; } }
@keyframes jdk-appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .viewer__frame.is-loading::after { animation: jdk-appear .01ms linear .35s forwards; } }
@media (prefers-reduced-motion: no-preference) {
  .viewer__frame.is-in { animation: jdk-vin .4s var(--ease-out); }
  @keyframes jdk-vin { from { opacity: 0; transform: translateX(var(--from, 0)); } }
  /* The dialog fades in and out over its dark backdrop. */
  .viewer, .viewer::backdrop { transition: opacity .22s ease-out, overlay .22s allow-discrete, display .22s allow-discrete; opacity: 0; }
  .viewer[open], .viewer[open]::backdrop { opacity: 1; }
  @starting-style { .viewer[open], .viewer[open]::backdrop { opacity: 0; } }
}
.viewer__caption { margin-top: 10px; color: #cdbfc0; font-size: .95rem; text-align: center; padding: 0 16px; }
.viewer__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.45); color: #fff; padding: 0; transition: background-color var(--fast) ease-out, color var(--fast) ease-out, scale var(--fast) ease-out; }
.viewer__btn:active { scale: .92; }
.viewer__prev, .viewer__next { background: var(--red); border-color: var(--red); position: absolute; top: 50%; translate: 0 -50%; }
.viewer__btn:hover { background: #fff; color: var(--ink); }
.viewer__btn:focus-visible { outline-color: #fff; }
.viewer__prev { left: 20px; } .viewer__next { right: 20px; }
.viewer--single .viewer__prev, .viewer--single .viewer__next { display: none; }
@media (max-width: 759px) {
  .viewer__prev, .viewer__next { top: auto; bottom: 36px; translate: none; }
  .viewer__prev { left: calc(50% - 64px); } .viewer__next { right: calc(50% - 64px); }
  .viewer__stage { padding-bottom: 90px; }
}

/* ---------- About ---------- */
.bleed { position: relative; margin: 0; }
.bleed img { width: 100%; height: min(70vh, 640px); object-fit: cover; }
.bleed::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: url(../images/dot-pattern.png) left bottom / 300px auto repeat-x; }
.about .about-cols { display: grid; gap: 32px; padding: 48px 0; margin: 0; }
@media (min-width: 900px) { .about .about-cols { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about .wp-block-column { flex-basis: auto !important; min-width: 0; }
.about .prose p { margin: 0 0 1em; }
.about .about-join a { font: 700 1.05rem/1.3 var(--text); color: var(--red); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.about .about-join a:hover { text-decoration: underline; }
.people { display: grid; gap: 16px; align-content: start; }
.person { background: var(--surface); box-shadow: var(--card-shadow); border-radius: var(--r); padding: 24px; }
.person p { margin: 0; }
.person .person__name { font: 700 1.5rem/1.15 var(--text); margin-bottom: 6px; }
.person .person__role { color: var(--ink-2); }
.partners { background: var(--tint); padding: 48px 0; }
.partners__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 24px; }
.partners__row > a, .partners__tile { background: #fff; border-radius: var(--r); height: 110px; flex: 1 1 140px; display: grid; place-items: center; padding: 14px; }
.partners__row img { max-height: 80px; width: auto; }
@media (max-width: 559px) { .partners__row { gap: 12px; } }

/* ---------- Contact ---------- */
.cblocks { display: grid; gap: 16px; padding: 32px 0 72px; }
@media (min-width: 900px) { .cblocks { grid-template-columns: 1.3fr 1fr; } .cblocks > .cblock--red:first-child { grid-row: span 2; } }
.cblock { border-radius: var(--r); padding: 32px; background: var(--surface); box-shadow: var(--card-shadow); }
.cblock h2 { font-size: 2.2rem; margin-bottom: 16px; }
.cblock p:last-child { margin-bottom: 0; }
.cblock--red { background: var(--red); color: #fff; }
.cblock--red h2 { color: #fff; }
.cblock--red .actions { margin-bottom: 0; }
.cblock--red :focus-visible, .phead--red :focus-visible { outline-color: #fff; }
.mail { font: 700 clamp(1.5rem, 6vw, 3rem)/1.1 var(--text); color: #fff; overflow-wrap: anywhere; display: inline-block; padding: 7px 0; margin: 5px 0 17px; }
.mail:hover { color: #fff; text-decoration-thickness: 3px; }
.facts__list { margin: 0 0 24px; }
.facts__list > div { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts__list > div:last-child { border-bottom: 1px solid var(--line); }
.facts__list dt { font: 700 .95rem/1.9 var(--text); color: var(--ink-2); }
.facts__list dd { margin: 0; }
.facts__list dd b { display: block; font: 700 1.3rem/1.2 var(--text); }
.facts__list dd span { display: block; color: var(--ink-2); margin-top: 2px; }

/* ---------- Footer: the old red bar ---------- */
.ftr { background: var(--red); color: #fff; box-shadow: inset 0 7px 7px rgba(0,0,0,.25); margin-top: 72px; }
.jdk-main--about + .site-footer .ftr { margin-top: 0; }
.ftr__in { padding: 48px 0 32px; display: grid; gap: 32px; }
@media (min-width: 900px) { .ftr__in { grid-template-columns: auto 1fr auto; align-items: start; gap: 72px; } }
.ftr__home { display: inline-block; color: #fff; }
.ftr .wordmark { color: #fff; width: 170px; }
.ftr__cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ftr h2 { font: 700 1.05rem/1.3 var(--text); margin-bottom: 8px; color: #fff; letter-spacing: 0; }
.ftr p { margin: 0 0 4px; color: #fff; }
.ftr a { color: #fff; }
.ftr a:hover { color: #fff; text-decoration-thickness: 2px; }
.ftr :focus-visible { outline-color: #fff; }
.ftr__cols a, .ftr__base a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.ftr__social { display: flex; gap: 10px; }
.ftr__social a { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.ftr__social a:hover { background: #fff; color: var(--red); }
.ftr__base { border-top: 1px solid rgba(255,255,255,.35); padding: 16px 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .95rem; color: #fff; }

/* ---------- 404 ---------- */
.nf { padding: 72px 0; }
.nf__logo img { width: min(300px, 70vw); opacity: .2; margin-bottom: 24px; }
.nf__lead { font-size: 1.3rem; max-width: 40ch; margin: 24px 0 32px; }

/* ---------- Search ---------- */
.jdk-search { margin-top: 24px; max-width: 560px; }
.jdk-search .wp-block-search__input { min-height: 52px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 20px; font: inherit; }
.jdk-search .wp-block-search__button { min-height: 52px; border-radius: 999px; margin-left: 8px; }

/* ---------- Text ---------- */
.prose, .ncard p, .cblock p, .person__role { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.pcard__date, .ptile time, .ncard .strip time, .yearhead h2, .viewer__count { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Print: the content, in black on white, with link addresses ---------- */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000; font-size: 11pt; }
  .hdr .nav, .menu-btn, .sheet, .viewer, .zigzag, .disc, .hero__media::after, .ftr__social, .ftr__base a, .actions, .nudge, .more, .pager, .postnav, .wp-block-search, .skip-link, .crumb { display: none !important; }
  .jdk-main::before, .jdk-main::after, body::after { display: none !important; }
  .hdr, .hdr--over { position: static; box-shadow: none; }
  .hdr--over .brand { visibility: visible; display: flex; }
  .hero { height: auto; min-height: 0; background: none; color: #000; }
  .hero__media, .hero__in { position: static; }
  .hero__media > img { position: static; height: 8cm; animation: none !important; transform: none !important; }
  .hero__in, .hero .wordmark { display: none; }
  .card, .pcard, .ncard, .ptile, .album-card, .facts, .cblock, .ribbon, .person, .partners__row > a, .partners__tile { box-shadow: none !important; border: 1px solid #bbb; break-inside: avoid; translate: none !important; }
  .cblock--red, .phead--red, .ftr { background: none !important; color: #000 !important; box-shadow: none !important; }
  .cblock--red *, .phead--red *, .ftr * { color: #000 !important; }
  .ftr .wordmark { background: #000; }
  .strip { background: none; border-bottom: 1px solid #bbb; }
  h1, h2, h3 { break-after: avoid; }
  img { break-inside: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; overflow-wrap: anywhere; }
  .fit__bg { display: none; }
  .fit { background: none; }
  img.is-pending { opacity: 1 !important; }
}
