/* Small compatibility additions for the server-rendered version. */
[hidden] { display: none !important; }
svg { flex-shrink: 0; vertical-align: middle; }
.mobile-nav[hidden] { display: none !important; }
.auth-link { white-space: nowrap; }
.article-body .article-action .button { text-decoration: none; }
.footer-service-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.pagination { flex-wrap: wrap; }
.empty-state .button { margin-top: 20px; }
.article-toc > .eyebrow { margin-bottom: 9px; }
.auth-shell { max-width: 800px; }
.auth-shell > p { margin: 22px 0; font-size: 14px; }
.auth-shell > p a { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
.backend-form {
  display: grid;
  gap: 20px;
  margin: 24px 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.backend-form h2 { font-size: 30px; }
.backend-form label:not(.checkbox-label),
.editor-sidebar > label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.backend-form input:not([type="checkbox"]):not([type="radio"]),
.backend-form select,
.backend-form textarea,
.editor-sidebar select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #baafaa;
  border-radius: 6px;
  padding: 11px 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.backend-form input:hover, .backend-form select:hover, .backend-form textarea:hover { border-color: #866a78; }
.backend-form small { color: var(--muted); font-size: 12px; line-height: 1.7; }
.backend-form .button { justify-self: start; }
.backend-form textarea { line-height: 1.75; }
.backend-form .form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.backend-form .form-row > label { flex: 1; min-width: min(220px, 100%); }
.backend-message { display: block; color: var(--plum); font-size: 14px; line-height: 1.8; }
.backend-message:empty { display: none; }
.backend-message.error { color: #963b54; }
.backend-form .checkbox-label { display: flex; align-items: center; gap: 10px; }
.checkbox-label input { width: 20px; height: 20px; accent-color: var(--plum); }
.button.danger { color: #963b54; border-color: #ba8794; }
.forum-topic h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin: 10px 0 14px; }
.forum-topic h2 a:hover { color: var(--plum); }
.forum-message { margin: 20px 0; overflow-wrap: anywhere; }
.forum-reply { padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; margin: 20px 0; }
.forum-reply .muted, .forum-topic .muted { font-size: 13px; }
.forum-signin { padding: 30px; background: var(--sage); border-radius: 11px; }
.forum-signin h2 { font-size: 30px; margin-bottom: 16px; }
.forum-signin p { font-size: 14px; color: #5c6753; margin: 0 0 22px; }
.forum-signin > a:not(.button) { display: inline-block; margin: 15px 0 0 12px; font-size: 14px; text-decoration: underline; }
.forum-layout aside > .backend-form { margin-top: 0; }
.forum-shell > .backend-form { max-width: 780px; margin-top: 35px; }
.back-link { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.editor-sidebar { align-self: start; padding: 23px; background: var(--sage); border-radius: 10px; }
.editor-sidebar > .button { margin-top: 20px; }
.editor-main { min-width: 0; }
.editor-main > .backend-form { margin-top: 0; }
.editor-section, .editor-source { display: grid; gap: 17px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 18px; }
#pp-image-preview img { max-width: 100%; max-height: 250px; border-radius: 8px; }
.admin-users { margin-top: 45px; padding-top: 32px; border-top: 1px solid var(--line); }
.admin-users > h2 { font-size: 32px; margin-bottom: 16px; }
.admin-users > p { color: var(--muted); font-size: 14px; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.table-wrap th, .table-wrap td { padding: 13px 15px; border-bottom: 1px solid var(--line); }
.table-wrap th { color: var(--plum); font-weight: 600; }
@media (max-width: 600px) {
  .footer-service-links { gap: 13px 20px; }
  .backend-form { padding: 22px; }
  .backend-form .button { width: 100%; }
  .backend-form .form-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .backend-form .form-row > label { min-width: 0; }
  .editor-section, .editor-source { padding: 18px; }
  .forum-reply { padding: 22px; }
  .forum-signin { padding: 24px; }
}
