/* St. Demetrios — The Spirit archive UI */

.stdem-spirit { margin: 0 0 1.5rem; }
.stdem-spirit-empty { color: #555; font-style: italic; }

/* ---- Hero (newest issue) ---- */
.stdem-spirit-hero {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  background: linear-gradient(135deg, #0b3a66 0%, #1a5f9e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 6px 24px rgba(11, 58, 102, .18);
}
.stdem-spirit-hero__thumb {
  flex: 0 0 auto;
  width: 220px;
  max-width: 40%;
}
.stdem-spirit-hero__thumb a { display: block; line-height: 0; }
.stdem-spirit-hero__thumb img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  background: #fff;
}
.stdem-spirit-hero__thumb .stdem-spirit-thumb-ph {
  aspect-ratio: 8.5 / 11;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border: 3px solid rgba(255,255,255,.4);
  border-radius: 8px;
  font-size: 2.4rem;
}
.stdem-spirit-hero__body { flex: 1 1 auto; min-width: 0; }
.stdem-spirit-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  color: #d4af37;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.stdem-spirit-hero__title {
  margin: 0 0 .5rem;
  font-size: 1.7rem;
  line-height: 1.2;
  color: #fff;
}
.stdem-spirit-hero__lede { margin: 0 0 1rem; color: rgba(255,255,255,.9); }
.stdem-spirit-hero__cta {
  display: inline-block;
  background: #d4af37;
  color: #0b3a66;
  font-weight: 700;
  text-decoration: none;
  padding: .55rem 1.1rem;
  border-radius: 8px;
  transition: background .15s ease, transform .15s ease;
}
.stdem-spirit-hero__cta:hover { background: #e6c65a; transform: translateY(-1px); }

/* ---- Year picker ---- */
.stdem-spirit-years {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.stdem-spirit-years button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0b3a66;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.stdem-spirit-years button:hover { border-color: #1a5f9e; }
.stdem-spirit-years button.is-active {
  background: #1a5f9e;
  border-color: #1a5f9e;
  color: #fff;
}

/* ---- Issue grid ---- */
.stdem-spirit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem;
}
.stdem-spirit-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.stdem-spirit-card:hover {
  box-shadow: 0 6px 18px rgba(11,58,102,.15);
  transform: translateY(-2px);
  border-color: #1a5f9e;
}
.stdem-spirit-card__thumb {
  line-height: 0;
  background: #f1f5f9;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
}
.stdem-spirit-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.stdem-spirit-card__thumb .stdem-spirit-thumb-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 2rem;
}
.stdem-spirit-card__label {
  padding: .6rem .7rem;
  font-weight: 600;
  font-size: .95rem;
  color: #0b3a66;
  line-height: 1.25;
}
.stdem-spirit-card__open {
  margin-top: auto;
  padding: 0 .7rem .7rem;
  font-size: .8rem;
  color: #1a5f9e;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
  .stdem-spirit-hero { flex-direction: column; text-align: center; gap: 1.1rem; }
  .stdem-spirit-hero__thumb { width: 60%; max-width: 220px; }
  .stdem-spirit-hero__title { font-size: 1.4rem; }
  .stdem-spirit-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
