/*
 * The three pages a reader moves between -- the archive, an issue, a paper --
 * built from one set of parts: covers, paper cards and a side panel.
 *
 * Loaded by journal.html and by the issue and paper templates, and by nothing
 * else, so none of this touches the rest of the site. Colours follow the
 * site's own palette (#e96b56 on #545454) rather than introducing a second
 * one.
 */

:root {
  --ij-brand: #e96b56;
  --ij-brand-dark: #c84e3a;
  --ij-ink: #37332f;
  --ij-body: #545454;
  --ij-faint: #8a8580;
  --ij-line: #e7e3df;
  --ij-line-soft: #f1eeeb;
  --ij-panel: #fff;
  --ij-sunken: #faf8f7;
}

/* ------------------------------------------------------------ the layout */

.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

@media (max-width: 992px) {
  .issue-layout { grid-template-columns: 1fr; gap: 26px; }
}

/* --------------------------------------------------------- issue heading */

.issue-head {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ij-line);
}

@media (max-width: 575px) {
  .issue-head { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
}

.issue-head .issue-journal {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ij-brand);
  font-weight: 600;
}

.issue-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: var(--ij-ink);
  font-weight: 700;
}

@media (max-width: 575px) { .issue-head h2 { font-size: 23px; } }

.issue-head .issue-meta {
  margin: 6px 0 0;
  color: var(--ij-faint);
  font-size: 14px;
}

.issue-head .issue-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- the cover */

/* A printed journal seen face-on: 3:4, a spine down the left edge, and the
   volume and issue where they would be on the real thing. */
.issue-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4;
  padding: 14px 12px 12px;
  border-radius: 7px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--ij-brand) 0%, var(--ij-brand-dark) 100%);
  box-shadow: 0 1px 2px rgba(40, 30, 26, .1), 0 8px 20px rgba(40, 30, 26, .16);
  transition: box-shadow .2s ease, transform .2s ease;
}

.issue-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: rgba(255, 255, 255, .26);
}

a.issue-cover:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(40, 30, 26, .26);
}

.issue-cover .cover-journal {
  align-self: center;
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 700;
}

.issue-cover .cover-volume {
  margin-top: auto;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.issue-cover .cover-issue { font-size: 14px; opacity: .92; }

.issue-cover .cover-rule {
  margin: 12px auto 8px;
  width: 64%;
  height: 1px;
  background: rgba(255, 255, 255, .4);
}

.issue-cover .cover-date {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.issue-cover .cover-count { font-size: 11px; opacity: .85; margin-top: 1px; }

/* ------------------------------------------------------------- the papers */

.paper-card {
  border: 1px solid var(--ij-line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--ij-panel);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.paper-card:hover {
  border-color: #dcd6d1;
  box-shadow: 0 4px 14px rgba(40, 30, 26, .07);
}

.paper-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.38;
  color: var(--ij-ink);
  font-weight: 700;
}

.paper-card h3 a { color: inherit; }
.paper-card h3 a:hover { color: var(--ij-brand); text-decoration: none; }

.paper-card .authors {
  margin: 0 0 10px;
  color: var(--ij-body);
  font-size: 14px;
  line-height: 1.5;
}

.paper-card .paper-foot {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
  padding-top: 10px;
  border-top: 1px solid var(--ij-line-soft);
}

.paper-card .paper-foot .doi { color: var(--ij-faint); }
.paper-card .paper-foot .doi a { color: var(--ij-faint); }
.paper-card .paper-foot .doi a:hover { color: var(--ij-brand); }
.paper-card .paper-foot .muted { color: var(--ij-faint); }

.paper-card .paper-foot a,
.paper-card .paper-foot button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------------------- buttons */

.btn-issue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 24px;
  border: 1px solid var(--ij-brand);
  background: var(--ij-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-issue:hover { background: var(--ij-brand-dark); border-color: var(--ij-brand-dark); color: #fff; }
.btn-issue:disabled { opacity: .5; cursor: not-allowed; }

.btn-issue--ghost { background: transparent; color: var(--ij-brand); }
.btn-issue--ghost:hover { background: var(--ij-brand); color: #fff; }

.btn-plain {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ij-brand);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.btn-plain:hover { text-decoration: underline; }

/* ------------------------------------------------------- the side panel */

.issue-aside {
  border: 1px solid var(--ij-line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--ij-sunken);
  position: sticky;
  top: 90px;
}

@media (max-width: 992px) { .issue-aside { position: static; } }

.issue-aside h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ij-ink);
  padding-left: 10px;
  border-left: 3px solid var(--ij-brand);
  line-height: 1.3;
}

.issue-aside .suggest {
  padding: 11px 0;
  border-top: 1px solid var(--ij-line);
}

.issue-aside .suggest:first-of-type { border-top: 0; padding-top: 0; }

.issue-aside .suggest a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ij-ink);
  font-weight: 600;
}

.issue-aside .suggest a:hover { color: var(--ij-brand); text-decoration: none; }

.issue-aside .suggest .who {
  display: block;
  font-size: 12.5px;
  color: var(--ij-faint);
  margin-top: 3px;
  line-height: 1.4;
}

.issue-aside .suggest .where {
  display: block;
  font-size: 12.5px;
  color: var(--ij-brand);
  margin-top: 3px;
}

.issue-aside .aside-all {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ij-line);
  font-size: 13.5px;
}

