/* ==========================================================================
   PubMed article detail page — pixel-matched to reference screenshot
   ========================================================================== */

.article-page { background: #fff; }

/* ---------- toolbar ---------- */
.article-toolbar {
  border-bottom: 1px solid #d9d9d9;
  background: #fff;
}
.article-toolbar .inner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.back-to-results {
  font-size: 16px;
  color: #0071bc;
  text-decoration: none;
}
.back-to-results:hover { text-decoration: underline; }

.article-toolbar__actions { display: flex; align-items: center; gap: 6px; }
.toolbar-btn {
  height: 30px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 28px;
  color: #212121;
  background: #fff;
  border: 1px solid #aeb0b5;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
}
.toolbar-btn:hover { background: #f1f1f1; border-color: #757575; }
.display-options-btn { display: inline-flex; align-items: center; gap: 6px; }
.display-options-btn .gear { font-size: 15px; color: #212121; }

/* ---------- layout ---------- */
.article-body {
  display: flex;
  align-items: flex-start;
  gap: 33px;
  padding-top: 34px;
  padding-bottom: 60px;
}
.article-main { width: 700px; flex: 0 0 700px; }
.article-side { width: 190px; flex: 0 0 190px; padding-top: 2px; }

/* ---------- citation line ---------- */
.article-citation {
  font-size: 16px;
  line-height: 22px;
  color: #212121;
}
.article-citation .journal-link {
  color: #0071bc;
  text-decoration: none;
  font-weight: 400;
}
.article-citation .journal-link:hover { text-decoration: underline; }
.article-citation .citation-rest { color: #212121; }

/* ---------- title ---------- */
.article-heading {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.28;
  color: #212121;
  letter-spacing: -0.2px;
}

/* ---------- authors ---------- */
.authors-list {
  margin-top: 17px;
  font-size: 16px;
  line-height: 22px;
  color: #212121;
}
.authors-list a { color: #0071bc; text-decoration: none; }
.authors-list a:hover { text-decoration: underline; }
.authors-list sup {
  font-size: 11px;
  color: #757575;
  margin-left: 1px;
  vertical-align: super;
  line-height: 0;
}

/* ---------- affiliations ---------- */
.affiliations-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  color: #212121;
}
.affiliations-row .expand-affiliations {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: #212121;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.affiliations-row .expand-affiliations:hover { text-decoration: underline; }
.affiliations-row .plus { font-size: 17px; }

/* ---------- identifiers ---------- */
.article-identifiers {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 16px;
  line-height: 22px;
  color: #212121;
}
.article-identifiers .doi a { color: #0071bc; text-decoration: none; }
.article-identifiers .doi a:hover { text-decoration: underline; }
.external-link-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 4px;
  background: no-repeat center/11px 11px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMiAxMiI+PHBhdGggZmlsbD0iIzAwNzFiYyIgZD0iTTEgMmg1djFIMnoiLz48L3N2Zz4=");
}

/* ---------- free article / abstract ---------- */
.article-free {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #b85c00;
}
.no-abstract {
  margin: 34px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 17px;
  color: #4a4a4a;
}
.pubmed-disclaimer { margin: 12px 0 0; font-size: 15px; }
.pubmed-disclaimer a { color: #0071bc; text-decoration: none; }
.pubmed-disclaimer a:hover { text-decoration: underline; }

/* ---------- similar articles ---------- */
.similar-articles { margin-top: 44px; }
.similar-articles h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: #212121;
}
.similar-item { margin-bottom: 20px; }
.similar-title {
  display: block;
  font-size: 16px;
  line-height: 22px;
  color: #0071bc;
  text-decoration: none;
}
.similar-title:hover { text-decoration: underline; }
.similar-authors,
.similar-citation,
.similar-meta {
  font-size: 14px;
  line-height: 21px;
  color: #212121;
}
.similar-citation { color: #212121; }
.similar-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #4a4a4a; }

/* ---------- below the fold ---------- */
.below-fold { margin-top: 40px; }
.below-fold h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin: 0 0 12px;
  color: #212121;
}
.mesh-terms ul { margin: 0; padding-left: 20px; }
.mesh-terms li { font-size: 14px; line-height: 22px; }
.mesh-terms a { color: #0071bc; text-decoration: none; }
.mesh-terms a:hover { text-decoration: underline; }
.references-block ol { margin: 0; padding-left: 22px; }
.references-block li { font-size: 14px; line-height: 22px; }

/* ---------- right sidebar ---------- */
.side-heading {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #757575;
}
.side-section + .side-section { margin-top: 44px; }

.imr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 7px;
  background: #123a63;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.imr-badge:hover { background: #0d2d4d; }
.imr-badge__icon { display: flex; align-items: center; }
.imr-badge__text { display: flex; flex-direction: column; line-height: 1; }
.imr-badge__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.imr-badge__tag {
  margin-top: 2px;
  font-size: 8.5px;
  color: #fff;
  letter-spacing: 0.01em;
}

/* action buttons */

/* page navigation */
.page-navigation ul { list-style: none; margin: 0; padding: 0; }
.page-navigation li {
  border-top: 1px solid #d9d9d9;
  font-size: 15px;
  line-height: 1.35;
}
.page-navigation li:last-child { border-bottom: 1px solid #d9d9d9; }
.page-navigation a {
  display: block;
  padding: 15px 0 15px 22px;
  color: #20558a;
  text-decoration: none;
}
.page-navigation li.active a { padding-left: 0; }
.page-navigation a:hover { text-decoration: underline; }
.page-navigation .chev { display: inline-block; width: 16px; font-size: 17px; }

/* ---------- next result ---------- */
.next-result-wrap {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 60px;
}
.next-result {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #212121;
}
.next-result__label { font-size: 10px; letter-spacing: 0.08em; color: #757575; }
.next-result__count { font-size: 13px; color: #212121; }
.next-result__chev { font-size: 30px; line-height: 1; color: #212121; }
.next-result:hover .next-result__count { text-decoration: underline; }

/* ================= pixel alignment overrides ================= */
.search-page--detail { padding: 0; }
.search-page--detail .search-form > .inner-wrap { width: 1020px; margin: 0 auto; }

.article-toolbar .inner-wrap {
  width: 1020px; margin: 0 auto;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.article-toolbar { border-bottom: 1px solid #d9d9d9; background: #fff; }
.article-toolbar__actions { gap: 6px; }
.toolbar-btn {
  height: 31px; min-width: 64px; padding: 0 11px;
  font-size: 15px; line-height: 29px;
  border: 1px solid #aeb0b5; border-radius: 2px; background: #fff;
  color: #212121;
}
.back-to-results { font-size: 17px; color: #0071bc; }

.article-body { width: 1020px; margin: 0 auto; gap: 30px; padding-top: 33px; }
.article-main { width: 690px; flex: 0 0 690px; }
.article-side { width: 190px; flex: 0 0 190px; }

.article-citation { font-size: 17px; line-height: 24px; }
.article-heading {
  font-size: 34px; line-height: 43px; margin-top: 9px;
  max-width: 690px;
  letter-spacing: -0.3px;
}
.authors-list { margin-top: 15px; font-size: 17px; }
.affiliations-row { margin-top: 13px; font-size: 17px; }
.article-identifiers { margin-top: 11px; font-size: 17px; }
.article-free { margin-top: 12px; font-size: 17px; }
.no-abstract { margin-top: 33px; font-size: 18px; }
.pubmed-disclaimer { margin-top: 12px; font-size: 16px; }

.expand-affiliations { color: #212121; }

/* --- refined geometry --- */
.article-body { width: 1020px; gap: 30px; padding-left: 20px; box-sizing: border-box; }
.article-main { width: 790px; flex: 0 0 790px; }
.article-side { width: 190px; flex: 0 0 190px; }
.article-heading { font-size: 30px; line-height: 43px; max-width: 760px; }
.article-citation { font-size: 16px; }
.article-heading { font-size: 31px; line-height: 42px; }
.article-heading { font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 400; line-height: 41px; letter-spacing: 0; }


/* ===== vertical rhythm: driven by calibration variables ===== */
.article-body { padding-top: var(--pt-body, 49px); }
.article-citation { line-height: 20px; }
.article-heading { margin-top: var(--mt-heading, 18px); line-height: 41px; }
.authors-list { margin-top: var(--mt-authors, 14px); line-height: 20px; }
.affiliations-row { margin-top: var(--mt-affil, 5px); }
.article-identifiers { margin-top: var(--mt-ids, -2px); line-height: 20px; }
.article-free { margin-top: var(--mt-free, 8px); line-height: 20px; }
.no-abstract { margin-top: var(--mt-abstract, 39px); }
.pubmed-disclaimer { margin-top: var(--mt-disc, 7px); }
.similar-articles { margin-top: var(--mt-similar, 24px); }

/* toolbar separators: reference has rules at y=240 and y=296 */
.search-page--detail { border-bottom: 1px solid #d8d8d8; }
.article-toolbar { border-top: 1px solid #d8d8d8; border-bottom: 1px solid #d9d9d9; margin-top: -1px; height: 57px; }
.article-heading { font-size: 33.4px; line-height: 41px; letter-spacing: 0.12px; font-weight: 700; max-width: 790px; }

/* IMR badge: real logo bitmap at native size */
.imr-badge {
  display: inline-block;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: 0;
}
.imr-badge img { display: block; width: 103px; height: 27px; }
.imr-badge:hover { box-shadow: none !important; transform: none !important; opacity: .9; }

/* right rail must start at x=1249 like the reference */
.article-main { width: 750px !important; flex: 0 0 750px !important; }
.article-heading { max-width: 750px !important; }
.article-body { gap: 40px !important; }
.side-section.full-text-links { padding-top: 5px; }
.article-side { margin-top: 4px !important; }

/* icon glyphs matching the reference */

/* ================= ACTIONS buttons: final geometry =================
   Reference: 141x36 navy button, icon pinned near the left edge,
   label centered independently of the icon. */
.side-section.actions { margin-top: 43px; }

.side-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 141px;
  height: 36px;
  margin-bottom: 10px;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #20558a;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.side-btn:hover { background: #1a4773; }

/* icon is absolutely placed so the label stays optically centered */
.side-btn__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  background: none;
  border: 0;
  clip-path: none;
}

/* —— double quotation mark —— */
.side-btn__icon.quote {
  width: 14px;
  height: 11px;
  font-size: 0;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath fill='%23fff' d='M0 11V6.4C0 2.9 1.6.6 4.6 0l.7 1.8C3.6 2.5 2.9 3.5 2.8 4.6H5.3V11H0zm8.7 0V6.4C8.7 2.9 10.3.6 13.3 0l.7 1.8c-1.7.7-2.4 1.7-2.5 2.8H14V11H8.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 11px;
}

/* —— bookmark outline (open bottom notch) —— */
.side-btn__icon.bookmark {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' d='M2.2 1.1h11.6v13.2l-5.8-3.6-5.8 3.6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

/* —— share: three solid nodes joined by lines —— */
.side-btn__icon.share {
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cg fill='%23fff'%3E%3Cpath d='M4.4 5.2 9.4 2.6l.7 1.3-5 2.6zM4.4 8.8l5 2.6.7-1.3-5-2.6z'/%3E%3Ccircle cx='2.9' cy='7' r='2.4'/%3E%3Ccircle cx='11' cy='2.9' r='2.4'/%3E%3Ccircle cx='11' cy='11.1' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.side-btn__label { position: relative; z-index: 1; }

/* icon pinned to the true left edge, label centered in the whole button */
.side-btn .side-btn__icon { position: absolute !important; left: 12px !important; right: auto !important; margin: 0 !important; }
.side-btn { display: block !important; text-align: center; line-height: 36px; }
.side-btn__label { display: inline-block; }
/* keep the label centered but never let it collide with the left icon */
.side-btn__label { letter-spacing: 0.15px; padding: 0 18px; }
.side-btn { font-size: 15.4px; }
/* bookmark icon in the reference is 12x15, sitting at x1264 */
.side-btn .side-btn__icon.bookmark {
  left: 15px !important;
  width: 12px !important;
  height: 15px !important;
  background-size: 12px 15px !important;
}
/* its label starts 9px after the icon */
.side-btn:has(.bookmark) .side-btn__label { padding-left: 26px; padding-right: 10px; }
