.article-site-header,
.article-page,
.article-page article,
.article-heading,
.article-body,
.article-source,
.article-contact {
  min-width: 0;
  max-width: 100%;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

@supports (overflow: clip) {
  html,
  body,
  .article-page,
  .article-page article {
    overflow-x: clip;
  }
}

.article-site-header {
  position: relative;
}

.article-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 88px) 0 72px;
  overscroll-behavior-inline: none;
}

.article-page article {
  width: 100%;
}

.article-heading,
.article-body,
.article-source,
.article-contact {
  width: min(100%, 720px);
  margin-inline: auto;
}

.article-heading {
  margin-bottom: 34px;
}

.article-heading h1 {
  max-width: 100%;
  margin: 12px 0 18px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: #6d7a71;
  font-size: 15px;
  line-height: 1.6;
}

.article-lead {
  margin: 22px 0 0;
  color: #5f6e65;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.article-cover {
  display: block;
  width: min(100%, 820px) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(680px, 76vh);
  margin: 0 auto 42px;
  object-fit: contain;
  object-position: center;
}

.article-body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: #27312b;
  font-size: 18px;
  line-height: 1.88;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.article-body *,
.article-body *::before,
.article-body *::after {
  box-sizing: border-box;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > *,
.article-body :where(section, div, p, figure, picture, figcaption, blockquote, ul, ol, li, pre) {
  min-width: 0 !important;
  max-width: 100% !important;
}

.article-body p {
  margin: 0 0 1.15em;
}

.article-body :where(h1, h2, h3, h4, h5, h6) {
  max-width: 100%;
  margin: 1.8em 0 0.72em;
  color: #1f2923;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body h1 {
  font-size: 1.75em;
}

.article-body h2 {
  font-size: 1.5em;
}

.article-body h3 {
  font-size: 1.28em;
}

.article-body :where(h4, h5, h6) {
  font-size: 1.08em;
}

.article-body img,
.article-body video,
.article-body iframe,
.article-body svg,
.article-body canvas {
  display: block;
  inline-size: auto !important;
  width: auto !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  block-size: auto !important;
  height: auto !important;
  margin: 28px auto;
}

.article-body img {
  object-fit: contain;
  object-position: center;
}

.article-body video {
  width: 100% !important;
  background: #17221c;
}

.article-body iframe {
  width: 100% !important;
  min-height: min(62vw, 405px);
  border: 0;
  aspect-ratio: 16 / 9;
}

.article-body picture,
.article-body figure {
  display: block;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  margin: 30px auto;
}

.article-body picture,
.article-body picture > source,
.article-body figure,
.article-body figure > picture,
.article-body figure > img,
.article-image-gallery,
.article-image-gallery figure,
.article-image-gallery img {
  min-width: 0 !important;
  max-width: 100% !important;
}

.article-body picture > img,
.article-body figure > img,
.article-image-gallery img {
  margin-block: 0;
}

.article-body figcaption {
  margin-top: 10px;
  color: #6d7a71;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-image-gallery {
  display: grid;
  gap: 24px;
  width: 100%;
}

.article-image-gallery figure {
  margin: 0;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.article-body li {
  margin: 0.38em 0;
  padding-left: 0.18em;
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 0.1em 0 0.1em 1.15em;
  border-left: 3px solid #9bae83;
  color: #526158;
}

.article-body blockquote > :last-child {
  margin-bottom: 0;
}

.article-body a {
  color: #214d3a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 1.6em 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.article-body table {
  width: max-content;
  min-width: 100%;
  max-width: none !important;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9em;
  line-height: 1.55;
}

/* Older imported articles may not yet have the scroll wrapper. */
.article-body > table,
.article-body :not(.article-table-scroll) > table {
  display: block;
  max-width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body :where(th, td) {
  min-width: 7em;
  padding: 10px 12px;
  border: 1px solid rgba(31, 41, 35, 0.18);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.article-body th {
  background: rgba(49, 83, 63, 0.08);
  font-weight: 700;
}

.article-body pre {
  width: 100%;
  margin: 1.6em 0;
  padding: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  border: 1px solid rgba(31, 41, 35, 0.14);
  background: #f0ede5;
  font-size: 0.84em;
  line-height: 1.65;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.article-body :not(pre) > code {
  padding: 0.12em 0.35em;
  background: rgba(31, 41, 35, 0.08);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.article-body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid rgba(31, 41, 35, 0.16);
}

.article-source,
.article-contact {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 41, 35, 0.16);
}

.article-source p {
  color: #6d7a71;
  line-height: 1.7;
}

.article-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(31, 41, 35, 0.16);
  background: #fffaf1;
}

.article-contact a {
  color: #14392b;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 680px) {
  .article-site-header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .article-page {
    width: calc(100% - max(16px, env(safe-area-inset-left)) - max(16px, env(safe-area-inset-right)));
    margin-inline: auto;
    padding: 36px 0 calc(56px + env(safe-area-inset-bottom));
  }

  .article-heading {
    margin-bottom: 28px;
  }

  .article-heading h1 {
    margin-top: 10px;
    font-size: clamp(30px, 9.2vw, 38px);
    line-height: 1.2;
  }

  .article-lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.75;
  }

  .article-cover {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none;
    margin-bottom: 32px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.82;
  }

  .article-body img,
  .article-body video,
  .article-body iframe,
  .article-body picture,
  .article-body figure {
    max-inline-size: 100% !important;
    max-width: 100% !important;
    margin-block: 22px;
  }

  .article-image-gallery {
    gap: 18px;
  }

  .article-image-gallery figure,
  .article-image-gallery img,
  .article-body picture > img,
  .article-body figure > img {
    margin-block: 0;
  }

  .article-body :where(th, td) {
    min-width: 8em;
    padding: 9px 10px;
  }

  .article-source,
  .article-contact {
    margin-top: 38px;
  }

  .article-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@supports (-webkit-touch-callout: none) {
  .article-body {
    -webkit-hyphens: none;
  }

  .article-body :where(img, video) {
    -webkit-user-select: auto;
  }
}
