/* ============================================================
   JPSIM — Archive Page Styles
   archive.css  |  Loaded only on journal/archive
   ============================================================ */

/* ── Archive Hero Card (mirrors issue-hero-card design) ──── */
.archive-hero-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #091c30 0%, var(--primary) 50%, #1e4a72 100%);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 var(--sp-4);
  box-shadow: 0 10px 40px rgba(9,28,48,.45);
  min-height: 120px;
  position: relative;
}
.ahc-left {
  flex: 0 0 38%;
  padding: 18px 26px 18px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  z-index: 1;
}
.ahc-left::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 260px;
  height: 120px;
  background: rgba(255,255,255,.06);
  border-radius: 60% 80% 0 0;
  transform: rotate(-18deg);
  pointer-events: none;
}
.ahc-left::after {
  content: '';
  position: absolute;
  bottom: 26px;
  left: -10px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 40%, color-mix(in srgb, var(--accent) 30%, transparent) 100%);
  transform: rotate(-20deg);
  pointer-events: none;
}
.ahc-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #0a1f3a;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 5px 20px 5px 14px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  align-self: flex-start;
  line-height: 1.6;
}
.ahc-journal-name {
  color: #fff;
  font-size: clamp(.85rem, 1.7vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  font-family: var(--font-heading);
}
.ahc-vdivider {
  width: 1px;
  background: linear-gradient(to bottom, transparent 5%, color-mix(in srgb, var(--accent) 70%, transparent) 30%, color-mix(in srgb, var(--accent) 70%, transparent) 70%, transparent 95%);
  flex-shrink: 0;
  margin: 0;
  align-self: stretch;
}
.ahc-right {
  flex: 1;
  padding: 18px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.ahc-right::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='50' viewBox='0 0 56 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 2 L54 17 L54 33 L28 48 L2 33 L2 17 Z' fill='none' stroke='%23ffffff' stroke-width='0.7'/%3E%3C/svg%3E");
  background-size: 56px 50px;
  opacity: .08;
  pointer-events: none;
}
.ahc-vol-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ahc-vol-title {
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -.01em;
}
.ahc-year-badge {
  display: inline-block;
  background: var(--accent);
  color: #0a1f3a;
  font-size: .8rem;
  font-weight: 900;
  padding: 5px 20px 5px 12px;
  clip-path: polygon(0% 0%, calc(100% - 12px) 0%, 100% 50%, calc(100% - 12px) 100%, 0% 100%);
  letter-spacing: .06em;
  white-space: nowrap;
  line-height: 1.6;
}
.ahc-period {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  margin: 0;
}
.ahc-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ahc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8,27,51,.5);
  border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 10px;
  padding: 7px 14px;
  min-width: 62px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.ahc-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-heading);
}
.ahc-stat-lbl {
  font-size: .57rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-top: 5px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .archive-hero-card { flex-direction: column; }
  .ahc-left { flex: none; padding: 20px 20px 14px; }
  .ahc-vdivider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent); }
  .ahc-right { padding: 16px 20px 20px; }
  .ahc-left::after { display: none; }
}

/* ── Volume Sections ──────────────────────────────────────── */
.volume-section {
  margin-bottom: var(--sp-8);
}
.volume-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 var(--sp-4) 0;
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid #e2e8f0;
  position: relative;
  font-family: var(--font-heading);
}
.volume-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.volume-sub {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 6px;
}

/* ── Search / Filter Bar ──────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-2) var(--sp-3);
  background: #f4f7fb;
  border: 1px solid #dde4ef;
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
}
.search-bar .form-control {
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 6px 10px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.search-bar input.form-control { flex: 1; min-width: 160px; }
.search-bar select.form-control { min-width: 110px; cursor: pointer; }

/* ── No Results ───────────────────────────────────────────── */
.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

/* ── Sidebar — Quick Links ────────────────────────────────── */
.ql-widget { padding: 0; overflow: hidden; }

