.guidelines-panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line, #dbe2ea);
  border-radius: .75rem;
  background: #fff;
}

.guidelines-panel .markdown > :first-child {
  margin-top: 0;
}

.guidelines-panel .markdown > :last-child {
  margin-bottom: 0;
}

.sidebar-secondary a[aria-current="page"] {
  margin-inline: -.625rem;
  padding-inline: .625rem;
  border-radius: .5rem;
  background: #edf2ff;
  color: var(--ink, #152033);
  font-weight: 600;
}

.sidebar-secondary a[aria-current="page"] .icon {
  color: var(--blue, #2463eb);
}

#forum-thread-composer,
#forum-reply-composer {
  max-width: 48rem;
  margin-block: 1.5rem;
}

#forum-thread-composer form,
#forum-reply-composer form {
  margin-block: 1rem;
}

#forum-thread-composer :is(input:not([type="checkbox"]), select, textarea),
#forum-reply-composer :is(input:not([type="checkbox"]), textarea),
[data-thread-review] input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-block-start: .4rem;
  padding: .65rem .75rem;
  border: 1px solid #9ca3af;
  border-radius: .45rem;
  background: canvas;
  color: canvastext;
  font: inherit;
}

#forum-thread-composer textarea,
#forum-reply-composer textarea {
  resize: vertical;
}

.comment-compose-actions > button.comment-reply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .375rem .75rem;
  border: 1px solid #d5e0f3;
  border-radius: .5rem;
  background: #f1f5fd;
  color: #234b92;
  cursor: pointer;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
}

.comment-compose-actions > button.comment-reply:hover {
  background: #e4edfb;
  border-color: #adc4e9;
}

.conversation-panel .reply-footer {
  column-gap: .875rem;
  row-gap: .25rem;
  padding-top: .125rem;
}

.conversation-panel .reply-footer :is(button.comment-reply, button.comment-like) {
  border: 0;
  padding: 0;
  background: transparent;
  color: #526783;
  font-weight: 650;
  cursor: pointer;
}

.conversation-panel .reply-footer button.comment-like[aria-pressed="true"] {
  color: #2058c5;
}

.conversation-panel .reply-footer :is(button.comment-reply, button.comment-like):hover:not(:disabled) {
  color: #2058c5;
  text-decoration: underline;
}

.conversation-panel .reply-footer button.comment-like:disabled {
  opacity: 1;
  cursor: default;
}

.comment-like-status:empty {
  display: none;
}

.comment-like-status {
  flex-basis: 100%;
  color: #9f2222;
}

.conversation-panel .comment-reply:focus-visible {
  outline: 2px solid #2463eb;
  outline-offset: 2px;
}

.conversation-panel #forum-reply-composer {
  max-width: none;
  margin-block: 1rem 1.25rem;
}

#forum-reply-composer:empty,
.editorial-comment .reply-footer:not(:has(button:not([hidden]))) {
  display: none;
}

.conversation-panel #forum-reply-composer.inline-comment-composer {
  margin-inline-start: clamp(.75rem, 4vw, 3.625rem);
  padding: clamp(.75rem, 2.5vw, 1.125rem);
  border: 1px solid #dbe5f3;
  border-radius: .75rem;
  background: #f8faff;
}

#forum-reply-composer .comment-compose-form {
  display: grid;
  gap: .875rem;
  margin: 0;
}

.comment-compose-form > label {
  color: #243956;
  font-weight: 600;
}

.comment-compose-form textarea {
  min-height: 7rem;
  border-radius: .625rem;
  font-weight: 400;
}

.comment-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem;
}

.comment-compose-actions > .button {
  margin: 0;
}

.comment-compose-form > [role="status"]:empty {
  display: none;
}

.forum-profile-form {
  display: grid;
  gap: .625rem;
}

.forum-profile-form > p {
  margin: 0;
}

.forum-profile-form > .button {
  justify-self: start;
}

.forum-profile-form > [role="status"]:empty {
  display: none;
}

.conversation-panel .editorial-comments-note {
  margin: .625rem 0 1rem;
  color: #526483;
  font-size: .8125rem;
}

.conversation-panel .reply.editorial-branch-reply {
  margin-inline-start: clamp(1rem, 5vw, 3.625rem);
}

.thread-review-card {
  margin-block: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid #dbe2ea;
  border-radius: .75rem;
}

.thread-review-card h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.thread-review-card pre {
  margin-block: .75rem 1.25rem;
  font: inherit;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

[data-thread-review] > p {
  margin: 0;
}

.thread-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: .75rem;
  margin-block-start: .875rem;
}

.thread-review-actions .button {
  min-height: 44px;
  margin: 0;
}

.thread-review-reject {
  border: 1px solid #dc9c9c;
  background: #fff;
  color: #9f2222;
}

.thread-review-reject:hover {
  background: #fff1f1;
  color: #831919;
}

.thread-owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-block-start: .5rem;
}

.thread-owner-delete {
  padding: .275rem .5rem;
  border: 1px solid transparent;
  border-radius: .375rem;
  background: transparent;
  color: #9f2222;
  cursor: pointer;
  font: inherit;
  font-size: .8125rem;
}

.thread-owner-delete:hover {
  background: #fff1f1;
  border-color: #dc9c9c;
}

