/* Brand tokens (same palette used sitewide) */
.page-wrap.issues-page{
  --brand:#800000;               /* maroon */
  --accent:#ffba08;              /* yellow */
  --text:#1A1A1A;                /* off-black on light bg */
  --surface:#ffffff;             /* cards; body is #FFFDF7 */
  --border:rgba(128,0,0,.14);    /* subtle maroon-tinted border */
  --shadow:0 6px 24px rgba(0,0,0,.06);
  --ring:rgba(255,186,8,.35);

  margin-block: clamp(16px, 3vw, 40px) clamp(28px, 5vw, 64px);
  padding-inline: clamp(12px, 2vw, 20px);
}

/* Title + subhead */
.page-title{
  margin: 0 0 clamp(10px, 1.8vw, 14px);
  font-family: var(--font-site, "Bitter", Georgia, serif);
  font-weight: 900;
  color: var(--brand);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 1.9rem);
  line-height: 1.1;

  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .25em;
  text-decoration-thickness: 3px;
}
.page-sub{
  margin: 0 0 clamp(14px, 2.2vw, 18px);
  color: #5b6472;
  font-family: var(--font-nav, Tahoma, Geneva, Verdana, sans-serif);
  font-size: .98rem;
}

/* Grid — stays top-left, never visually centered */
.issue-grid{
  display: grid;
  gap: clamp(14px, 2.2vw, 20px);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-content: start;
  justify-items: stretch;
}

/* Card */
.issue-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(14px, 2vw, 18px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;        /* keeps everything clipped to radius */
  isolation: isolate;      /* predictable stacking for focus rings etc. */
}
.issue-card:hover{
  transform: translateY(-3px);
  border-color: rgba(128,0,0,.22);
  box-shadow: 0 12px 34px rgba(128,0,0,.08), 0 4px 14px rgba(0,0,0,.06);
}
.issue-card:focus-within{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Clickable heading */
.issue-link{
  color: inherit;
  text-decoration: none;
}
.issue-link:hover h2{
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Heading */
.issue-card h2{
  margin: 0 0 8px;
  font-family: var(--font-site, "Bitter", Georgia, serif);
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--brand);
}

/* Badges */
.issue-badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.badge{
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff6d1;        /* soft accent wash */
  color: #7a3d00;
  border: 1px solid #ffe089;
}
.badge.gray{
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e5e7eb;
}

/* Meta + description */
.issue-meta{
  color: #5b6472;
  font-size: .92rem;
  margin-bottom: 10px;
}
.issue-desc{
  color: #374151;
  margin: 0 0 12px;
  min-height: 2.6em;
}

/* Button — brand primary */
.btn{
  align-self: flex-start;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,186,8,.55);
  text-decoration: none;
  color: #4a2a00;
  background: var(--accent);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255,186,8,.25);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover{
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Empty state */
.empty{
  color: #6b7280;
  margin: 6px 0 0;
}

/* Optional fixed column counts at common widths */
@media (min-width: 600px){  .issue-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px){  .issue-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px){ .issue-grid{ grid-template-columns: repeat(4, 1fr); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .issue-card, .btn{ transition: none; }
}