/* Tidigare vinnare (preview page, 2026-11-27): the jury page's frame, then a search and the years as
   bands, white and light grey in turn as the jury's categories. A year's numeral stands large and
   light at the left margin and stays in view while its winners pass; each winner is the category
   in the rose small capitals of the winners' list over the name. Loaded after b.css. */

.b--vinnare .v-topp { padding-bottom: clamp(2.25rem, 3.6cqw, 3.5rem); }
.b--vinnare .b-rubrik { text-wrap: balance; }

/* ---------- Search and filters ---------- */
.v-sok { margin-top: clamp(2.75rem, 5.2cqw, 4.75rem); }
.v-etikett {
  display: block; margin-bottom: 0.7rem;
  color: var(--b-dov); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; line-height: 1.3;
  text-transform: uppercase;
}
.v-sok__rad { position: relative; }
.v-sok__ikon { position: absolute; left: 0; top: 50%; width: 1.5rem; height: 1.5rem; margin-top: -0.75rem; color: var(--b-ink); pointer-events: none; }
.v-sok__inmatning {
  display: block; width: 100%; height: 3.75rem;
  margin: 0; padding: 0 0 0 2.4rem;
  border: 0; border-bottom: 2px solid var(--b-ink); border-radius: 0;
  background: none; color: var(--b-ink);
  font: inherit; font-size: clamp(1.375rem, 2.3cqw, 2.0625rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
  -webkit-appearance: none; appearance: none;
}
/* At 320 px the example still fits whole. */
@media (max-width: 22.49em) { .v-sok__inmatning { font-size: 1.25rem; } }
.v-sok__inmatning::placeholder { color: var(--b-t4); font-weight: 300; opacity: 1; }
.v-sok__inmatning::-webkit-search-decoration { -webkit-appearance: none; }
.v-sok__inmatning::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 1.1rem; height: 1.1rem; margin-left: 0.75rem; cursor: pointer;
  background: linear-gradient(45deg, transparent calc(50% - 0.75px), var(--b-ink) calc(50% - 0.75px), var(--b-ink) calc(50% + 0.75px), transparent calc(50% + 0.75px)),
              linear-gradient(-45deg, transparent calc(50% - 0.75px), var(--b-ink) calc(50% - 0.75px), var(--b-ink) calc(50% + 0.75px), transparent calc(50% + 0.75px));
}
.v-sok__inmatning:focus-visible { outline-offset: 6px; }

.v-sok__val { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
@media (min-width: 30em) {
  .v-sok__val { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); max-width: 44rem; }
}
.v-val__lista {
  display: block; width: 100%; min-height: 3.25rem;
  margin: 0; padding: 0 2.75rem 0 1rem;
  border: 1px solid var(--b-ink); border-radius: 0;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23161414' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1.1rem center / 0.75rem auto;
  color: var(--b-ink);
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.3;
  text-overflow: ellipsis; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: background-color 0.3s ease;
}
.v-val__lista:hover { background-color: #f4f4f4; }
@media (min-width: 75em) { .v-val__lista { min-height: 3.75rem; } }

/* From 1200 px the search and the two choices share one line, aligned on their lower edge. */
@media (min-width: 75em) {
  .v-sok { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 10rem) minmax(0, 19rem); column-gap: clamp(1.5rem, 2.4cqw, 2.5rem); align-items: end; }
  .v-sok__val { display: contents; }
  .v-sok__fot { grid-column: 1 / -1; }
}

.v-sok__fot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
  min-height: 2.75rem; margin-top: 1.5rem;
}
.v-antal { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.v-rensa {
  display: inline-flex; align-items: center; gap: 0.7em; min-height: 2.75rem; padding: 0.25rem 0;
  border: 0; background: none; color: var(--b-ink); cursor: pointer;
  font: inherit; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase;
}
.v-rensa::before {
  content: ""; width: 0.6rem; height: 0.6rem; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transform: rotate(45deg);
}
.v-rensa > span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 0.2em; }
.v-rensa:hover > span { background-size: 0 1px; background-position: 100% 100%; transition: background-size 0.45s var(--alvar-ease); }

