/* PBC Swiss — magazine card grid (3-up, 3:4 cover) */

/* Reshuffle button in the Newsletter section header. Mirrors the chronology
   and collection patterns — small, monochrome, sits on its own line below
   the meta text, with a rotating arrow that spins during AJAX refresh. */
.sec-newsletter .sec-head .meta { position: relative; }
.sec-newsletter .sec-head .meta-actions { margin-top: 10px; }
.newsletter-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.newsletter-refresh:hover,
.newsletter-refresh:focus-visible {
  background: var(--ink);
  color: #fff;
  outline: none;
}
.newsletter-refresh-icon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transform-origin: center;
}
.sec-newsletter.is-loading .newsletter-refresh { pointer-events: none; opacity: .55; }
.sec-newsletter.is-loading .newsletter-refresh-icon {
  animation: pbc-newsletter-spin .8s linear infinite;
}
@keyframes pbc-newsletter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Reshuffle button on the Newsletter page's "Read the issue" spotlight.
   Same visual treatment as .newsletter-refresh, scoped to .sec-read-issue. */
.sec-read-issue .sec-head .meta { position: relative; }
.sec-read-issue .sec-head .meta-actions { margin-top: 10px; }
.read-issue-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.read-issue-refresh:hover,
.read-issue-refresh:focus-visible {
  background: var(--ink);
  color: #fff;
  outline: none;
}
.read-issue-refresh-icon {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transform-origin: center;
}
.sec-read-issue.is-loading .read-issue-refresh { pointer-events: none; opacity: .55; }
.sec-read-issue.is-loading .read-issue-refresh-icon {
  animation: pbc-newsletter-spin .8s linear infinite;
}


.mag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

.mag {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.mag-cover {
  aspect-ratio: 3 / 4;
  background: #f3f0e8;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.mag-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .18));
}

.mag-meta {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.mag-meta h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.mag-meta h4 small {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mag-meta .pp {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .mag-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mag-grid { grid-template-columns: 1fr; }
}
