/* /teihasoiu/archives — minimal, typographic layout for the publication archive.
   Markup comes from ojs-tools/build-archive-page.py, which writes classes, not inline
   styles, so this file owns the whole design. Palette is the site's own: #0b6670 accent,
   #17212b ink, #5e6b76 secondary, #e2e9ec rules. */

.ar {
  width: min(100% - 2rem, 62rem);
  margin: 0 auto;
  padding: 0.5rem 0 4rem;
  box-sizing: border-box;
}

/* --- one publication year --- */

.ar-year {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 0 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid #e2e9ec;
}
.ar-era > .ar-year:first-child { border-top: 0; padding-top: 1rem; }

.ar-year__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-self: start;
  position: sticky;
  top: 1rem;
}
.ar-year__y {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  color: #17212b;
  font-variant-numeric: tabular-nums;
}
.ar-year__v,
.ar-year__n {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5e6b76;
}
.ar-year__n { color: #94a2ab; }

/* --- the issues in that year --- */

.ar-issues {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ar-issue {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.7rem 0.25rem 0.7rem 0;
  border-bottom: 1px solid #eef2f4;
  color: #17212b;
  text-decoration: none;
  transition: color 0.12s ease, padding-left 0.12s ease;
}
.ar-issues li:last-child .ar-issue { border-bottom: 0; }
.ar-issue:hover,
.ar-issue:focus-visible {
  color: #0b6670;
  padding-left: 0.4rem;
  text-decoration: none;
}
.ar-issue:focus-visible { outline: 2px solid #0b6670; outline-offset: 2px; }
.ar-issue__t {
  font-size: 1rem;
  line-height: 1.4;
}
.ar-issue__m {
  flex: none;
  font-size: 0.8rem;
  color: #94a2ab;
  font-variant-numeric: tabular-nums;
}
.ar-issue:hover .ar-issue__m { color: #5e6b76; }

/* --- the break between the two series --- */

.ar-era--legacy { margin-top: 3.5rem; }
.ar-era__break {
  padding-top: 2rem;
  border-top: 2px solid #17212b;
}
.ar-era__label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5e6b76;
}
.ar-era__note {
  max-width: 46rem;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #5e6b76;
}

@media (max-width: 720px) {
  .ar-year {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }
  .ar-year__head {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 0.7rem;
  }
  .ar-year__y { font-size: 1.4rem; }
  .ar-issue { gap: 1rem; }
}