/* ----------------------------------------------------- read as book */

html.book-open, html.book-open body { overflow: hidden; }

.bookdrawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  background: #1d1815;
}

.bookdrawer[hidden] { display: none; }

.bookdrawer__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #15110f;
  color: #fff;
  flex-wrap: wrap;
}

.bookdrawer__title { min-width: 0; margin-right: auto; }
.bookdrawer__title b { display: block; font-size: 15px; line-height: 1.3; }
.bookdrawer__title span { display: block; font-size: 12px; opacity: .72; }

.bookdrawer__nav { display: flex; align-items: center; gap: 10px; }
.bookdrawer__count { font-size: 13px; opacity: .85; min-width: 72px; text-align: center; }

.bookbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bookbtn .bi {
  display: block;
  line-height: 1;
}

.bookbtn:hover { background: rgba(255, 255, 255, .16); }
.bookbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bookbtn--close { font-size: 14px; }

.bookdrawer__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}

.bookdrawer__book { margin: 0 auto; }

.bookpage { background: #fff; overflow: hidden; }
.bookpage canvas { display: block; width: 100%; height: 100%; }

.bookdrawer__msg {
  position: absolute;
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
  max-width: 34ch;
  line-height: 1.5;
}

/* At phone width the cover is only ~128px tall, which is less than its six
   lines of content needed — the article count was being cut off. */
@media (max-width: 575px) {
  .issue-cover { padding: 10px 8px 9px; }
  .issue-cover .cover-journal { font-size: 8.5px; padding: 1px 6px; letter-spacing: .1em; }
  .issue-cover .cover-volume { font-size: 17px; }
  .issue-cover .cover-issue { font-size: 12px; }
  .issue-cover .cover-rule { margin: 7px auto 5px; }
  .issue-cover .cover-date { font-size: 9.5px; }
  .issue-cover .cover-count { font-size: 9.5px; }
}

/* ------------------------------------------- the tab against the edge */

/* Slides in from off-screen once the script has decided the reader can
   actually work, and slides back out while the book is open. */
.booktab {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 15px 9px 16px 11px;
  border: 0;
  border-radius: 11px 0 0 11px;
  background: var(--ij-brand);
  color: #fff;
  font: 600 13px/1 inherit;
  letter-spacing: .03em;
  box-shadow: -4px 6px 18px rgba(40, 30, 26, .26);
  cursor: pointer;
  transform: translate(100%, -50%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), padding .2s, background .2s;
}

.booktab.is-ready { transform: translate(0, -50%); }
.booktab:hover, .booktab:focus-visible { padding-right: 15px; background: var(--ij-brand-dark); }
.booktab span { writing-mode: vertical-rl; transform: rotate(180deg); }
.booktab .bi { font-size: 17px; line-height: 1; }
.booktab__arrow { animation: booknudge 2.4s ease-in-out infinite; }

@keyframes booknudge {
  0%, 70%, 100% { transform: translateX(0); }
  80% { transform: translateX(-4px); }
  90% { transform: translateX(0); }
}

html.book-open .booktab { transform: translate(100%, -50%); }

@media (prefers-reduced-motion: reduce) {
  .booktab { transition: none; }
  .booktab__arrow { animation: none; }
}

@media (max-width: 767px) {
  .booktab {
    top: auto;
    bottom: 76px;
    flex-direction: row;
    border-radius: 11px 0 0 11px;
    padding: 9px 12px 9px 14px;
    gap: 7px;
  }
  .booktab span { writing-mode: horizontal-tb; transform: none; }
  .booktab__arrow { display: none; }
}

/* ------------------------------------------------- jump to a paper */

.bookpicker { position: relative; }

.bookpicker__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 320px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.bookpicker__toggle:hover:not(:disabled) { background: rgba(255, 255, 255, .15); }
.bookpicker__toggle:disabled { opacity: .5; cursor: default; }
.bookpicker__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bookpicker__text { min-width: 0; }

.bookpicker__label {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.bookpicker__hint { display: block; font-size: 11px; opacity: .65; }
.bookpicker__chev { font-size: 11px; opacity: .7; margin-left: auto; }
.bookpicker__toggle[aria-expanded="true"] .bookpicker__chev { transform: rotate(180deg); }

.bookpicker__panel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 5;
  width: min(420px, 90vw);
  max-height: min(430px, 60vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ij-ink);
  border-radius: 9px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
  overflow: hidden;
}

.bookpicker__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ij-line);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ij-faint);
  font-weight: 600;
}

