/*
 * article.css  —  Article landing page supplements
 * Extends inner.css; loaded only on the single-article view.
 * ─────────────────────────────────────────────────────────────
 */

/* ── Extra article-type badge variants ─────────────────────── */
.badge-brief    { background: #0284c7; color: #fff; }
.badge-guideline{ background: #4f46e5; color: #fff; }

/* ── Copy feedback ──────────────────────────────────────────── */
.copy-feedback {
  font-size: .75rem;
  font-weight: 600;
  color: #16a34a;
  margin-left: .35rem;
}

/* ── Citation Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none !important; }

.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.1rem 1.25rem .9rem;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-title-wrap { flex: 1; min-width: 0; }
.modal-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c2410c;
  margin-bottom: 4px;
}
.modal-article-title {
  font-size: .88rem;
  font-weight: 700;
  color: #1a3c5e;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .12s;
}
.modal-close:hover { background: #f1f5f9; color: #1a3c5e; }

.modal-body { padding: 1.1rem 1.25rem 1.25rem; }

/* Modal cite format tabs */
.cite-format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: .85rem;
}
.cite-tab {
  font-size: .7rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #374151;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.cite-tab:hover  { background: #e0e7ff; border-color: #a5b4fc; color: #3730a3; }
.cite-tab.active { background: #1a3c5e; color: #fff; border-color: #1a3c5e; }

/* Citation output */
.cite-output {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .9rem 1rem;
  margin-bottom: .85rem;
  position: relative;
}
.cite-output-text {
  font-size: .85rem;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 .6rem;
  font-style: italic;
}
.btn-copy-cite {
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 6px;
  background: #1a3c5e;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .12s;
}
.btn-copy-cite:hover { background: #1e4f80; }

/* Download citation */
.cite-download-section {
  border-top: 1px solid #e2e8f0;
  padding-top: .75rem;
  margin-top: .25rem;
}
.cite-download-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6c757d;
  margin-bottom: .45rem;
}
.cite-download-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.btn-dl-cite {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: all .14s;
  white-space: nowrap;
}
.btn-dl-cite:hover { background: #f1f5f9; border-color: #94a3b8; }

/* ── Sidebar: Metrics row ───────────────────────────────────── */
.metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #374151;
}
.metrics-row:last-child { border-bottom: none; }
.metrics-row-label { color: #6c757d; font-size: .74rem; }
.metrics-row-val   { font-weight: 700; font-size: .78rem; color: #1a3c5e; }

/* ── Sidebar: Article Feed ──────────────────────────────────── */
.feed-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: #374151;
  text-decoration: none;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .13s;
}
.feed-link:hover { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.feed-link-left  { display: flex; align-items: center; gap: 7px; }
.feed-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #f97316;
  flex-shrink: 0;
}
.feed-icon svg { width: 12px; height: 12px; }

/* ── Sidebar: Recognised By ─────────────────────────────────── */
.recog-list { display: flex; flex-direction: column; gap: 5px; }
.recog-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: box-shadow .13s, border-color .13s;
  background: #fff;
}
.recog-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); border-color: #93c5fd; }
.recog-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.recog-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.recog-name   { font-size: .72rem; font-weight: 700; color: #1a3c5e; line-height: 1.3; }
.recog-status { font-size: .63rem; color: #6c757d; margin-top: 1px; }
.recog-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  flex-shrink: 0;
}
.recog-item.recog-pending { border-style: dashed; background: #fafafa; }
.recog-item.recog-pending .recog-status { color: #9ca3af; font-style: italic; }

/* ── Sidebar: Indexed In ────────────────────────────────────── */
.idx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.idx-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  background: #fff;
  transition: box-shadow .13s, border-color .13s;
}
.idx-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,.07); border-color: #93c5fd; }
.idx-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font-size: .62rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.idx-name {
  font-size: .63rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

/* ── Sidebar widget header strip ────────────────────────────── */
.sw-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

/* ── Title readability override ─────────────────────────────── */
.article-landing-title {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem) !important;
  font-weight: 800 !important;
  line-height: 1.38 !important;
  letter-spacing: -.018em !important;
  color: #0f2d4a !important;
  max-width: 74ch;
  margin: 1rem 0 .85rem !important;
  word-break: break-word;
  hyphens: auto;
}

/* ── Per-author rows ─────────────────────────────────────────── */
.author-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: .8rem;
}
.author-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.author-row-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-size: .95rem;
  font-weight: 700;
  color: #1a3c5e;
  line-height: 1.5;
}
.author-row-name strong { font-weight: 800; }
.author-row-name sup {
  font-size: .58rem;
  font-weight: 800;
  color: #c9a227;
  vertical-align: super;
  margin-left: 1px;
}
.author-row-affil {
  font-size: .76rem;
  color: #6c757d;
  line-height: 1.5;
  padding-left: 2px;
}

/* ── DOI badge (prominent separate line) ────────────────────── */
.article-doi-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .55rem 1rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.doi-label-pill {
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: #1a3c5e;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  flex-shrink: 0;
  line-height: 1.6;
}
.doi-value-link {
  font-size: .83rem;
  font-weight: 600;
  color: #1a3c5e;
  text-decoration: none;
  word-break: break-all;
  flex: 1;
}
.doi-value-link:hover { color: #c2410c; text-decoration: underline; }

/* ── Hide disclosure sections ────────────────────────────────────── */
.article-coi-section,
.article-funding-section,
.article-contrib-section,
.article-ethics-section { display: none; }

/* ── Compact prose headings for disclosure sections ─────────────── */
.article-coi-section h2,
.article-funding-section h2,
.article-contrib-section h2,
.article-ethics-section h2,
.article-references-section h2 {
  font-size: .82rem !important;
  font-weight: 700 !important;
  margin: 1rem 0 .35rem !important;
  padding-bottom: .25rem !important;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #374151 !important;
  border-bottom-color: #f1f5f9 !important;
}

/* ── Disclosure sections (COI / Funding / Contributions / Ethics) ─── */
.article-disclosure-block {
  background: transparent;
  border-left: 2px solid #e2e8f0;
  border-radius: 0;
  padding: .2rem .75rem;
  margin-bottom: .3rem;
  font-size: .8rem;
  color: #6c757d;
  line-height: 1.6;
}
.article-disclosure-block p { margin: 0; }

/* ── Small attribution note below each section ───────────────────── */
.article-section-note {
  display: none; /* hidden; remove this line to re-enable */
  font-size: .72rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: .2rem 0 0;
}
.article-section-note a {
  color: #64748b;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
}
.article-section-note a:hover { color: #1a3c5e; }

/* ── Recommendation area ─────────────────────────────────────────── */
.reco-area {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.reco-panel {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.reco-hdr {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.reco-icon { font-size: 1rem; line-height: 1; }
.reco-title {
  font-size: .8rem;
  font-weight: 700;
  color: #1a3c5e;
  flex: 1;
}
.reco-see-all {
  font-size: .7rem;
  font-weight: 600;
  color: #c2410c;
  text-decoration: none;
}
.reco-see-all:hover { text-decoration: underline; }
.reco-badge {
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #e0e7ff;
  color: #3730a3;
  white-space: nowrap;
}
.reco-badge-green { background: #dcfce7; color: #166534; }
.reco-list { display: flex; flex-direction: column; }
.reco-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .6rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background .12s;
}
.reco-card:last-child { border-bottom: none; }
.reco-card:hover { background: #fff7ed; }
.reco-card-type {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #c2410c;
}
.reco-card-title {
  font-size: .82rem;
  font-weight: 600;
  color: #1a3c5e;
  line-height: 1.45;
}
.reco-card:hover .reco-card-title { color: #c2410c; }
.reco-card-auth {
  font-size: .72rem;
  color: #6c757d;
}

/* ── Structured abstract — enlarged ─────────────────────────────── */
.article-abstract {
  padding: 1.5rem 1.7rem !important;
  border-left-width: 5px !important;
}
.article-abstract h3 {
  font-size: 1.05rem !important;
  letter-spacing: .06em !important;
  margin-bottom: .9rem !important;
}
.abstract-field {
  font-size: .94rem !important;
  line-height: 1.75 !important;
  margin-bottom: .9rem !important;
}
.abstract-field > strong {
  font-size: .76rem !important;
  letter-spacing: .07em !important;
}

/* ── Reference list ──────────────────────────────────────────────── */
.ref-list {
  padding-left: 1.6rem;
  margin: .5rem 0 .6rem;
  font-size: .85rem;
  line-height: 1.75;
  color: #374151;
}
.ref-item {
  margin-bottom: .55rem;
  padding-left: .25rem;
}
.ref-body { display: inline; }
.ref-doi-link {
  display: inline-block;
  margin-left: .45rem;
  font-size: .72rem;
  font-weight: 600;
  color: #1a3c5e;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 1px 7px;
  text-decoration: none;
  vertical-align: middle;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.ref-doi-link:hover { background: #dbeafe; border-color: #93c5fd; color: #0f2d4a; }

/* ── References PDF fallback ─────────────────────────────────────── */
.ref-pdf-fallback {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: .85rem 1rem;
  margin-bottom: .5rem;
}
.ref-pdf-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}
.ref-pdf-fallback p {
  margin: 0 0 .2rem;
  font-size: .87rem;
  color: #374151;
  line-height: 1.6;
}
.ref-pdf-fallback a { color: #1a3c5e; font-weight: 600; text-decoration: underline; }