.v-dold { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.v-arkiv [hidden], [data-v-tomt][hidden], .v-rensa[hidden] { display: none !important; }

/* ---------- The years ---------- */
.v-ar { background: #ffffff; }
.v-ar--gra { background: #ededed; }
.v-ar__inre {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 2.4cqw, 2rem);
  padding: clamp(2.5rem, 5.4cqw, 4.9rem) var(--b-marg);
}
.v-ar__huvud { display: block; }
.v-ar__tal {
  margin: 0;
  font-size: clamp(3.25rem, 7.2cqw, 6.75rem); font-weight: 300; line-height: 0.92; letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
}
/* Every year stands the same way at every width: the numeral, then one short line per fact
   (date, place, number of awards), so no line ever ends on a separator. */
.v-ar__meta > span { display: block; }
.v-ar__meta {
  margin: 0.9rem 0 0; color: var(--b-dov);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; line-height: 1.5; text-transform: uppercase;
}

/* From 1200 px the year keeps the left column and follows the reader down its list. */
@media (min-width: 75em) {
  .v-ar__inre { grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 4.4cqw, 5rem); }
  .v-ar__huvud { position: sticky; top: calc(var(--alvar-header-h) + 1.75rem); align-self: start; }
  .v-ar__meta { margin-top: 1.1rem; }
}

/* One winner per row, as in the winners' list on the start page: from 760 px the category stands
   to the left of the name, and a citation opens under the name in a measure of its own, so an open
   one leaves no empty neighbour and every row keeps its button in the same place. */
.v-lista { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid color-mix(in srgb, var(--b-ink) 18%, transparent); }
.v-post { padding-block: 1.1rem 1.3rem; border-top: 1px solid color-mix(in srgb, var(--b-ink) 18%, transparent); }
@media (min-width: 47.5em) {
  .v-post { display: grid; grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 3cqw, 2.5rem); align-items: baseline; }
  .v-post__kategori { grid-column: 1; grid-row: 1; }
  .v-post__namn { grid-column: 2; grid-row: 1; margin-top: 0; }
  .v-post__mer { grid-column: 2; }
}
.v-post__kategori {
  margin: 0; color: var(--b-rosa-djup);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; line-height: 1.45; text-transform: uppercase;
}
.v-post__namn {
  margin: 0.4rem 0 0;
  font-size: clamp(1.125rem, 1.6cqw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.012em;
  overflow-wrap: anywhere;
}
.v-traff { background: var(--b-guld-ljus); color: inherit; box-shadow: inset 0 -2px 0 var(--b-guld); }
.v-post__kategori .v-traff { color: var(--b-ink); }

.v-post__mer summary {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 2.75rem; margin: 0.15rem 0 -0.9rem; padding-right: 1rem;
  cursor: pointer; list-style: none;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.v-post__mer summary::-webkit-details-marker { display: none; }
.v-post__mer summary::before {
  content: ""; width: 0.6rem; height: 0.6rem; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform 0.3s ease;
}
.v-post__mer[open] summary::before { transform: rotate(45deg); }
.v-post__mer[open] { padding-bottom: 0.4rem; }
.v-post__mer[open] summary { margin-bottom: 0; }
.v-post__text { max-width: 40rem; margin: 0.35rem 0 0; color: var(--b-dov); font-size: 1rem; line-height: 1.6; }
.v-post__givare { max-width: 40rem; margin: 0.85rem 0 0; font-size: 1rem; line-height: 1.5; }
.v-post__etikett {
  display: block; margin-bottom: 0.2rem; color: var(--b-dov);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- No match ---------- */
.v-tomt { padding: clamp(3rem, 6cqw, 5.5rem) var(--b-marg) clamp(1rem, 2cqw, 2rem); background: #ededed; }
.v-tomt__rubrik { margin: 0; font-size: clamp(1.75rem, 3.55cqw, 3.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.v-tomt__text { max-width: 36rem; margin: 1rem 0 0; font-size: var(--b-ingress); line-height: 1.5; }
.v-tomt__knapp { margin: clamp(1.75rem, 3cqw, 2.5rem) 0 clamp(2rem, 4cqw, 3.5rem); }
.v-tomt__knapp:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .v-post__mer summary::before, .v-val__lista, .v-rensa:hover > span { transition: none; }
}

/* Tighter heading block (Alexander 2026-11-27): this page only, the jury page keeps its rhythm */
.b--vinnare .b-rubrik { line-height: 0.9; }
.b--vinnare .b-jury__inre .b-brod { margin-top: clamp(1.5rem, 2.6cqw, 2.75rem); }
.b--vinnare .b-brod--tema > p:first-child { margin-bottom: 0.7em; }
.b--vinnare .b-brod > p + p { margin-top: 0; }
.b--vinnare .b-juryband__yta { height: var(--alvar-header-h); }
.b--vinnare .b-brod--tema > p:first-child { line-height: 1.25; margin-bottom: 0.55em; }
.b--vinnare .b-brod > p + p { line-height: 1.45; }
.b--vinnare .v-ar__tal { color: var(--b-rosa-djup); }