/* ── Sidebar — Recognised By ──────────────────────────────── */
.recog-widget { padding: 0; overflow: hidden; }
.recog-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a5f96 100%);
  padding: 11px 16px;
}
.recog-hdr span { font-size: .82rem; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.recog-list { display: flex; flex-direction: column; }
.recog-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  text-decoration: none;
  border-bottom: 1px solid #f0f4f8;
  transition: background .14s;
}
.recog-item:last-child { border-bottom: none; }
.recog-item:hover { background: #f7fafd; }
.recog-mark {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.1;
}
.recog-info { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.recog-name { font-size: .76rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.recog-status { font-size: .66rem; color: var(--text-muted); }
.recog-tick {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900; color: #fff;
}

/* ── Sidebar — Indexed In ─────────────────────────────────── */
.index-widget { padding: 0; overflow: hidden; }
.index-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f4c75 0%, #1b6ca8 100%);
  padding: 11px 16px;
}
.index-hdr span { font-size: .82rem; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.idx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 12px 14px;
}
.idx-card {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 6px 8px;
  text-decoration: none;
  transition: box-shadow .14s, border-color .14s;
}
.idx-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(26,60,94,.1); }
.idx-mark {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 900; color: #fff;
}
.idx-name { font-size: .67rem; font-weight: 600; color: var(--primary); line-height: 1.2; }

/* ── Sidebar — Feed Links ─────────────────────────────────── */
.feed-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f4f8;
  text-decoration: none;
  color: var(--text);
  font-size: .82rem;
  transition: color .14s;
}
.feed-link:last-child { border-bottom: none; }
.feed-link:hover { color: var(--accent); }
.feed-link-left { display: flex; align-items: center; gap: 8px; }
.feed-icon {
  width: 22px; height: 22px;
  background: #f97316;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

/* ── Sidebar — Metrics ────────────────────────────────────── */
.metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f0f4f8;
  gap: var(--sp-2);
}
.metrics-row:last-child { border-bottom: none; }
.metrics-row-label { font-size: .78rem; color: var(--text-muted); }
.metrics-row-val { font-size: .82rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* ── Sidebar — Issue Stats ────────────────────────────────── */
.issue-stats-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--sp-1); }
.issue-stat-chip {
  font-size: .7rem;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--primary);
  border: 1px solid #dde4ef;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ── Sidebar — License Widget ─────────────────────────────── */
.license-widget { padding: 0; overflow: hidden; }
.license-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  padding: 11px 16px;
}
.license-hdr span { font-size: .82rem; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.license-body { padding: 14px 14px 16px; }
.license-copy { font-size: .74rem; color: var(--text); margin-bottom: var(--sp-3); line-height: 1.5; }
.cc-badge-link { text-decoration: none; display: inline-block; margin-bottom: var(--sp-2); }
.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #111;
  border-radius: 6px;
  padding: 5px 10px;
}
.cc-icon { display: flex; align-items: center; justify-content: center; }
.cc-label { font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .03em; }
.license-text { font-size: .72rem; color: var(--text-muted); line-height: 1.55; margin-bottom: var(--sp-2); }
.license-text a { color: var(--primary); }
.license-divider { border: none; border-top: 1px solid #f0f4f8; margin: var(--sp-2) 0; }
.license-text a { color: #0d9488; }
.license-text a:hover { text-decoration: underline; }
.license-email {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  color: #0d9488;
  text-decoration: none;
  margin-top: var(--sp-2);
  border: 1.5px solid #0d9488;
  border-radius: 6px;
  padding: 5px 12px;
  transition: background .14s, color .14s;
}
.license-email:hover { background: #0d9488; color: #fff; text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-bar input.form-control,
  .search-bar select.form-control { width: 100%; }
}

/* ── Quick Links Full-Width Strip ─────────────────────────── */
.ql-strip {
  background: #e8eef7;
  padding: 44px 0 48px;
  margin-top: 0;
}
.ql-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.ql-strip-hdr {
  text-align: center;
  margin-bottom: 28px;
}
.ql-strip-title {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 6px;
  font-family: var(--font-heading);
}
.ql-strip-sub {
  font-size: .84rem;
  color: var(--text-muted);
  margin: 0;
}
.ql-strip-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.ql-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #dde5f0;
  border-left: 3.5px solid var(--primary);
  border-radius: 10px;
  padding: 14px 20px 14px 14px;
  text-decoration: none;
  flex: 1 1 180px;
  max-width: 240px;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.ql-card:hover {
  box-shadow: 0 4px 18px rgba(26,60,94,.13);
  border-left-color: var(--accent);
  transform: translateY(-2px);
}
.ql-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e4a72 100%);
  display: flex; align-items: center; justify-content: center;
}
.ql-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ql-card-title {
  font-size: .84rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.ql-card-sub {
  font-size: .72rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .ql-strip-grid { gap: 10px; }
  .ql-card { max-width: 100%; flex: 1 1 160px; }
}
@media (max-width: 480px) {
  .ql-card { flex: 1 1 100%; max-width: 100%; }
}