/* Published-article reading surfaces: the interactive reader and the crawler page. */
/* Layout: header uses the full width; the reading column is wide with the side rails tucked in. */
.art .article-header { padding: 28px 0 36px; }
.art .article-header__inner { max-width: none; padding-left: 0; }
.art .article-header h1 { max-width: none; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.06; margin: 8px 0 18px; }
.art .article-header .running-head { margin-bottom: 24px; }
.art .art-authors { font-size: 17px; line-height: 1.6; max-width: 1100px; }
.art .art-affs { max-width: 1100px; }
.art .article-layout { grid-template-columns: 96px minmax(0, 1fr) 250px; gap: clamp(20px, 3vw, 40px); padding: 36px 0 90px; }
.art .article-body { max-width: 900px; }
.art .article-tools { position: sticky; top: 100px; }
.art .art-figure { margin-left: -20px; margin-right: -20px; }
@media (max-width: 1000px) { .art .article-layout { grid-template-columns: minmax(0, 1fr) 240px; } .art .article-tools { position: static; grid-column: 1 / -1; flex-direction: row; } .art .art-figure { margin-left: 0; margin-right: 0; } }
@media (max-width: 850px) { .art .article-layout { grid-template-columns: 1fr; } .art .article-header h1 { font-size: 30px; } }
.art-static { padding: 40px 0 80px; max-width: 860px; }
.art-static h1 { font-size: clamp(30px, 4vw, 48px); margin: 10px 0 14px; }
.art-authors { font-size: 17px; margin: 0 0 6px; } .art-authors sup, .art-affs sup { color: var(--ballpoint); }
.art-affs { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.art-abstract { margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.art-tabs + .art-abstract { margin-top: 0; padding-top: 6px; border-top: 0; }
.art-abstract h2 { margin: 0 0 8px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.art-abstract p { font-size: 17px; margin: 0 0 8px; }
.art-section { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--ink); }
.art-section > h2 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 14px; }
.art-decl h3 { font: 600 15px/1.4 var(--text); margin: 14px 0 4px; } .art-decl p { margin: 0; color: var(--ink-soft); font-size: 15.5px; white-space: pre-line; }
.art-references { margin: 0; padding-left: 26px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.art-references li { margin-bottom: 8px; scroll-margin-top: 110px; } .art-references li:target { background: var(--ballpoint-soft); }
.art-references a { word-break: break-all; }
.ref-cite { color: var(--ballpoint); text-decoration: none; font-size: .85em; vertical-align: super; line-height: 0; }
/* Figures: a white plate that breaks out of the text column, label, title, expandable caption, actions */
.art-figure { margin: 40px -90px 44px -60px; scroll-margin-top: 110px; padding: 0; }
.art-figure__plate { position: relative; background: #fff; border: 1px solid var(--rule); box-shadow: var(--shadow-sheet); padding: 14px; }
.article-body .art-figure__plate img, .art-figure__plate img { display: block; width: 100%; height: auto; max-height: 78vh; aspect-ratio: auto; object-fit: contain; border: 0; cursor: zoom-in; }
.article-body .fig-card__img img, .article-body .art-supp-card img { aspect-ratio: auto; border: 0; }
.art-figure__link::after { content: '⤢'; position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(25, 28, 30, .75); color: #fff; font-size: 15px; opacity: 0; transition: opacity .2s; }
.art-figure__plate:hover .art-figure__link::after { opacity: 1; }
.art-figure__missing { padding: 40px; text-align: center; color: var(--muted); font-style: italic; }
.art-figure figcaption { margin: 12px 0 0; font: 400 14.5px/1.55 var(--text); color: var(--ink-soft); }
.art-figure__label { display: inline-block; margin-right: 10px; padding: 3px 8px; border: 1.5px solid var(--ballpoint); border-radius: 3px; color: var(--ballpoint); font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; vertical-align: 2px; }
.art-figure__title { color: var(--ink); font-weight: 600; margin-right: 6px; }
.art-figure__text { display: inline; }
.art-figure__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.art-figure__more { display: inline-block; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--ballpoint); font: 500 13px/1 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.art-figure__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.art-figure__btn { display: inline-block; padding: 6px 11px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--sheet); color: var(--ink-soft); font: 500 12.5px/1 var(--text); text-decoration: none; cursor: pointer; transition: .15s; }
.art-figure__btn:hover { border-color: var(--ballpoint); color: var(--ballpoint); }
/* article tabs */
.art-tabs { display: flex; gap: 4px; margin: 0 0 28px; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.art-tabs a { display: inline-block; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-soft); font: 500 14px/1 var(--text); text-decoration: none; }
.art-tabs a.is-active { color: var(--ink); border-bottom-color: var(--ballpoint); } .art-tabs a span { margin-left: 6px; color: var(--ballpoint); font: 500 11px/1 var(--mono); }
/* figures & data gallery */
.fig-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.fig-card { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow-sheet); text-decoration: none; color: var(--ink); overflow: hidden; }
.fig-card__img { display: grid; place-items: center; height: 220px; background: #fff; border-bottom: 1px solid var(--rule); padding: 10px; }
.fig-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fig-card__body { padding: 14px 16px 16px; } .fig-card__body .art-figure__label { margin-bottom: 8px; } .fig-card__body strong { display: block; font-weight: 600; font-size: 15px; margin: 6px 0 4px; } .fig-card__body p { margin: 0; color: var(--muted); font-size: 13px; }
.fig-gallery--tables .fig-card { padding: 16px; } .fig-gallery--tables .art-table { margin: 8px 0 0; } .fig-gallery--tables .art-table table { font-size: 12.5px; }
/* supplementary */
.art-supp-heading { margin: 22px 0 12px; font: 400 22px/1.2 var(--display); } .art-supp-heading span { margin-left: 8px; color: var(--ballpoint); font: 500 12px/1 var(--mono); }
.art-supp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.art-supp-card { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); overflow: hidden; scroll-margin-top: 110px; transition: transform .2s var(--ease), box-shadow .2s; }
.art-supp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sheet); }
.art-supp-card img { width: 100%; height: 110px; object-fit: cover; object-position: top; background: #fff; border-bottom: 1px solid var(--rule); }
.art-supp-card__label { padding: 8px 10px 0; color: var(--ballpoint); font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.art-supp-card__title { margin: 2px 10px 10px; font-size: 13px; line-height: 1.4; max-height: 2.8em; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-table { margin: 32px 0; scroll-margin-top: 110px; } .art-table__caption { margin-bottom: 8px; font-size: 15px; } .art-table__scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.4; min-width: 520px; }
.art-table th, .art-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.art-table th { background: var(--sheet); font-weight: 600; border-bottom: 1px solid var(--ink); }
.art-table tbody tr:nth-child(even) td { background: rgba(250, 247, 240, .5); }
.art-table__note { margin-top: 8px; font-size: 13px; color: var(--muted); }
.art-supp { margin: 0 0 10px; font-size: 15px; } .art-supp summary { cursor: pointer; padding: 10px 0; border-bottom: 1px solid var(--rule); } .art-supp--file { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; } .art-supp--file p { margin: 0; flex-basis: 100%; color: var(--muted); font-size: 14px; }
.art-notice { margin: 0 0 20px; padding: 12px 16px; border: 1.5px solid var(--stamp); color: var(--stamp); background: rgba(179, 48, 28, .05); font-size: 15px; }
.art-toc { position: sticky; top: 100px; } .art-toc ol { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.art-toc li a { display: block; padding: 7px 0 7px 10px; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; color: var(--ink-soft); font-size: 13.5px; text-decoration: none; }
.art-toc li a:hover, .art-toc li a.is-active { color: var(--ink); border-left-color: var(--ballpoint); }
.art-toc li.sub a { padding-left: 20px; font-size: 13px; }
.art-metrics { display: flex; gap: 18px; margin-top: 12px; } .art-metrics b { display: block; font: 400 24px/1 var(--display); } .art-metrics span { font: 500 10px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.art-figstrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; } .art-figstrip a { flex: 0 0 74px; } .art-figstrip img { width: 74px; height: 56px; object-fit: cover; border: 1px solid var(--rule); background: #fff; }
/* Figure viewer: zoom, pan, filmstrip, caption panel */
.viewer { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: #101213; color: var(--paper); }
.viewer__bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.viewer__bar .art-figure__label { color: var(--paper); border-color: rgba(239,233,220,.6); }
.viewer__bar strong { font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__bar .count { color: rgba(239,233,220,.6); font: 400 12px/1 var(--mono); }
.viewer__btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid rgba(239,233,220,.35); border-radius: 18px; background: transparent; color: var(--paper); font: 500 13px/1 var(--text); text-decoration: none; cursor: pointer; }
.viewer__btn:hover { border-color: var(--paper); }
.viewer__main { position: relative; display: grid; grid-template-columns: 1fr 320px; min-height: 0; }
.viewer__stage { position: relative; overflow: hidden; cursor: grab; touch-action: none; user-select: none; background: radial-gradient(1200px 600px at 50% 40%, #1c1f21, #101213); }
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.6); will-change: transform; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(239,233,220,.45); background: rgba(16,18,19,.6); color: var(--paper); font-size: 22px; cursor: pointer; }
.viewer__nav.prev { left: 14px; } .viewer__nav.next { right: 14px; }
.viewer__zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(16,18,19,.75); border: 1px solid rgba(239,233,220,.2); }
.viewer__zoom .viewer__btn { height: 32px; min-width: 32px; }
.viewer__panel { padding: 18px 20px; overflow: auto; border-left: 1px solid rgba(255,255,255,.1); font-size: 14.5px; line-height: 1.55; color: rgba(239,233,220,.85); }
.viewer__panel h3 { margin: 6px 0 10px; font: 400 22px/1.2 var(--display); color: var(--paper); }
.viewer__panel .art-figure__label { color: var(--paper); border-color: rgba(239,233,220,.6); }
.viewer__panel .actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.viewer__panel .art-figure__btn { background: transparent; border-color: rgba(239,233,220,.35); color: var(--paper); }
.viewer__strip { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.1); }
.viewer__strip button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; overflow: hidden; }
.viewer__strip button img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.viewer__strip button.is-active { border-color: var(--ballpoint); }
.viewer__strip .table-chip { display: grid; place-items: center; background: #1c1f21; color: var(--paper); font: 500 10px/1.2 var(--mono); text-align: center; padding: 4px; }
@media (max-width: 1000px) { .viewer__main { grid-template-columns: 1fr; } .viewer__panel { max-height: 30vh; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); } .art-figure { margin-left: 0; margin-right: 0; } }
.cite-modal pre { white-space: pre-wrap; font: 13px/1.5 var(--text); background: var(--paper); padding: 12px; border: 1px solid var(--rule); }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.subject-grid a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow-sheet); color: var(--ink); text-decoration: none; font: 400 20px/1.2 var(--display); }
.subject-grid a span { font: 500 12px/1 var(--mono); color: var(--ballpoint); }
.news-strip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--paper-deep); }
.news-strip .shell { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; padding: 12px 0; font-size: 14.5px; }
.news-strip .label { color: var(--stamp); } .news-strip a { color: var(--ink); }
.news-list article { padding: 22px 0; border-bottom: 1px solid var(--rule); } .news-list h3 { margin: 4px 0 6px; } .news-list p { color: var(--ink-soft); white-space: pre-line; margin: 0; }
@media (max-width: 1000px) { .art-toc { position: static; } .art-figure { margin-left: 0; margin-right: 0; } .art-figure__plate { padding: 8px; } }
@media print { .art-toc, .article-tools, .masthead, .notice, .footer, .art-figstrip { display: none !important; } }

/* Narrow viewports: a single reading column that can never be wider than the screen. */
.art .article-body, .art .article-layout > * { min-width: 0; }
.art-tabs { flex-wrap: wrap; }
.art .article-tools { flex-wrap: wrap; }
@media (max-width: 850px) { .art .article-layout { grid-template-columns: minmax(0, 1fr); } .art .article-tools { position: static; grid-column: auto; flex-direction: row; } .art .art-table-wrap, .art table { max-width: 100%; } .art .art-table-wrap { overflow-x: auto; } .art .art-figure { margin-left: 0; margin-right: 0; } .art .article-header h1 { font-size: 26px; } }
