.articles-page {
  --article-ink: #173c30;
  --article-muted: #51675c;
  width: min(820px, calc(100% - 40px));
  padding-block: clamp(24px, 4vw, 42px) 48px;
  overflow-wrap: anywhere;
}
.articles-page > h1 {
  margin: 0 0 14px;
  color: var(--article-ink);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.3;
}
.articles-page h2, .articles-page h3 {
  color: var(--article-ink);
  font-family: inherit;
}
.articles-page h2 { margin: 0 0 10px; font-size: 1.1rem; }
.articles-page a:not(.button):hover { text-decoration: underline; text-underline-offset: 3px; }
.articles-page .button { min-height: 44px; margin: 0; padding: 7px 15px; font-size: .92rem; }
.article-toolbar, .article-pagination, .article-byline, .article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.article-toolbar {
  justify-content: space-between;
  margin-bottom: 22px;
  color: var(--article-muted);
  font-size: .94rem;
}
.article-toolbar > .button { margin-left: auto; }
.article-back, .article-toolbar > a:not(.button), .article-pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .9rem;
  color: #245740;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-list, .article-editorial, .article-text, .article-empty,
.articles-page .article-editor-form {
  background: #fff;
  border: 1px solid #d6e2d9;
  border-radius: 12px;
}
.article-row { padding: 17px 20px; }
.article-row + .article-row { border-top: 1px solid #e1e9e2; }
.article-row h3 { font-size: 1.1rem; line-height: 1.45; }
.article-excerpt { margin: 5px 0; font-size: .925rem; line-height: 1.65; color: #425a4c; }
.article-byline {
  gap: 4px 12px;
  color: var(--article-muted);
  font-size: .8125rem;
  line-height: 1.5;
}
.article-byline a { color: #255940; text-decoration: underline; text-underline-offset: 3px; }
.articles-page .article-empty { padding: 14px 18px; color: var(--article-muted); font-size: .92rem; }
.article-pagination { justify-content: flex-end; margin: 8px 0; font-size: .85rem; }
.article-editorial {
  margin-top: 18px;
  padding: 18px 20px;
  background: #edf3eb;
  border-left: 3px solid #789b7c;
}
.article-editorial h2 { margin: 6px 0 0; line-height: 1.45; }
.article-text {
  margin: 12px 0 18px;
  padding: clamp(16px, 3vw, 32px);
  font-size: 1rem;
  line-height: 1.9;
}
.article-text p + p { margin-top: 1em; }
.article-comments { border-top: 1px solid #d1ddd3; margin-top: 22px; padding-top: 18px; }
.article-comment { margin-top: 16px; padding: 14px 0 0; border-top: 1px solid #dae4dc; }
.article-comment > div { margin-top: 6px; font-size: .94rem; }
.article-comment, .article-comments { scroll-margin-top: 88px; }
.article-actions { margin-block: 8px; }
.article-delete { color: #54665b; font-size: .8125rem; }
.article-delete summary { width: fit-content; padding-block: 5px; cursor: pointer; }
.articles-page .article-delete form { margin: 4px 0; }
.articles-page .article-form { display: grid; gap: 14px; }
.articles-page .article-editor-form { margin-top: 6px; padding: clamp(16px,3vw,28px); }
.article-form label { display: grid; gap: 4px; min-width: 0; color: var(--article-ink); font-size: .9rem; font-weight: 650; }
.article-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.articles-page .article-form :is(input:not([type=hidden]),textarea,select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #baccc0;
  border-radius: 7px;
  color: #1b3126;
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}
.article-form textarea { resize: vertical; }
.article-editor-form textarea { min-height: 15rem; }
.articles-page .article-form [aria-invalid="true"] { border-color: #9a4a35; }
.article-errors { padding: 8px 12px; color: #7c3025; background: #fff1ec; border-radius: 6px; }
.article-errors ul { margin: 0; }
.article-hint { color: var(--article-muted); font-size: .85rem; }
.article-submit, .article-form > button { justify-self: end; }
@media (max-width: 600px) {
  .articles-page { width: calc(100% - 28px); padding-block: 20px 28px; }
  .articles-page > h1 { margin-bottom: 9px; }
  .article-toolbar { margin-bottom: 16px; gap: 6px 10px; }
  .article-toolbar p { flex: 1 1 12em; }
  .article-toolbar > .button { flex: none; }
  .article-row, .article-editorial, .article-text { padding: 14px; }
  .article-editor-form textarea { min-height: 13rem; }
  .article-comment, .article-comments { scroll-margin-top: 72px; }
}

.article-selection { margin: 20px 0; }
.article-selection-list { list-style: none; background: #fff; padding: 0; margin: 0; border: 1px solid #d6e2d9; border-radius: 10px; }
.article-selection-list li + li { border-top: 1px solid #e2eae4; }
.article-selection-link { display: grid; grid-template-columns: 7.2em minmax(0,1fr); align-items: baseline; gap: 12px; padding: 12px 16px; }
.article-selection-category { color: #4e6b5a; font-size: .8125rem; }
.article-selection-link strong { color: #234b38; font-size: .98rem; line-height: 1.5; }
.article-selection-more > summary { color: #365c46; font-size: .9rem; width: fit-content; padding-block: 10px; cursor: pointer; }
.article-source { margin: 18px 0; padding: 12px 14px; background: #ebf1ea; border-radius: 7px; color: #445d4d; font-size: .9rem; }
.article-source a { color: #245940; text-decoration: underline; text-underline-offset: 3px; }
.article-text p + section, .article-text section + section { margin-top: 1.3em; }
@media (max-width: 600px) {
  .article-selection-link { grid-template-columns: minmax(0,1fr); gap: 2px; padding: 10px 12px; }
}
