.read-index {
  padding-block: clamp(2.4rem, 6vw, 5.4rem) clamp(3rem, 7vw, 6rem);
}
.read-index-header {
  margin-bottom: clamp(1.75rem, 4vw, 3.2rem);
}
.read-index-header .lead {
  margin-top: .75rem;
  max-width: 46rem;
}
.read-features {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: clamp(.85rem, 2.8vw, 1.6rem);
}
.read-feature {
  min-width: 0;
  overflow: hidden;
}
.read-feature-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.read-feature-link:hover h2,
.read-archive a:hover span:nth-child(2) {
  text-decoration: underline;
  text-underline-offset: .15em;
}
.read-feature-image {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 8%, white);
}
.read-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.read-feature:nth-child(2) .read-feature-image img {
  object-position: center 28%;
}
.read-feature-copy {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
  flex: 1;
}
.read-feature-copy time,
.read-meta,
.read-archive time,
.read-adjacent small {
  color: var(--muted, #52645c);
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
}
.read-feature-copy h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  margin: .45rem 0 .65rem;
  padding-inline-end: 1.6rem;
}
.read-feature-copy p {
  margin: 0;
  line-height: 1.5;
}
.read-feature-arrow {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(1rem, 3vw, 2rem);
  font-size: 1.2rem;
}
.read-archive {
  margin-top: clamp(2.5rem, 6vw, 4.8rem);
}
.read-archive h2 {
  margin-bottom: 1rem;
}
.read-archive ol,
.read-breadcrumb ol,
.read-document-related {
  list-style: none;
  margin: 0;
  padding: 0;
}
.read-archive li {
  border-top: 1px solid var(--line, #dce5de);
}
.read-archive li:last-child {
  border-bottom: 1px solid var(--line, #dce5de);
}
.read-archive a {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 1.5rem;
  align-items: baseline;
  padding: .92rem .2rem;
  gap: .75rem;
  color: inherit;
  text-decoration: none;
}
.read-archive a span:nth-child(2) {
  font-weight: 650;
}
.read-archive-arrow {
  justify-self: end;
}
.read-page {
  padding-block: clamp(1.45rem, 4vw, 3.1rem) clamp(3rem, 7vw, 6rem);
}
.read-breadcrumb,
.read-related,
.read-paper {
  max-width: 66rem;
  margin-inline: auto;
}
.read-breadcrumb {
  margin-inline: auto;
  margin-bottom: clamp(.8rem, 2.5vw, 1.7rem);
  font-size: .875rem;
}
.read-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .55rem;
}
.read-breadcrumb li:not(:first-child)::before {
  content: "/";
  margin-right: .55rem;
  opacity: .5;
}
.read-paper {
  padding: clamp(1.2rem, 6vw, 5rem);
}
.read-paper > header,
.read-prose,
.read-toc,
.read-document-related {
  max-width: 43rem;
  margin-inline: auto;
  width: 100%;
}
.read-paper h1 {
  font-size: clamp(2.15rem, 5.65vw, 4.55rem);
  max-width: none;
}
.read-paper .read-meta {
  margin: 0 0 .75rem;
}
.read-paper .read-meta span[aria-hidden] {
  margin-inline: .25rem;
}
.read-document .read-meta {
  margin: .85rem 0 0;
}
.read-cover {
  max-width: 51rem;
  margin: clamp(1.2rem, 3vw, 2.1rem) auto 0;
}
.read-cover img {
  display: block;
  margin-inline: auto;
  width: auto;
  max-width: 100%;
  max-height: 32rem;
  height: auto;
  object-fit: contain;
  border-radius: .75rem;
}
.read-prose {
  margin-top: clamp(1.25rem, 4vw, 2.6rem);
  overflow-wrap: anywhere;
}
.read-prose h2,
.read-prose h3 {
  overflow-wrap: normal;
  scroll-margin-block-start: 7rem;
}
.read-prose h2 {
  margin: 2.1rem 0 .7rem;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
}
.read-prose h3 {
  margin: 1.6rem 0 .55rem;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
}
.read-prose p,
.read-prose ul,
.read-prose ol {
  line-height: 1.7;
  margin-block: 0 1.05rem;
}
.read-prose li + li {
  margin-top: .28rem;
}
.read-prose .read-intro {
  margin-bottom: 1.05rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 550;
}
.read-prose img {
  max-width: 100%;
  height: auto;
}
.read-prose blockquote {
  border-inline-start: .2rem solid var(--line, #dce5de);
  margin: 1.4rem 0;
  padding: .4rem 0 .4rem 1rem;
}
.read-prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  text-align: left;
  margin-block: 1.2rem 1.6rem;
}
.read-prose th,
.read-prose td {
  border-bottom: 1px solid var(--line, #dce5de);
  padding: .6rem;
  vertical-align: top;
}
.read-related {
  margin-top: 1rem;
}
.read-adjacent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.read-adjacent a {
  display: grid;
  gap: .15rem;
  padding: 1rem;
  border: 1px solid var(--line, #dce5de);
  border-radius: .75rem;
  background: var(--surface, #fff);
  color: inherit;
  text-decoration: none;
}
.read-adjacent a:hover strong {
  text-decoration: underline;
}
.read-language {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 0 0 clamp(1.15rem, 3vw, 2rem);
}
.read-language a {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #dce5de);
  border-radius: 999px;
  padding: 0 .83rem;
  text-decoration: none;
  font-size: .86rem;
}
.read-language a[aria-current="page"] {
  font-weight: 700;
  color: white;
  background: var(--ink, #244031);
  border-color: var(--ink, #244031);
}
.read-toc {
  margin-top: clamp(1.5rem, 4vw, 2.1rem);
  border: 1px solid var(--line, #dce5de);
  border-radius: .8rem;
  padding: .9rem 1rem;
}
.read-toc summary {
  cursor: pointer;
  font-weight: 700;
}
.read-toc ol {
  columns: 2 15rem;
  column-gap: 2rem;
  margin: .75rem 0 0;
  padding-left: 1.2rem;
}
.read-toc li {
  break-inside: avoid;
  margin-bottom: .35rem;
  font-size: .92rem;
}
.read-document-related {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  border-top: 1px solid var(--line, #dce5de);
  margin-top: 2rem;
  padding-top: 1rem;
}
@media (max-width: 43rem) {
  .read-features {
    grid-template-columns: 1fr;
  }
  .read-archive a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .22rem .75rem;
  }
  .read-archive-date {
    grid-column: 1 / -1;
  }
  .read-prose table {
    display: block;
    overflow: auto;
  }
  .read-prose :is(td, th) {
    min-width: 7rem;
  }
}

/* The existing gallery controls stay inside the article at narrow widths. */
.read-prose .news-item-images-swiper {
  margin-block: 1.25rem 1.5rem;
}
.read-prose .news-item-images-swiper .royalswiper-grid,
.read-prose .news-item-images-swiper .royalswiper {
  width: 100%;
}
.read-prose .news-item-images-swiper .royalswiper {
  overflow: hidden;
}
.read-prose .news-item-images-swiper .swiper-slide,
.read-prose .news-item-images-swiper .royalswiper-slide-relativator {
  overflow: hidden;
  border-radius: .75rem;
  background: transparent !important;
}
.read-prose .news-item-images-swiper .swiper-button-custom {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  z-index: 20;
}
.read-prose .news-item-images-swiper .swiper-button-custom::after {
  content: none;
}
.read-prose .news-item-images-swiper .royalswiper .swiper-button-custom-left {
  left: .25rem;
}
.read-prose .news-item-images-swiper .royalswiper .swiper-button-custom-right {
  right: .25rem;
}
.read-prose .news-item-images-swiper .royalswiper-slide-fullscreen-button-wrapper {
  top: 12px;
  right: 12px;
}
.read-prose .news-item-images-swiper .royalswiper-slide-fullscreen-button-wrapper .button {
  display: inline-flex;
  width: 34px;
  min-width: 0;
  min-height: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
}
.read-prose .read-article-assets {
  margin-top: 2rem;
}
.read-prose .read-article-assets h2 {
  margin-bottom: .75rem;
}
.read-prose iframe,
.read-prose video {
  max-width: 100%;
}