.bookpicker__list { margin: 0; padding: 4px; list-style: none; overflow-y: auto; }

.bookopt {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 11px;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  align-items: start;
}

.bookopt:hover { background: var(--ij-sunken); }
.bookopt:focus-visible { outline: 2px solid var(--ij-brand); outline-offset: -2px; }
.bookopt[aria-selected="true"] { background: #fdeeea; }

.bookopt__num {
  font-size: 12px;
  font-weight: 700;
  color: var(--ij-brand);
  padding-top: 1px;
}

.bookopt__body { min-width: 0; }

.bookopt__title {
  display: block;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 600;
  color: var(--ij-ink);
}

.bookopt__pages { display: block; font-size: 11.5px; color: var(--ij-faint); margin-top: 2px; }

/* How far through the issue you are. */
.bookprogress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .14);
}

.bookprogress i { display: block; height: 100%; width: 0; background: var(--ij-brand); transition: width .25s; }

.bookdrawer__bar { position: relative; }

/* ==========================================================================
 * The archive (/journal) and the paper landing page (/paper/<id>).
 *
 * These share the issue page's covers, cards and side panel, so the three
 * pages a reader moves between -- archive, issue, paper -- look like one
 * place rather than three.
 * ========================================================================== */

.archive-section { padding: 36px 0 60px; }

.archive-lead {
  max-width: 68ch;
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ij-body);
}

.archive-lead b { color: var(--ij-ink); }

/* ------------------------------------------------- the issue on the front */

.archive-current {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 24px;
  margin-bottom: 40px;
  border: 1px solid var(--ij-line);
  border-radius: 10px;
  background: var(--ij-sunken);
}

@media (max-width: 575px) {
  .archive-current { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 18px; }
}

.archive-current .eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ij-brand);
}

.archive-current h2 {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--ij-ink);
}

@media (max-width: 575px) { .archive-current h2 { font-size: 20px; } }

.archive-current .meta {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ij-faint);
}

.archive-current .contents {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ij-line);
}

.archive-current .contents li {
  padding: 9px 0;
  border-bottom: 1px solid var(--ij-line);
  font-size: 14px;
  line-height: 1.45;
}

.archive-current .contents a { color: var(--ij-ink); }
.archive-current .contents a:hover { color: var(--ij-brand); text-decoration: none; }

/* ---------------------------------------------------- the volumes below it */

/*
 * Volumes tile rather than stack. Sixteen volumes of two to four issues each
 * laid out one per row left four fifths of every row empty and ran the page
 * to eight thousand pixels; three to a row fits the same 43 covers in a
 * quarter of the height, and a volume is still one block you read at once.
 */
.archive-vols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 30px 32px;
  align-items: start;
}

@media (max-width: 420px) {
  .archive-vols { grid-template-columns: 1fr; gap: 26px; }
}

.archive-vol { min-width: 0; }

.archive-vol > h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ij-line);
  font-size: 16px;
  font-weight: 700;
  color: var(--ij-ink);
}

.archive-vol > h3 .years {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ij-faint);
  letter-spacing: .04em;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 12px;
}

.archive-item { display: block; min-width: 0; }
.archive-item:hover { text-decoration: none; }

