.richtext-content {
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.preserve-whitespace {
  white-space: break-spaces;
  overflow-wrap: anywhere;
}

.mobile-menu-button {
  display: inline-flex;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  color: #263238;
  background: #fff;
}

.mobile-menu-button span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-navigation[hidden] {
  display: none;
}

.mobile-navigation {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.mobile-navigation-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(17, 24, 39, 0.42);
  cursor: default;
}

.mobile-navigation-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 50vw;
  max-width: 50vw;
  height: 100%;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
  box-shadow: -8px 0 30px rgba(17, 24, 39, 0.16);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.mobile-navigation.is-open .mobile-navigation-drawer {
  transform: translateX(0);
}

.mobile-navigation-close {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  color: #263238;
  background: #fff;
  font-size: 1.75rem;
  margin-right: -0.25rem;
  line-height: 1;
}

.mobile-navigation-link {
  display: block;
  border-bottom: 1px solid #f3f4f6;
  padding: 1rem 0;
  color: #374151;
  font-size: 1rem;
}

.mobile-navigation-link:hover,
.mobile-navigation-link:focus {
  color: #2e7d32;
}

body.mobile-navigation-open {
  overflow: hidden;
}

.richtext-content .text-align-left {
  display: block;
  text-align: left;
}

.richtext-content .text-align-center {
  display: block;
  text-align: center;
  white-space: normal;
}

.richtext-content .text-align-right {
  display: block;
  text-align: right;
  white-space: normal;
}

.richtext-content :is(p, h2, h3, h4):has(.text-indent) {
  text-indent: 2em;
}

.richtext-content .text-indent {
  display: inline;
  text-indent: 0;
}

.richtext-content > :first-child {
  margin-top: 0;
}

.richtext-content > :last-child {
  margin-bottom: 0;
}

.richtext-content p {
  margin: 0 0 1.25em;
  white-space: break-spaces;
}

.richtext-content h2,
.richtext-content h3,
.richtext-content h4 {
  color: #263238;
  font-weight: 700;
}

.richtext-content h2 {
  font-size: 1.75rem;
  line-height: 1.4;
  margin: 1.8em 0 0.75em;
}

.richtext-content h3 {
  font-size: 1.375rem;
  line-height: 1.45;
  margin: 1.6em 0 0.65em;
}

.richtext-content h4 {
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 1.4em 0 0.55em;
}

.richtext-content ul,
.richtext-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.75em;
}

.richtext-content ul {
  list-style: disc;
}

.richtext-content ol {
  list-style: decimal;
}

.richtext-content li {
  margin: 0.4em 0;
  padding-left: 0.2em;
}

.richtext-content blockquote {
  margin: 1.5em 0;
  border-left: 4px solid #66bb6a;
  padding: 0.25em 0 0.25em 1.25em;
  color: #4b5563;
}

.richtext-content a {
  color: #2e7d32;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.richtext-content strong {
  color: #263238;
  font-weight: 700;
}

.richtext-content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid #d1d5db;
}

.richtext-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
}

.richtext-content pre,
.prose pre {
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  border: 1px solid #dce8df;
  border-radius: 0;
  padding: 1rem 1.1rem;
  background: #f8fbf8;
  color: #263238;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre;
  tab-size: 4;
}

.richtext-content pre:first-child,
.prose pre:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}

.richtext-content pre:last-child,
.prose pre:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}

.content-table-wrapper {
  max-width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border: 1px solid #dce8df;
  border-radius: 0.5rem;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.content-table-wrapper table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
}

.content-table-wrapper th,
.content-table-wrapper td {
  border-bottom: 1px solid #e5eee7;
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

.content-table-wrapper th {
  background: #f1f8f2;
  color: #263238;
  font-weight: 600;
}

.content-table-wrapper tr:last-child th,
.content-table-wrapper tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .richtext-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .richtext-content h2 {
    font-size: 1.5rem;
  }

  .richtext-content h3 {
    font-size: 1.25rem;
  }
}
