/* ==========================================================================
   IMR Press article page — supplements and screenshot-accurate overrides
   ========================================================================== */

html, body { background: #fff; }

/* ---------- left sidebar: information tab ---------- */
.article-tab-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 14px;
  text-align: center;
}
.article-tab-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #434343;
  cursor: pointer;
}
.article-tab-item .svg-icon { width: 19px; height: 19px; }
.article-tab-item p { margin: 0; font-size: 12px; }
.article-tab-list { border-bottom: 2px solid #114083; }

/* sidebar headings */
.side-bar .title {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #272727;
  margin: 22px 0 12px;
}

/* download row */
.file-item { display: flex; align-items: center; gap: 8px; }
.file-item .svg-icon { width: 17px; height: 17px; }
.file-name { font-size: 14px; color: #434343; }

/* double rule under the sidebar sections */
.base-divider-double-line {
  height: 5px;
  border-top: 1px solid #434343;
  border-bottom: 1px solid #434343;
  margin: 10px 0 0;
}

/* ---------- article metrics ---------- */
.article-metrics-fallback .title { margin-top: 24px; }
.metrics-grid {
  display: flex;
  border-bottom: 0;
  padding-bottom: 12px;
}
.metrics-cell {
  flex: 1;
  text-align: center;
  position: relative;
}
.metrics-cell + .metrics-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: #d6d6d6;
}
.metrics-value {
  display: block;
  font-size: 15px;
  color: #272727;
  line-height: 20px;
}
.metrics-label {
  display: block;
  font-size: 13px;
  color: #434343;
  margin-top: 3px;
}
.metrics-divider {
  height: 5px;
  border-top: 1px solid #434343;
  border-bottom: 1px solid #434343;
  margin-top: 12px;
}

/* ---------- floating share card ---------- */
.floating-share-card {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  padding: 8px 0 6px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
  z-index: 58;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.fs-item {
  border: 0;
  background: none;
  padding: 6px 0 4px;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.fs-item:hover { background: #f7f7f7; }
.fs-icon { display: block; width: 22px; height: 22px; }
.fs-cite {
  background: no-repeat center/18px 14px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOCAxNCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2Utd2lkdGg9IjEuNCIgZD0iTTEuNSAzaDV2NWgtNXptMTAgMGg1djVoLTV6Ii8+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2Utd2lkdGg9IjEuNCIgZD0iTTYuNSAzaDV2NWgtNXoiLz48L3N2Zz4=");
}
.fs-download {
  background: no-repeat center/20px 20px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2Utd2lkdGg9IjEuMyIgZD0iTTEwIDN2MTBNNiAxMGw0IDQgNC00TTMuNSAxN2gxMyIvPjwvc3ZnPg==");
}
.fs-share {
  background: no-repeat center/19px 19px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDM0MzQzIiBzdHJva2Utd2lkdGg9IjEuMyIgZD0iTTQgNmgxMnYxMUg0ek0xMCAxVjEwTTEwIDFsMy4yIDMuMk0xMCAxTDYuOCA0LjIiLz48L3N2Zz4=");
}
.fs-label { font-size: 10px; color: #434343; line-height: 1; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  z-index: 50;
}
.cookie-banner__inner {
  width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 18px 0 20px;
}
.cookie-banner__text { margin: 0; font-size: 16px; line-height: 1.5; color: #272727; }
.cookie-banner__text a { color: #272727; font-weight: 600; }
.cookie-banner__text a:hover { text-decoration: underline; }
.cookie-banner__accept {
  flex: 0 0 auto;
  width: 116px;
  height: 38px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #114083;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
.cookie-banner__accept:hover { background: #0d336a; }

/* keep the small floating blue button bottom-left */
.page-widgets { z-index: 60; }

/* sidebar geometry: reference column is 332px wide starting at x=299 */
.side-layout { flex-basis: 332px !important; width: 332px !important; margin-right: 0 !important; }
.side-bar { width: 332px !important; }
.article-detail .main-layout { max-width: calc(100% - 332px) !important; flex: 1 1 auto !important; }

/* information tab vertical placement to match reference */
.article-tab-list { padding-top: 4px !important; padding-bottom: 0 !important; border-bottom: 2px solid #114083 !important; }
.article-tab-item .svg-icon { width: 20px; height: 20px; }
.article-tab-item p { font-size: 12px; line-height: 1; margin-top: 1px; }
.side-bar .title { margin-top: 0 !important; padding: 18px 0 8px; font-size: 17px; }

/* ---- sidebar refinements ---- */
.base-divider-double-line {
  height: 6px !important;
  border-top: 1px solid #434343 !important;
  border-bottom: 1px solid #434343 !important;
  background: #fff !important;
  margin: 10px 0 0 !important;
}
.side-bar .title { font-size: 17px !important; letter-spacing: 0; }
.select-file-card { padding-left: 0 !important; }
.file-item { padding-left: 0 !important; }
.metrics-value { font-size: 15px !important; }
.metrics-label { font-size: 12px !important; }

/* cookie banner: no hard border, soft gradient above (reference rows 820-859) */
.cookie-banner { border-top: 0 !important; box-shadow: none !important; }
.cookie-banner::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -40px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(226,226,226,0.95));
  pointer-events: none;
}
.cookie-banner__inner { padding: 18px 0 22px; }

/* arrow icons in article switch */
.article-switch .svg-icon { width: 18px; height: 18px; display: inline-block; }
.article-switch .svg-icon use { fill: none; }
.article-switch a { color: #272727 !important; font-size: 15px !important; }
.article-switch .issue-button { color: #114083 !important; font-weight: 700; }
.article-switch { border-color: #d6d6d6 !important; }
.article-switch { margin-top: 18px !important; }
.article-switch { margin-top: 14px !important; padding: 12px 0 !important; }
.article-switch a { padding: 0 !important; height: 22px; line-height: 22px; }
.article-switch { position: relative; top: 0px; margin-top: 12px !important; padding-top: 18px !important; padding-bottom: 8px !important; margin-bottom: 34px !important; }
/* switch top border drawn 2px higher, with compensating padding */
.article-switch { border-top: 1px solid #d6d6d6 !important; padding-top: 21px !important; padding-bottom: 7px !important; }
.article-switch::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px;
  border-top: 1px solid #d6d6d6;
}

/* journal notice box */
.main-layout .base-journal-theme-block,
.main-layout article.base-journal-theme-block {
  border: 1px solid #114083;
  border-radius: 2px;
  padding: 16px 16px 16px;
}
.main-layout .base-journal-theme-block .paragraph,
.main-layout .base-journal-theme-block p {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16.6px;
  line-height: 21px;
  color: #114083;
  font-style: italic;
}
.main-layout .base-journal-theme-block .paragraph em { font-style: italic; }

/* footer + content container width: reference is 1296px wide centered */
.journal-footer .base-max-width-layout,
footer.journal-footer .base-max-width-layout { width: 1296px !important; max-width: 1296px !important; }
.page-content.base-max-width-layout { width: 1296px !important; max-width: 1296px !important; }

/* header nav rhythm: reference starts 11px further left and is slightly wider */
.menu-publisher-list .nav-link { font-size: 18px !important; padding-right: 33px !important; }
.search-main { position: relative; }
.search-main > .menu-container {
  position: absolute !important;
  left: 485px;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0 !important;
}
.menu-publisher-list { margin-left: 0 !important; }


/* cookie banner typography + metrics per reference */
.cookie-banner__inner { width: 1296px !important; padding: 17px 0 22px !important; align-items: flex-start !important; }
.cookie-banner__text {
  margin-top: -9px !important;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 20px !important;
  color: #272727 !important;
}
.cookie-banner__text a { font-weight: 700 !important; }
.cookie-banner__accept {
  width: 100px !important;
  height: 40px !important;
  font-size: 15px !important;
  background: #114083 !important;
}

/* information tab underline width must match the 333px column */
.article-tab-list { width: 300px !important; }
.side-bar { width: 333px !important; }
.side-layout { flex-basis: 333px !important; width: 333px !important; margin-left: -2px !important; }
.article-tab-list { margin-left: 0 !important; }

/* use the reference-derived open-access glyph */
.svg-icon-oa, use[href="#icon-classic-oa"] { display: none !important; }
.meta-item.fa-item::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 24px;
  margin-right: 7px;
  vertical-align: -7px;
  background: url("../img/icon-oa.png") no-repeat center/16px 24px;
}

/* author line tracking to match reference width */
.article-detail .name-list, .article-detail .name-item-text { letter-spacing: 0.15px; }
.article-detail .name-list sup { margin-left: 2px; margin-right: 1px; }

/* bottom-left feedback tab: uses the reference bitmap for exact fidelity */
.feedback-tab {
  position: fixed;
  left: 14px;
  top: 820px;
  width: 36px;
  height: 136px;
  overflow: hidden;
  z-index: 58;
  pointer-events: none;
}
.feedback-tab img { display: block; width: 36px; height: 136px; }




/* sidebar divider geometry: reference is 291px wide, first at y=317 */
.base-divider-double-line.side-bar-line { width: 291px !important; margin-top: 0 !important; position: relative; top: 0; }
.base-divider-double-line.side-bar-line + * { clear: both; }
.side-bar .article-metrics-fallback { padding-top: 0 !important; margin-top: 10px !important; }
.metrics-divider { width: 291px !important; margin-top: 20px !important; }
.metrics-grid { width: 291px !important; }
.article-metrics-fallback .title { margin-bottom: 4px !important; }
.article-metrics-fallback { margin-top: -25px !important; }

/* PDF row sits 11px higher in the reference */


/* lift the download row to the reference position */


/* Download heading has extra bottom padding in the layout: tighten to reference */
.side-bar .download-list .title,
.side-bar section .title[class] { padding-bottom: 0 !important; margin-bottom: 6px !important; }
.side-bar .select-file-card { padding-top: 0 !important; margin-top: 0 !important; }
.side-bar .download-list .title { line-height: 1.1 !important; height: auto !important; }
.side-bar h3.title { padding-top: 0 !important; padding-bottom: 0 !important; }
.side-bar .download-list { padding-top: 13px !important; }

/* ============ PlumX metrics block ============ */
.plumx-rule {
  height: 0;
  border-top: 1px solid #b14ba0;
  margin: 10px 0 0;
  width: 291px;
}
.plumx-block {
  padding: 18px 0 16px;
  text-align: center;
}
.plumx-logo {
  display: inline-block;
  width: 47px;
  height: 41px;
}
.plumx-captures {
  padding: 12px 0 4px;
  width: 291px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}
.plumx-captures__title {
  font-size: 12px;
  color: #6d6d6d;
  margin-bottom: 6px;
}
.plumx-captures__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #434343;
}
.plumx-details {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #2a7bb0;
  text-decoration: none;
}
.plumx-details:hover { text-decoration: underline; }
/* metrics row now sits under the PlumX block */
.article-metrics-fallback .metrics-grid { margin-top: 14px; }

/* hard-fix: nothing inside the metrics block may shift left */
.article-metrics-fallback,
.article-metrics-fallback * { margin-left: 0 !important; }
.article-metrics-fallback .plumx-captures { padding-left: 0 !important; }
.article-metrics-fallback .plumx-block { width: 291px; }

/* the metric text nodes are being pulled left by a negative text-indent on the ancestors */
.article-metrics-fallback,
.article-metrics-fallback * { text-indent: 0 !important; }
.article-metrics-fallback .plumx-captures { padding-left: 2px !important; }
.article-metrics-fallback .plumx-captures__title,
.article-metrics-fallback .plumx-captures__row,
.article-metrics-fallback .plumx-details { display: block; position: static !important; }

/* Readers row: label left, value right (as in the reference) */
.article-metrics-fallback .plumx-captures__row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline;
  gap: 8px;
}

/* PlumX logo: reference renders it at 57x50 */
.plumx-logo { width: 57px !important; height: 50px !important; }

/* PlumX logo: match reference 57x50 and its vertical slot */
.plumx-logo { width: 57px !important; height: 50px !important; }
.plumx-block { padding: 18px 0 16px; }

/* the PlumX rules span the whole metrics area, not just the 291px sidebar */
.plumx-rule { width: 291px !important; }
/* logo sits at x=333, i.e. 34px in from the sidebar edge */
.plumx-block { width: 291px !important; text-align: left !important; padding-left: 33px !important; }
.plumx-captures { width: 291px !important; }
.article-metrics-fallback .metrics-grid { width: 291px !important; }

/* align the download section's bottom double rule at y=317/322 (ref) */
.side-bar .base-divider-double-line.side-bar-line { margin-top: 17px !important; }
/* Article Metrics heading at y=343 */
.side-bar .article-metrics-fallback { margin-top: 14px !important; padding-top: 0 !important; }
.side-bar .article-metrics-fallback .title { padding-top: 0 !important; }

/* vertical rhythm inside the PlumX block */
.plumx-block { padding-top: 40px !important; padding-bottom: 40px !important; }
.plumx-captures { padding-top: 13px !important; }
.article-metrics-fallback .metrics-grid { margin-top: 24px !important; }

/* PlumX rules use the brand colour #6e1a62, matching the real widget */
.plumx-rule { border-top-color: #6e1a62 !important; }
/* bottom double rule sits at y=682/687 in the reference (ours was 685/689) */
.article-metrics-fallback .metrics-divider { margin-top: 17px !important; }

/* second PlumX rule is the bright brand purple, and sits at y=500 */
.plumx-rule { border-top-color: #6e1a62 !important; }
.plumx-rule + .plumx-captures { border-top: 0; padding-top: 26px !important; margin-top: 0 !important; }
.plumx-block { padding-bottom: 27px !important; }

/* second PlumX rule (under the logo) is the bright brand purple */
.article-metrics-fallback .plumx-rule:nth-of-type(2) { border-top-color: #c43bf3 !important; }

/* the rule that comes after the logo block is the bright purple one */
.article-metrics-fallback .plumx-block + .plumx-rule { border-top-color: #c43bf3 !important; }
