/* The lists share the section surface. Their different lengths read as two indexes. */
body #main .split-list[data-reference-pair] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 2.6vw, 40px);
  padding: 0;
  border: 0;
  background: transparent !important;
}

body #main .page-section .split-list[data-reference-pair] > [data-reference-column] {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-block-start: 2px solid #34627f !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body #main .page-section [data-reference-column] > [data-reference-title] {
  margin: 0 !important;
  padding: 18px 0 14px;
  color: #18354b !important;
  font-size: clamp(19px, 1.6vw, 23px) !important;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -.022em;
  scroll-margin-block-start: 120px;
}

body #main .page-section [data-reference-column] [data-reference-list] {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  list-style: none;
}

body #main .page-section [data-reference-column] [data-reference-entry] {
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-top: 1px solid #d6e1e7;
}

body #main .page-section [data-reference-column] [data-reference-entry] > a {
  display: flex !important;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 36px 12px 0;
  border: 0 !important;
  border-radius: 0;
  color: #194969 !important;
  text-decoration: none;
  font-size: clamp(16px, 1.15vw, 17px);
  font-weight: 600;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

body #main .page-section [data-reference-column] [data-reference-entry] > a > span {
  /* Keep the publisher's complete action and destination label available to readers. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body #main .page-section [data-reference-column] [data-reference-entry] > a::after {
  content: "→" / "";
  position: absolute;
  inset-inline-end: 3px;
  color: #236587;
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

body #main .page-section [data-reference-column] [data-reference-entry] > a[target="_blank"]::after {
  content: "↗" / "";
}

/* Some article sections also contain preceding editorial content.
   Only the marked heading, following notes and bibliographic lists are styled. */
body.yas-reading [data-reference-title="article"] {
  margin-block: 0 12px !important;
  font-size: clamp(20px, 2vw, 25px) !important;
  line-height: 1.25 !important;
  letter-spacing: -.02em;
}

body.yas-reading p[data-reference-note] {
  margin-block: 10px !important;
  max-width: 76ch;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

body.yas-reading [data-reference-list="article"] {
  display: grid !important;
  gap: 0 28px !important;
  grid-template-columns: minmax(0, 1fr);
  margin: 12px 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100% !important;
}

body.yas-reading [data-reference-list="article"] > [data-reference-entry] {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border-block-start: 1px solid #41627e;
  font-size: 15px !important;
  line-height: 1.54 !important;
}

body.yas-reading ul[data-reference-list="article"] { list-style: none !important; }
body.yas-reading ol[data-reference-list="article"] > [data-reference-entry] {
  margin-inline-start: 1.7em !important;
  list-style: decimal outside !important;
}
body.yas-reading ol[data-reference-list="article"] > li::marker {
  color: #a9c7db;
  font-variant-numeric: tabular-nums;
}

body.yas-reading [data-reference-list="article"] > [data-reference-entry="link"] > a,
.directory-sources [data-reference-list="directory"] > [data-reference-entry="link"] > a {
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding-block: 8px;
  font-size: inherit !important;
  line-height: 1.46 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

body.yas-reading [data-reference-list="article"] > [data-reference-entry="note"] {
  padding-block: 10px !important;
}

body.yas-reading [data-reference-list] > [data-reference-entry="note"] a {
  font-size: inherit !important;
  overflow-wrap: anywhere;
}

body.yas-reading [data-reference-list] > [data-reference-entry="note"] p {
  margin-block: 5px !important;
  font-size: inherit !important;
}

[data-reference-list] a:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px;
}

@media (hover: hover) {
  body #main .page-section [data-reference-column] [data-reference-entry] > a:hover {
    color: #006698 !important;
    text-decoration: underline;
    text-underline-offset: .18em;
  }
}

@media (min-width: 780px) {
  /* Auto-fit uses the actual reading column, including pages with a contents rail. */
  body.yas-reading [data-reference-list="article"]:not([data-reference-annotated]) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  }
}

@media (max-width: 740px) {
  body #main .split-list[data-reference-pair] {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

