/* Bloški teki – archive edition pages. Loaded after site.css, only by the edition pages. */

/* Header facts: date, start time, starters */
.edfacts { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.edfacts dd { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; }

/* Note on a page (e.g. shortened course) */
.ednote { margin: 0 0 32px; padding: 18px 22px; background: var(--maroon); color: #fff; font-weight: 600; max-width: 820px; }

/* Links + photo */
.edlinks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.edgroup + .edgroup { margin-top: 32px; }
.edgroup h2 { margin: 0 0 12px; font-size: 30px; }
/* "Fotografije – author": the author follows the text in a lighter weight */
.edgroup .who { font-weight: 400; }
.edgroup .gone { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--black); font-weight: 800; font-size: 18px; color: var(--muted); }
.edgroup .gone small { font-weight: 600; font-size: 13px; }
/* one label with numbered page links (results split over several pages) */
.edgroup .pages { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--black); font-weight: 800; font-size: 18px; }
.edgroup .pagelinks { display: flex; flex-wrap: wrap; gap: 6px; }
.edgroup .list .pagelinks a { display: grid; grid-template-columns: none; place-items: center; min-width: 34px; height: 34px; padding: 0; border: 2px solid var(--black); text-decoration: none; font-size: 14px; }
.edgroup .pagelinks a:hover { background: var(--yellow); }
.edphotos { display: grid; gap: 20px; justify-items: start; }
.edphotos.row { grid-template-columns: repeat(auto-fill, minmax(210px, max-content)); align-items: start; }
.edarticle { margin: 0 0 36px; }
.edarticle .byline { font-weight: 800; }
.edphoto { margin: 0; border: var(--rule); background: #fff; max-width: 100%; }
.edphoto img { display: block; max-width: 100%; height: auto; }
.edphoto figcaption { padding: 10px 14px; border-top: var(--rule); font-size: 15px; }

/* Winners */
.winners { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.winners h2 { margin: 0 0 16px; font-size: clamp(34px, 4vw, 48px); }
.winners .wnote { margin: -6px 0 14px; color: var(--muted); }
.winners .wnote a { font-weight: 800; color: var(--black); }
.cats3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--black); border: var(--rule); }
.cats3 section { background: #fff; padding: 14px 16px 16px; }
.cats3 section:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cats3 h3 { margin: 0 0 8px; font-size: 15px; color: var(--maroon); }
.cats3 ol { margin: 0; padding-left: 22px; }
.cats3 li { font-size: 14px; line-height: 1.55; letter-spacing: .02em; }
.cats3 li::marker { font-weight: 800; }

/* Previous / next edition */
.yearnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3px; background: var(--black); border: var(--rule); }
.yearnav > a, .yearnav > span { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 18px 22px; background: var(--paper); text-decoration: none; min-height: 96px; }
.yearnav > a:hover { background: var(--yellow); }
.yearnav > .next { text-align: right; align-items: flex-end; }
.yearnav > .all { align-items: center; text-align: center; }
.yearnav b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 36px; line-height: 1; }
.yearnav .label { color: var(--maroon); display: inline-flex; align-items: center; gap: 8px; }
.yearnav .arrow { width: 14px; height: 14px; }
.arrow.back { transform: rotate(180deg); }
a:hover .arrow.back { transform: rotate(180deg) translateX(4px); }

/* History page (1975–1988) */
.histfig { width: fit-content; }
.histfig img { width: 200px; }
.histmedia .gone { margin: 0; color: var(--muted); font-size: 14px; }
/* wrapping row: the items of the last row stretch, so no empty cells */
.histjump { display: flex; flex-wrap: wrap; border-top: var(--rule); border-left: var(--rule); }
.histjump a { flex: 1 0 70px; display: flex; flex-direction: column; align-items: center; padding: 10px 4px; background: var(--paper); text-decoration: none; border-right: var(--rule); border-bottom: var(--rule); }
.histjump a:hover { background: var(--yellow); }
.histjump b { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 24px; line-height: 1; color: var(--maroon); }
.histjump span { font-size: 13px; font-weight: 800; }
section.hist { scroll-margin-top: 60px; }
.histhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 24px; }
.histhead h2 { margin: 0; font-size: clamp(36px, 5vw, 60px); }
.histhead .label { font-size: 15px; color: var(--maroon); }
.histbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.histtext p { margin: 0 0 12px; font-size: 17px; max-width: 62ch; }
.histdist { margin: 0 0 18px; padding: 0; list-style: none; border-top: 2px solid var(--black); }
.histdist li { padding: 8px 0; border-bottom: 1px solid var(--black); font-weight: 800; }
.histmedia + .histmedia { margin-top: 24px; }
.histmedia h3 { margin: 0 0 6px; color: var(--maroon); }
.histmedia h3 a { color: inherit; }
.histmedia .credit { margin: 0 0 10px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.thumbs a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid var(--black); background: #e9e1cf; }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumbs a:hover img { transform: scale(1.06); }
.thumbs.clips a { aspect-ratio: 3 / 4; }
.thumbs.clips img { object-position: top; }

@media (max-width: 960px) {
  .edlinks, .winners, .histbody { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .edfacts { grid-template-columns: 1fr; }
  .cats3 { grid-template-columns: 1fr 1fr; }
  .yearnav { grid-template-columns: 1fr 1fr; }
  .yearnav .all { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
}
@media (max-width: 400px) {
  .cats3 { grid-template-columns: 1fr; }
}
