/* =========================================================
   DROP ARCHIVE (Page Scoped)
   - Designed for your drop-archive.html structure
   - 3:4 cover thumbnails (600x800)
   - Responsive grid
   - Stacked buttons: Web / PDF / Flipbook (green)
   - Rounded cards, square cover preview
========================================================= */

/* Page head */
.archive-page .pagehead{
  padding: 28px 0 12px;
}

.archive-page .pagehead h1{
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: .3px;
}

.archive-page .pagehead p{
  margin: 0;
  opacity: .85;
  line-height: 1.6;
}

/* Wrapper spacing */
.archive-wrap{
  display: grid;
  gap: 18px;
}

/* Year row container */
.year-row{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

/* Year header */
.year-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(201,178,107,.12), rgba(255,255,255,.03));
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.year-title{
  display:flex;
  align-items:baseline;
  gap: 12px;
}

.year-title h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: .12em;
}

.count{
  opacity: .75;
  font-weight: 800;
  font-size: 13px;
}

.year-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
}
.year-actions a:hover{
  background: rgba(255,255,255,.10);
}

/* =========================================================
   Issue Grid (Responsive)
========================================================= */
.issue-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

@media (max-width: 1100px){
  .issue-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px){
  .issue-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .issue-grid{ grid-template-columns: 1fr; padding: 12px; gap: 12px; }
}

/* =========================================================
   Issue Card
   - Card remains rounded
   - Cover preview is visually square
========================================================= */
.issue{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.30);
  display:flex;
  flex-direction: column;

  /* IMPORTANT: keep rounded card, but don't clip cover into round corners */
  overflow: visible;
}

/* Cover preview block (3:4 ratio, square corners) */
.cover{
  width: 100%;
  aspect-ratio: 3 / 4;                 /* 600x800 */
  background-size: contain;            /* show full cover (no crop) */
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,.22);   /* frame behind cover */

  /* Make cover square (no rounding) */
  border-radius: 0;

  /* Give a crisp edge */
  border-bottom: 1px solid rgba(255,255,255,.10);
}

/* Body becomes the rounded “bottom” of the card */
.body{
  padding: 12px 12px 14px;
  display:flex;
  flex-direction: column;
  gap: 6px;

  /* Keep rounded look where it matters */
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;

  /* Clip any inner effects cleanly */
  overflow: hidden;
}

/* Text */
.season{
  font-weight: 1000;
  letter-spacing: .4px;
  font-size: 16px;
}

.meta{
  font-size: 13px;
  opacity: .75;
  font-weight: 800;
}

/* =========================================================
   Buttons (stacked)
========================================================= */
.btnrow{
  margin-top: 10px;
  display:flex;
  flex-direction: column;
  gap: 9px;
}

.btnrow a{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 1000;
  font-size: 13px;
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* Web (Primary) */
.btnrow a.web{
  color:#fff;
  background: linear-gradient(135deg, #0e2a3a, #123c52);
  border-color: rgba(255,255,255,.16);
}
.btnrow a.web:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg, #123c52, #0e2a3a);
}

/* PDF (Gold) */
.btnrow a.pdf{
  color:#111;
  background: linear-gradient(135deg, #c9b26b, #b79e4f);
  border-color: rgba(201,178,107,.95);
  box-shadow: 0 0 10px rgba(201,178,107,.18);
}
.btnrow a.pdf:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.35), 0 0 14px rgba(201,178,107,.35);
}

/* Flipbook (Green) */
.btnrow a.flip{
  color:#fff;
  background: linear-gradient(135deg, #0b3d2e, #145a41);
  border-color: rgba(11,61,46,.85);
  box-shadow: 0 0 10px rgba(11,61,46,.22);
}
.btnrow a.flip:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, #145a41, #0b3d2e);
  box-shadow: 0 8px 18px rgba(0,0,0,.35), 0 0 14px rgba(11,61,46,.35);
}

/* Small devices tightening */
@media (max-width: 420px){
  .body{ padding: 12px; }
  .btnrow a{ padding: 11px 12px; }
}