/* jugend.bachchor.ro — static since 2026-12-02. Colours follow the old cubus.ro design (2007–2017). */
:root {
  --bg: #3a5d73; --panel: #32556b; --panel2: #2b4b60; --line: #4c7189;
  --text: #d6e5ef; --muted: #a9c6da; --green: #9cdf18; --green2: #b4ff05; --yellow: #ffc605; --link: #bdf05f;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Trebuchet MS", "Segoe UI", Verdana, system-ui, sans-serif; }
img, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover, a:focus-visible { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: #fff; color: #000; padding: 6px 12px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 14px; }
.brand { text-decoration: none; font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.05; }
.brand .j { color: var(--yellow); }
.brand .b { color: var(--green); }
.brand .city { display: block; margin-top: 4px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
nav ul { list-style: none; margin: 0; padding: 0; }
nav.lang ul { display: flex; gap: 4px; }
nav.lang a, nav.lang span { display: inline-block; min-width: 40px; text-align: center; padding: 7px 9px; border-radius: 4px;
  color: #fff; text-decoration: none; font-size: .9rem; }
nav.lang span { background: var(--panel); color: var(--green2); }
nav.lang a:hover { background: var(--panel); }

.cols { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 20px; align-items: start; }
.side { position: sticky; top: 12px; }
nav.main ul { background: var(--panel); border-radius: 6px; overflow: hidden; }
nav.main a { display: block; padding: 9px 16px; color: #fff; text-decoration: none; text-transform: lowercase;
  border-bottom: 1px solid var(--bg); }
nav.main li:last-child a { border-bottom: 0; }
nav.main a:hover { background: #365d7a; }
nav.main a[aria-current], nav.main a.in { background: #365d7a; color: var(--green2); box-shadow: inset 4px 0 0 var(--green2); }

.content { background: var(--panel); border-radius: 6px; overflow: hidden; min-width: 0; }
.banner { background: #fff; padding: 5px; }
.banner img { display: block; width: 100%; }
main { padding: 22px 28px 30px; }
h1 { color: var(--green); font-weight: normal; font-size: 2rem; line-height: 1.2; margin: .1em 0 .6em; }
h2 { color: var(--green); font-weight: normal; font-size: 1.4rem; line-height: 1.3; margin: 1.5em 0 .5em; }
h3 { color: var(--green2); font-weight: normal; font-size: 1.15rem; margin: 1.3em 0 .3em; }
h4, h5, h6 { color: #fff; margin: 1.2em 0 .3em; }
.body > :first-child > h2:first-child, .body > :first-child h2:first-child { margin-top: 0; }
p { margin: 0 0 .9em; }
ul, ol { padding-left: 1.3em; }
blockquote { margin: 0 0 1em; padding-left: 1em; border-left: 3px solid var(--line); }
table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
td, th { padding: 4px 10px 4px 0; vertical-align: top; text-align: left; }
.ce { margin: 0 0 1.3em; }
.ce::after { content: ""; display: table; clear: both; }
.fig { margin: 4px 0 1em; }
.fig img { display: block; border-radius: 3px; }
.fig-right { float: right; margin-left: 22px; max-width: 46%; }
.fig-left { float: left; margin-right: 22px; max-width: 46%; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.note { background: var(--panel2); border-left: 4px solid var(--yellow); padding: 8px 14px; border-radius: 0 4px 4px 0; }
.lead { color: var(--muted); }

/* photos */
.years-nav ul { display: flex; flex-wrap: wrap; gap: 6px; margin: -.2em 0 1.2em; }
.years-nav a { display: inline-block; padding: 3px 11px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
.years-nav a[aria-current] { background: var(--green); border-color: var(--green); color: #173041; }
.years { list-style: none; padding: 0; margin: 1.4em 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.years a { display: block; height: 100%; text-decoration: none; color: var(--text); background: var(--panel2); border-radius: 6px; overflow: hidden; }
.years a:hover { outline: 2px solid var(--green); }
.years img, .years .nocover { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #284558; }
.years .y { display: block; padding: 6px 10px 0; font-size: 1.4rem; color: var(--green); }
.years .m { display: block; padding: 0 10px 9px; font-size: .8rem; color: var(--muted); }
.gallery { margin: 1em 0 1.8em; }
.gallery h3 { margin-top: 1.4em; }
.meta { color: var(--muted); font-size: .9rem; margin: .1em 0 .5em; }
.grid { list-style: none; padding: 0; margin: .4em 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.grid a { display: block; border-radius: 3px; overflow: hidden; background: #284558; }
.grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.grid a:hover img { transform: scale(1.04); }
details.more summary { cursor: pointer; color: var(--link); margin: .6em 0; font-weight: bold; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: .6em; }
.clip { margin: 0; }
.clip video { display: block; width: 100%; background: #000; border-radius: 4px; }
h2.cpg { border-top: 1px solid var(--line); padding-top: 1em; margin-top: 2.2em; }

/* audio + video */
.audio { list-style: none; padding: 0; margin: .4em 0 1.4em; }
.audio li { margin: 0 0 .8em; }
.audio .track { display: block; font-weight: bold; color: #fff; }
.audio .by { font-weight: normal; color: var(--muted); }
.audio audio { display: block; width: 100%; max-width: 520px; margin-top: 4px; }
.yt { margin: 1em 0 1.4em; max-width: 640px; }
.yt-lite { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.yt-lite img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-lite:hover img { opacity: 1; }
.yt-lite .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: #e02020; border-radius: 12px; }
.yt-lite .play::after { content: ""; position: absolute; left: 26px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff; }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; }
.yt figcaption small { display: block; }
.button { display: inline-block; background: var(--green); color: #173041; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: bold; }
.button:hover { background: var(--green2); color: #173041; }
.form small { display: block; color: var(--muted); margin-top: 6px; }

footer.site { text-align: center; color: var(--muted); font-size: .9rem; padding: 22px 0 40px; }
footer.site p { margin: 0 0 .5em; }
footer.site a { color: var(--muted); }
footer.site img { vertical-align: middle; margin-right: 10px; height: 44px; width: auto; background: #fff; border-radius: 4px; padding: 2px; }

/* lightbox */
.lbx { position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 26, .95); display: flex; align-items: center; justify-content: center;
  touch-action: pan-y; }
.lbx img { max-width: 96vw; max-height: calc(100vh - 90px); object-fit: contain; user-select: none; }
.lbx button { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.lbx button:hover { background: rgba(255, 255, 255, .28); }
.lbx .x { top: 10px; right: 10px; }
.lbx .p { left: 10px; top: 50%; transform: translateY(-50%); }
.lbx .n { right: 10px; top: 50%; transform: translateY(-50%); }
.lbx .cap { position: absolute; left: 0; right: 0; bottom: 8px; padding: 0 70px; text-align: center; color: #ddd; font-size: .9rem; }
.lbx .cap a { color: #ddd; }
.lbx[hidden] { display: none; }
body.lbx-open { overflow: hidden; }

@media (max-width: 800px) {
  .cols { grid-template-columns: 1fr; gap: 12px; }
  .side { position: static; }
  nav.main ul { display: flex; flex-wrap: wrap; gap: 6px; background: none; border-radius: 0; overflow: visible; }
  nav.main a { border: 0; border-radius: 999px; background: var(--panel); padding: 6px 14px; }
  nav.main a[aria-current], nav.main a.in { box-shadow: none; background: var(--green); color: #173041; }
  main { padding: 16px 16px 22px; }
  h1 { font-size: 1.6rem; }
  .fig-right, .fig-left { float: none; max-width: 100%; margin: 0 0 1em; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .years { grid-template-columns: repeat(2, 1fr); }
  .lbx .p, .lbx .n { top: auto; bottom: 34px; transform: none; }
  .lbx .cap { bottom: 96px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .grid img { transition: none; } }