/* At a quarter of a column the cover carries the volume and the issue; the
 * year and the paper count read better as the caption under it than as two
 * more lines of 9px type inside a box 80 pixels wide. */
.archive-grid .issue-cover { padding: 9px 6px 8px; border-radius: 5px; }
.archive-grid .issue-cover::before { width: 4px; }
.archive-grid .cover-journal { padding: 1px 6px; font-size: 8px; letter-spacing: .08em; }
.archive-grid .cover-volume { font-size: 14px; }
.archive-grid .cover-issue { font-size: 10px; }
.archive-grid .cover-rule { margin: 6px auto 4px; }
.archive-grid .cover-date { font-size: 8.5px; letter-spacing: .05em; }
.archive-grid .cover-count { display: none; }
.archive-grid .issue-cover.is-special .cover-volume { font-size: 9.5px; line-height: 1.25; }

.archive-item .name {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ij-ink);
}

.archive-item:hover .name { color: var(--ij-brand); }

.archive-item .sub {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ij-faint);
}

/* An issue still hosted on the old site opens away from here; saying so is
 * kinder than letting the reader discover it after the click. */
.archive-item .sub .bi { font-size: 10px; vertical-align: -1px; }

/* A special issue has no volume number, so its cover carries a longer name. */
.issue-cover.is-special .cover-volume { font-size: 15px; letter-spacing: .01em; }

/* ========================================================== the paper page */

.paper-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ij-faint);
}

.paper-top .tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(233, 107, 86, .1);
  color: var(--ij-brand-dark);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.paper-top a { color: var(--ij-body); font-weight: 600; }
.paper-top a:hover { color: var(--ij-brand); text-decoration: none; }

.paper-byline {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ij-ink);
}

.paper-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 0 18px;
  border-top: 1px solid var(--ij-line);
  border-bottom: 1px solid var(--ij-line);
  margin-bottom: 26px;
}

.paper-bar .doi-inline {
  margin-left: auto;
  font-size: 13px;
  color: var(--ij-faint);
  min-width: 0;
  overflow-wrap: anywhere;
}

.paper-bar .doi-inline a { color: var(--ij-faint); }
.paper-bar .doi-inline a:hover { color: var(--ij-brand); }

@media (max-width: 575px) { .paper-bar .doi-inline { margin-left: 0; width: 100%; } }

.paper-h {
  margin: 0 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--ij-brand);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ij-ink);
}

.paper-abstract {
  max-width: 72ch;
  margin-bottom: 28px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ij-body);
}

.paper-abstract p { margin: 0 0 14px; }
.paper-abstract p:last-child { margin-bottom: 0; }

.paper-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.paper-keys .keychip {
  padding: 5px 12px;
  border: 1px solid var(--ij-line);
  border-radius: 999px;
  background: var(--ij-sunken);
  font-size: 13px;
  color: var(--ij-body);
}

/* ------------------------------------------- the panel beside the paper */

.issue-aside .aside-issue {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ij-line);
}

.issue-aside .aside-issue .where-label {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ij-faint);
  margin-bottom: 4px;
}

.issue-aside .aside-issue a {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ij-ink);
}

.issue-aside .aside-issue a:hover { color: var(--ij-brand); text-decoration: none; }

.issue-aside .aside-issue .count {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ij-faint);
}

/* The cover in the side panel is a thumbnail, not the hero on the issue
 * page: at 74px the full type scale will not fit, so it drops the badge and
 * the paper count and keeps the part that identifies the issue. */
.issue-aside .aside-issue .issue-cover { padding: 10px 7px 9px; border-radius: 5px; }
.issue-aside .aside-issue .issue-cover::before { width: 4px; }
.issue-aside .aside-issue .cover-journal { display: none; }
.issue-aside .aside-issue .cover-volume { font-size: 16px; margin-top: auto; }
.issue-aside .aside-issue .cover-issue { font-size: 11px; }
.issue-aside .aside-issue .cover-rule { margin: 7px auto 5px; }
.issue-aside .aside-issue .cover-date { font-size: 9.5px; }
.issue-aside .aside-issue.is-special .cover-volume { font-size: 11px; }

/* The paper page leads with its own metadata, so it does not need the
 * 40px the shared portfolio section adds on top of the section padding. */
#portfolio-details .issue-layout .paper-top { margin-top: 0; }
.portfolio-details:has(.paper-top) { padding-top: 10px; }
