article .intro,
article section > p:not(:has(> .cta)) {
  max-width: 68ch;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
}

.article-nav {
  position: sticky;
  top: var(--site-header-height);
  z-index: 2;
  margin-block-start: 1.45rem;
  padding: .45rem .65rem;
  border: 1px solid #cbd7cc;
  border-top: 3px solid #bd7953;
  border-radius: .6rem;
  background: #f1f5f0;
}

.article-nav ul,
.article-share ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-nav li,
.article-share li { margin: 0; }
.article-nav a,
.article-share a,
.article-share button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .2rem .45rem;
  color: #244c3b;
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
}

.article-nav a:hover,
.article-share a:hover,
.article-share button:hover { background: #e1ebe2; }
.article-nav a:focus-visible,
.article-share :is(a,button,input):focus-visible { outline: 2px solid #244c3b; outline-offset: 2px; }
article section[id] { scroll-margin-top: 8.5rem; }
.article-share { margin-block: 1.1rem; }
.article-share h2 { margin: 0 0 .25rem; font-size: 1rem; }
.article-share a,
.article-share button { border: 1px solid #cbd7cc; border-radius: .45rem; background: #fff; }
.article-share button { cursor: pointer; }
.article-share [hidden] { display: none; }
.article-share input { width: min(100%, 36rem); font: inherit; }
.article-share output:not(:empty) { display: block; margin-block-start: .45rem; font-size: .9rem; }

@media(max-width: 35rem) {
  .article-nav { padding-inline: .3rem; }
  .article-nav ul { gap: .1rem .25rem; }
  .article-nav a { font-size: .83rem; }
}

.gallery .image-preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: .6rem;
  background: none;
  cursor: zoom-in;
}
.gallery .preview-popover {
  position: fixed;
  inset: 0;
  width: min(94vw, 58rem);
  max-height: 94dvh;
  margin: auto;
  padding: clamp(.65rem, 2vw, 1.25rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--paper);
  color: var(--ink);
}
.preview-popover::backdrop { background: rgb(0 0 0 / .68); }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-block-end: .45rem; }
.preview-bar h3 { margin: 0; }
.preview-close {
  min-height: 44px;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.gallery .preview-popover img {
  width: auto;
  height: auto;
  max-height: min(67dvh, max(8rem, 100dvh - 11rem));
  margin-inline: auto;
  background: transparent;
}
.preview-downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-block-start: .6rem; }
.preview-downloads a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .8rem;
  border-radius: .45rem;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.preview-downloads a:hover { color: #fff; text-decoration: underline; }
