/* Shared reading, discussion, and account page patterns. */
.page-content {
  max-width: 1440px !important;
  padding: 40px 32px 80px !important;
}
.page-content > article {
  max-width: 780px;
}
.page-content h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}
.page-content h2 {
  line-height: 1.25;
}
.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 32px;
  border-bottom: 1px solid #29303b;
}
.page-intro p {
  max-width: 620px;
  margin: 0;
}
.page-intro .button {
  white-space: nowrap;
}
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #c5cfdb;
  font-size: 13px;
}
.page-section {
  margin-top: 32px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 0;
  font-size: 21px;
}
.section-heading p {
  margin: 4px 0 0;
  font-size: 13px;
}
.section-heading > span {
  color: #aeb8c6;
  font-size: 12px;
  white-space: nowrap;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.board-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 110px;
  padding: 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}
.board-tile:hover,
.entry-row:hover,
.article-tile:hover {
  background: #19212d;
  border-color: #59616c;
}
.board-tile > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.tile-icon,
.entry-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 8px;
  background: #30271f;
  color: #f7b548;
  font-size: 20px;
}
.board-tile strong,
.board-tile small {
  display: block;
}
.board-tile strong {
  font-size: 14px;
  line-height: 1.35;
}
.board-tile small {
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.tile-arrow {
  color: #b2bdcc;
}
.entry-list {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
}
.page-content .entry-row {
  display: flex;
  gap: 13px;
  align-items: center;
  max-width: none;
  padding: 16px 18px;
  border-bottom: 1px solid #29303b;
}
.entry-row:last-child {
  border-bottom: 0;
}
.entry-row > div {
  flex: 1;
  min-width: 0;
}
.page-content .entry-row h3 {
  margin: 0;
  font-size: 15px;
}
.page-content .entry-row h3 a {
  color: #f3f2ef;
}
.page-content .entry-row p {
  margin: 4px 0 0;
  font-size: 12px;
}
.empty-state {
  padding: 28px 20px;
}
.empty-state p {
  margin: 5px 0 0;
}
.article-hero {
  min-height: 240px;
  display: flex;
  align-items: end;
  padding: 32px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background:
    linear-gradient(90deg, #101722 0%, #101722e8 45%, #10172255 100%),
    url('/images/articles-hero.webp') center/cover;
}
.article-hero h1 {
  max-width: 620px;
}
.article-hero p {
  margin: 0;
  color: #dce3ed;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.page-content .article-tile {
  position: relative;
  max-width: none;
  min-height: 220px;
  padding: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}
.article-tile time {
  color: #f7c573;
  font-size: 12px;
  font-weight: 700;
}
.article-tile h3 {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}
.page-content .article-tile h3 a {
  color: #f3f2ef;
}
.page-content .article-tile p {
  margin: 0;
  font-size: 14px;
}
.article-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.article-tags a,
.article-read {
  color: #f7c573;
  font-size: 12px;
  font-weight: 700;
}
.article-read {
  display: inline-flex;
  margin-top: 18px;
  min-height: 32px;
  align-items: center;
}
.page-content .card {
  background: var(--surface-card);
  border-color: #29303b;
  border-radius: 10px;
}
.page-content .card h2,
.page-content .card h3 {
  line-height: 1.3;
}
.page-content form label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
}
.page-content input:not([type='hidden']),
.page-content textarea,
.page-content select {
  padding: 12px;
  color: #eaf0fa;
  background: #0e1929;
  border: 1px solid #3b4b62;
  border-radius: 8px;
  font: inherit;
}
.page-content button.button {
  border: 0;
  cursor: pointer;
}
.page-content > article h2 {
  margin-top: 32px;
}
.page-content > article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.page-content > article a {
  color: #f7c573;
}
@media (max-width: 1100px) {
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .page-content {
    padding: 28px 16px 60px !important;
  }
  .page-intro {
    align-items: start;
    flex-direction: column;
    gap: 16px;
    padding-top: 4px;
  }
  .section-heading {
    align-items: start;
  }
  .board-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
  .board-tile {
    min-height: 0;
  }
  .article-hero {
    min-height: 220px;
    padding: 22px;
    background-position: 60% center;
  }
  .page-content .article-tile {
    min-height: 0;
  }
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  margin-top: 24px;
  max-width: 760px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}
.profile-card h2 {
  margin: 0;
  font-size: 20px;
}
.profile-card p {
  margin: 4px 0 0;
  font-size: 13px;
}
.search-page-form {
  max-width: 760px;
  padding: 20px;
  margin-top: 24px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
}
.page-content .search-page-form label {
  margin: 0 0 8px;
}
.search-page-form > div {
  display: flex;
  gap: 10px;
}
.search-page-form input {
  width: 100%;
  min-width: 0;
}
.guidelines-content h2 {
  padding-top: 22px;
  border-top: 1px solid #29303b;
}
.article-reading h1 {
  max-width: 760px;
}
.article-reading > p:first-of-type {
  font-size: 18px;
  color: #d3dce6;
}
.page-content .discussion-actions {
  margin-bottom: 16px;
}
.page-content #replies {
  margin-top: 32px;
}
.page-content #replies > h2 {
  font-size: 21px;
}
.page-content #replies .card {
  padding: 20px;
}
.page-content .card input:not([type='hidden']),
.page-content .card textarea,
.page-content .card select {
  width: 100%;
}
@media (max-width: 600px) {
  .search-page-form > div {
    flex-wrap: wrap;
  }
  .search-page-form .button {
    width: 100%;
  }
  .profile-card {
    padding: 18px;
  }
}
/* Discussion reading and response layout. */
.discussion-detail {
  max-width: 940px;
  margin: auto;
}
.discussion-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 38px;
  color: var(--text-secondary);
  font-size: 13px;
}
.discussion-breadcrumb a:hover {
  color: #f7c573;
}
.discussion-detail h1 {
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.15;
  margin: 12px 0 16px;
}
.discussion-author,
.reply-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #aebed3;
  font-size: 12px;
}
.discussion-author strong,
.reply-meta strong {
  color: #eaf0fa;
}
.author-avatar,
.reply-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3a2b20;
  color: #f7b548;
  font-size: 13px;
  font-weight: 800;
}
.discussion-post,
.reply-card {
  background: #111b2d;
  border: 1px solid #273349;
  border-radius: 12px;
}
.discussion-post {
  margin-top: 24px;
}
.discussion-post-content {
  padding: 24px;
}
.page-content .discussion-post-content p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.7;
  color: #d1dbe8;
}
.discussion-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}
.discussion-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px;
  border-top: 1px solid #273349;
  background: #162234;
  border-radius: 0 0 12px 12px;
}
.discussion-toolbar form,
.reply-content form {
  margin: 0;
}
.toolbar-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c1cddd;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.toolbar-action:hover {
  background: #25344b;
  color: #fff;
}
.toolbar-action[aria-pressed='true'] {
  color: #f7c573;
}
.toolbar-spacer {
  flex: 1;
}
.toolbar-reply {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #47341e;
  color: #ffbf55;
  font-size: 13px;
  font-weight: 800;
}
.share {
  position: relative;
}
.share summary::-webkit-details-marker {
  display: none;
}
.share-panel {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 100%;
  width: min(360px, 80vw);
  padding: 16px;
  border: 1px solid #3b4b62;
  border-radius: 10px;
  background: #121b2a;
  box-shadow: 0 12px 30px #05080e99;
}
.page-content .share-panel label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
}
.page-content .share-panel input {
  width: 100%;
  font-size: 13px;
}
.share-panel button {
  margin-top: 10px;
}
.share-panel [role='status'] {
  display: block;
  color: #d1dbe8;
  font-size: 12px;
}
.discussion-replies {
  margin-top: 32px;
}
.replies-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.replies-heading h2 {
  margin: 0;
  font-size: 20px;
}
.replies-heading > span {
  color: var(--text-secondary);
  font-size: 12px;
}
.page-content .reply-card {
  display: flex;
  gap: 16px;
  max-width: none;
  padding: 20px;
  margin: 0 0 12px;
}
.reply-avatar {
  width: 38px;
  height: 38px;
  background: #25344a;
  color: #e8eef6;
}
.reply-content {
  min-width: 0;
  flex: 1;
}
.page-content .reply-content p {
  white-space: pre-wrap;
  margin: 12px 0;
  color: #d1dbe8;
  font-size: 15px;
  line-height: 1.65;
}
.reply-content small {
  color: #aebed3;
}
.reply-empty {
  background: #111b2d;
  border: 1px solid #273349;
  border-radius: 12px;
}
.page-content .reply-form,
.page-content .report-form {
  max-width: none;
}
.reply-form label,
.report-form label {
  display: block;
  margin: 16px 0 8px;
}
.reply-form textarea,
.report-form select {
  display: block;
  width: 100%;
}
.reply-form button,
.report-form button {
  margin-top: 14px;
}
.report-form summary {
  cursor: pointer;
}
.discussion-signin a {
  color: #f7c573;
  font-weight: 700;
}
@media (max-width: 600px) {
  .discussion-post-content {
    padding: 18px;
  }
  .discussion-toolbar {
    padding: 8px;
  }
  .toolbar-action {
    padding-inline: 8px;
  }
  .page-content .reply-card {
    padding: 16px;
    gap: 12px;
  }
  .discussion-detail h1 {
    font-size: 30px;
  }
}
.page-content .search-result-excerpt {
  margin-top: 9px !important;
  color: #aebed3;
  font-size: 13px !important;
  line-height: 1.5;
}
.page-content .discussion-post {
  max-width: none;
}
/* Inline links have room for touch without changing their reading order. */
.article-tags a,
.article-reading p a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.page-content .article-tile h3 a {
  display: inline-block;
  padding-block: 3px;
}
.discussion-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
/* Keep long discussions readable without indenting beyond the available screen. */
.page-content .reply-card {
  margin-left: calc(var(--thread-depth, 0) * 28px);
  scroll-margin-top: 20px;
}
.reply-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.nested-reply {
  flex: 1 1 100%;
  min-width: 0;
}
.nested-reply summary::-webkit-details-marker {
  display: none;
}
.nested-reply-form {
  padding: 14px;
  background: #0e1725;
  border: 1px solid #35445a;
  border-radius: 8px;
}
.page-content .nested-reply-form label {
  margin: 0 0 8px;
}
.nested-reply-form textarea {
  display: block;
  width: 100%;
  min-height: 100px;
}
.nested-reply-form button {
  margin-top: 10px;
}
.parent-reply-link {
  color: #f7c573;
  font-size: 12px;
}
.reply-content .toolbar-action {
  min-height: 40px;
}
@media (max-width: 600px) {
  .page-content .reply-card {
    margin-left: calc(var(--thread-depth, 0) * 12px);
  }
}
/* Align comment controls on one row, with the expanded reply form below them. */
.reply-actions {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: 4px 10px;
}
.reply-actions > form {
  margin: 0;
}
.nested-reply {
  min-width: 0;
}
.nested-reply > summary {
  vertical-align: top;
}
.nested-reply-form {
  margin-top: 6px;
}
.reply-meta {
  min-height: 38px;
  align-content: center;
}
.reply-meta time {
  line-height: 1.4;
}
.parent-reply-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.reply-content .toolbar-action {
  min-height: 40px;
}
.reply-content .nested-reply-form button {
  min-height: 44px;
}
.reply-avatar {
  align-self: flex-start;
}
@media (max-width: 600px) {
  .page-content .reply-card {
    gap: 10px;
  }
  .reply-meta {
    gap: 4px 8px;
  }
  .reply-meta time {
    font-size: 11px;
  }
  .reply-actions {
    gap: 4px;
  }
  .nested-reply-form {
    padding: 12px;
  }
  .nested-reply-form textarea {
    min-width: 0;
  }
}
.reply-actions > form {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
}
.reply-actions > .nested-reply {
  grid-column: 1 / -1;
  grid-row: 1;
}
.nested-reply > summary {
  margin-left: 78px;
}
.reply-actions .reply-signin {
  justify-self: start;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #3b4b62;
  border-radius: 8px;
  color: #eaf0fa;
  font-size: 13px;
  line-height: 1.3;
}
.reply-actions .reply-signin:hover {
  background: #25344b;
  border-color: #66788f;
}
.reply-actions .reply-signin:focus-visible {
  outline: 2px solid var(--interactive-accent);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .reply-actions .reply-signin {
    padding-inline: 10px;
  }
}
/* Keep the closed share form out of layout and the accessibility tree. */
.share:not([open]) > .share-panel {
  display: none;
}
.toolbar-action,
.toolbar-reply,
.back-link,
.article-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.toolbar-action svg,
.toolbar-reply svg,
.back-link svg,
.article-read svg,
.tile-icon svg,
.entry-icon svg,
.tile-arrow svg {
  flex: none;
}
.guidelines-content .page-intro p {
  max-width: 660px;
}
.guidelines-content section {
  max-width: 760px;
}
.guidelines-content section h2 {
  margin: 30px 0 8px;
  font-size: 20px;
}
.guidelines-content section p {
  color: #c8d1de;
  line-height: 1.75;
}
.guidelines-lead,
.guidelines-next {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #76542a;
  border-radius: 12px;
  background: #2d251b;
}
.guidelines-lead > svg,
.guidelines-next > svg {
  flex: none;
  color: var(--accent);
}
.guidelines-lead p,
.guidelines-next p {
  margin: 5px 0 0;
  color: #e0d4c2;
  line-height: 1.6;
}
.guidelines-next a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #f7c573;
  font-weight: 700;
}
/* Guidelines use a responsive grid while keeping each paragraph readable. */
.page-content > article.guidelines-content {
  max-width: none;
}
.guidelines-lead,
.guidelines-next {
  max-width: none;
}
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.guidelines-content .guidelines-grid section {
  max-width: none;
  padding: 22px;
  background: #111b2b;
  border: 1px solid #29394d;
  border-radius: 12px;
}
.guidelines-content .guidelines-grid h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 18px;
}
.guidelines-content .guidelines-grid p {
  margin: 0;
  max-width: 65ch;
}
.guidelines-content .guidelines-grid section:last-child {
  grid-column: 1/-1;
}
@media (max-width: 760px) {
  .guidelines-grid {
    grid-template-columns: 1fr;
  }
  .guidelines-content .guidelines-grid section:last-child {
    grid-column: auto;
  }
  .guidelines-content .guidelines-grid section {
    padding: 18px;
  }
}
.forum-profile {
  max-width: 780px;
}
.forum-profile > p {
  color: var(--text-secondary);
  line-height: 1.6;
}
.forum-profile-form {
  display: grid;
  gap: 8px;
}
.forum-profile-form label:not(:first-child) {
  margin-top: 12px;
}
.forum-profile-form input,
.forum-profile-form textarea,
.forum-profile-form select {
  width: 100%;
}
.forum-profile-form small {
  color: #bdc9d9;
}
.forum-profile-form .button {
  justify-self: start;
  margin-top: 14px;
}
/* Profile: an editable form with activity and privacy alongside it. */
.profile-card {
  max-width: none;
  padding: 22px 24px;
  border: 1px solid #303e50;
  border-radius: 12px;
  background: #111923;
}
.profile-card h2 {
  margin: 0;
  font-size: 20px;
}
.profile-card p {
  margin: 4px 0 0;
  color: #bcc7d6;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 24px;
}
.profile-layout .page-section {
  margin: 0;
}
.profile-layout .forum-profile {
  max-width: none;
  padding: 24px;
  border: 1px solid #303e50;
  border-radius: 12px;
  background: #111923;
}
.profile-layout .forum-profile .section-heading {
  margin-bottom: 12px;
}
.profile-hint {
  font-size: 13px;
}
.profile-layout .forum-profile-form {
  padding: 0;
  border: 0;
  background: transparent;
}
.profile-layout .forum-profile-form textarea,
.profile-layout .forum-profile-form input,
.profile-layout .forum-profile-form select {
  min-width: 0;
}
.profile-side {
  display: grid;
  gap: 18px;
}
.profile-discussions,
.profile-privacy {
  padding: 22px;
  border: 1px solid #303e50;
  border-radius: 12px;
  background: #111923;
}
.profile-discussions .entry-list {
  border: 0;
  background: transparent;
}
.profile-discussions .entry-row {
  padding-inline: 0;
}
.profile-privacy {
  display: flex;
  align-items: start;
  gap: 12px;
}
.profile-privacy > svg {
  flex: none;
  color: var(--accent);
}
.profile-privacy h2 {
  margin: 0;
  font-size: 18px;
}
.profile-privacy p {
  margin: 6px 0 0;
  color: #c8d1de;
  line-height: 1.6;
}
@media (max-width: 1050px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .profile-card,
  .profile-layout .forum-profile,
  .profile-discussions,
  .profile-privacy {
    padding: 18px;
  }
  .profile-layout {
    gap: 14px;
  }
  .profile-layout .forum-profile-form .button {
    width: 100%;
  }
}
.composer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 26px;
}
.composer-form {
  padding: 26px;
  border: 1px solid #303e50;
  border-radius: 12px;
  background: #111923;
}
.composer-heading {
  display: flex;
  align-items: start;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #303e50;
}
.composer-heading > svg,
.composer-tip > svg {
  flex: none;
  color: var(--accent);
}
.composer-heading h2,
.composer-tip h2 {
  margin: 0;
  font-size: 18px;
}
.composer-heading p,
.composer-tip p {
  margin: 6px 0 0;
  color: #c4cedb;
  line-height: 1.6;
}
.composer-form textarea {
  min-height: 240px;
  resize: vertical;
}
.composer-form small {
  display: block;
  color: #bdc9d9;
}
.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}
.composer-actions span {
  color: #bdc9d9;
  font-size: 12px;
}
.composer-actions .button {
  margin: 0;
}
.composer-aside {
  display: grid;
  gap: 14px;
}
.composer-tip {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 20px;
  background: #111923;
  border: 1px solid #303e50;
  border-radius: 12px;
}
.composer-tip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f7c573;
  font-weight: 700;
}
@media (max-width: 950px) {
  .composer-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .composer-form {
    padding: 18px;
  }
  .composer-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .composer-actions .button {
    width: 100%;
  }
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #172232;
  border: 1px solid #3b4b62;
  border-radius: 8px 8px 0 0;
}
.editor-toolbar[hidden] {
  display: none;
}
.editor-toolbar button {
  min-height: 38px;
  padding: 6px 10px;
  margin: 0;
  border: 1px solid #45546a;
  border-radius: 6px;
  background: #202c3d;
  color: #eef3fa;
  font: inherit;
}
.editor-toolbar button:hover {
  background: #34445a;
}
#discussion-editor {
  border: 1px solid #3b4b62;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #0e1929;
}
#discussion-editor .tiptap {
  min-height: 240px;
  padding: 14px;
  outline: none;
  overflow-wrap: anywhere;
}
#discussion-editor:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tiptap table {
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.tiptap th,
.tiptap td {
  min-width: 80px;
  border: 1px solid #53647b;
  padding: 8px;
}
.discussion-markdown {
  overflow-wrap: anywhere;
}
.discussion-markdown img {
  max-width: 100%;
  height: auto;
}
.discussion-markdown a {
  color: #f7c573;
  text-decoration: underline;
}
.composer-form textarea[hidden],
#discussion-editor[hidden] {
  display: none;
}
.editor-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.composer-message-label {
  display: block;
  font-weight: 700;
  margin: 16px 0 8px;
}
.report-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: min(90dvh, 850px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #42516a;
  border-radius: 14px;
  background: #111b2a;
  color: #eaf0fa;
  box-shadow: 0 24px 80px #000a;
}
.report-dialog::backdrop {
  background: #050912bf;
}
.report-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.report-dialog-header h2 {
  margin: 0;
  font-size: 22px;
}
.report-dialog-header p {
  margin: 6px 0 0;
  color: #becadb;
  line-height: 1.5;
}
.report-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid #42516a;
  border-radius: 8px;
  background: transparent;
  color: #eaf0fa;
  font-size: 24px;
}
.report-dialog-form {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.report-dialog-form label {
  font-weight: 700;
  margin-top: 10px;
}
.report-dialog-form label span,
.report-dialog-form small {
  color: #bbc8d9;
  font-size: 12px;
  font-weight: 400;
}
.report-dialog-form select,
.report-dialog-form textarea,
.report-dialog-form input {
  width: 100%;
  padding: 11px;
  border: 1px solid #485b72;
  border-radius: 8px;
  background: #0d1623;
  color: #eaf0fa;
  font: inherit;
}
.report-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.report-details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 550px) {
  .report-dialog {
    padding: 18px;
  }
  .report-dialog-actions {
    flex-direction: column-reverse;
  }
  .report-dialog-actions .button {
    width: 100%;
  }
}
.report-form .report-cancel {
  display: none;
}
.nested-reply-label,
.share-label {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
}
/* Top-level discussion reply composer. */
.page-content .reply-composer {
  padding: 24px;
  margin-top: 28px;
  background: #111b2a;
  border: 1px solid #35445a;
  border-radius: 12px;
  scroll-margin-top: 95px;
}
.reply-composer-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.reply-composer-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  color: #f7b548;
  background: #33291c;
  border: 1px solid #554326;
  border-radius: 10px;
}
.page-content .reply-composer h2 {
  margin: 0;
  font-size: 19px;
}
.reply-composer-heading p {
  margin: 4px 0 0;
  color: #bdc9d9;
  font-size: 13px;
}
.page-content .reply-composer label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
}
.page-content .reply-composer textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border: 1px solid #44546b;
  border-radius: 9px;
  background: #0c1522;
  color: #eaf0fa;
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}
.reply-composer textarea::placeholder {
  color: #a8b7c9;
}
.reply-composer textarea:focus-visible {
  outline: 2px solid #f7b548;
  outline-offset: 2px;
}
.reply-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.reply-composer-footer p {
  margin: 0;
  color: #bdc9d9;
  font-size: 12px;
}
.reply-composer-footer .button {
  flex: none;
}
@media (max-width: 550px) {
  .page-content .reply-composer {
    padding: 18px;
  }
  .reply-composer-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .reply-composer-footer .button {
    width: 100%;
  }
}
.page-content .card.reply-composer {
  width: 100%;
  max-width: none;
}
.bookmarks-intro .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bookmarks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}
.saved-panel,
.saved-guide {
  background: #111b2a;
  border: 1px solid #303e50;
  border-radius: 12px;
}
.saved-panel {
  overflow: hidden;
}
.saved-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid #303e50;
}
.saved-panel-heading h2 {
  margin: 0;
  font-size: 19px;
}
.saved-panel-heading p {
  margin: 4px 0 0;
  color: #bdc9d9;
  font-size: 13px;
}
.saved-panel-heading > span {
  flex: none;
  padding: 5px 10px;
  border-radius: 99px;
  background: #2c261d;
  color: #f7c573;
  font-size: 12px;
  font-weight: 700;
}
.page-content .saved-item {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: none;
  padding: 19px 24px;
  border-bottom: 1px solid #29394d;
}
.saved-item:last-child {
  border-bottom: 0;
}
.saved-item:hover {
  background: #182435;
}
.saved-icon,
.saved-empty > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #342a1d;
  color: #f7b548;
}
.saved-item-content {
  min-width: 0;
  flex: 1;
}
.saved-board {
  color: #efc47e;
  font-size: 11px;
  font-weight: 700;
}
.saved-item h3 {
  margin: 3px 0 5px;
  font-size: 15px;
}
.saved-item h3 a {
  color: #f3f5f8;
}
.saved-item p {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  color: #bec9d7;
  font-size: 12px;
}
.saved-arrow {
  flex: none;
  color: #9eacbf;
}
.saved-empty {
  display: grid;
  justify-items: center;
  padding: 52px 24px;
  text-align: center;
}
.saved-empty h3 {
  margin: 18px 0 4px;
}
.saved-empty p {
  margin: 0 0 18px;
  color: #bdc9d9;
}
.saved-empty .button {
  display: inline-flex;
  gap: 8px;
}
.saved-guide {
  display: flex;
  gap: 12px;
  padding: 20px;
}
.saved-guide > svg {
  flex: none;
  color: #f7b548;
}
.saved-guide h2 {
  margin: 0;
  font-size: 15px;
}
.saved-guide p {
  margin: 7px 0 0;
  color: #bdc9d9;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .bookmarks-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .bookmarks-intro {
    align-items: start;
    flex-direction: column;
  }
  .saved-panel-heading,
  .page-content .saved-item {
    padding: 16px;
  }
  .saved-icon {
    width: 36px;
    height: 36px;
  }
  .saved-guide {
    padding: 16px;
  }
}

.page-content .saved-item p {
  font-size: 12px;
  color: #bec9d7;
}
.page-content .saved-item h3 a {
  color: #f3f5f8;
}
.discussions-hero {
  display: flex;
  align-items: center;
  min-height: 210px;
  padding: 30px 32px;
  border: 1px solid #293341;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #0b1018 0%, #0b1018ec 40%, #0b10185c 100%),
    url('/images/mining-hero.webp') center/cover;
}
.discussions-hero > div {
  max-width: 650px;
}
.page-content .discussions-hero h1 {
  margin: 5px 0 8px;
}
.discussions-hero p {
  margin: 0 0 18px;
  color: #d1d9e3;
}
.discussions-hero .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.discussions-discover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  align-items: start;
  margin-top: 30px;
}
.discussions-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.discussions-board {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 94px;
  padding: 13px;
  border: 1px solid #303e50;
  border-radius: 10px;
  background: #111b2a;
}
.discussions-board:hover {
  background: #19283b;
}
.discussions-board > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.discussions-board strong,
.discussions-board small {
  display: block;
  overflow-wrap: anywhere;
}
.discussions-board strong {
  font-size: 13px;
}
.discussions-board small {
  margin-top: 4px;
  color: #bdc9d9;
  font-size: 11px;
  line-height: 1.4;
}
.discussions-board > svg {
  flex: none;
  color: #acb9ca;
}
.discussions-board-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #30281e;
  color: #f7b548;
}
.discussions-guide {
  padding: 20px;
  border: 1px solid #58452e;
  border-radius: 12px;
  background: linear-gradient(145deg, #2c241d, #111b2a 70%);
}
.discussions-guide > svg {
  color: #f7b548;
}
.discussions-guide h2 {
  margin: 12px 0;
  font-size: 18px;
}
.discussions-guide ul {
  padding-left: 19px;
  color: #d0d8e2;
  font-size: 13px;
  line-height: 1.6;
}
.discussions-guide li + li {
  margin-top: 8px;
}
.discussions-guide a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #f7c573;
  font-weight: 700;
  font-size: 12px;
}
.page-content .discussion-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: none;
  padding: 16px 20px;
  border-bottom: 1px solid #303e50;
}
.discussion-list-row:last-child {
  border-bottom: 0;
}
.discussion-list-row:hover {
  background: #182435;
}
.discussion-list-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #344151;
  color: #f2f5f9;
  font-size: 12px;
  font-weight: 700;
}
.discussion-list-content {
  flex: 1;
  min-width: 0;
}
.discussion-list-content h3 {
  margin: 0;
  font-size: 14px;
}
.page-content .discussion-list-content h3 a {
  color: #f0f3f8;
}
.page-content .discussion-list-content p {
  margin: 4px 0 0;
  color: #bac6d6;
  font-size: 12px;
}
.discussion-list-replies {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  color: #c2cfde;
  font-size: 12px;
}
.discussion-list-arrow {
  flex: none;
  color: #99aabd;
}
@media (max-width: 1200px) {
  .discussions-discover {
    grid-template-columns: 1fr;
  }
  .discussions-guide {
    display: none;
  }
}
@media (max-width: 900px) {
  .discussions-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .discussions-hero {
    padding: 22px;
    min-height: 200px;
  }
  .discussions-board-grid {
    grid-template-columns: 1fr;
  }
  .discussion-list-replies {
    font-size: 0;
  }
  .discussion-list-replies svg {
    width: 18px;
  }
  .page-content .discussion-list-row {
    padding: 15px;
  }
  .discussion-list-arrow {
    display: none;
  }
}
@media (max-width: 550px) {
  .discussion-list-replies {
    font-size: 11px;
    white-space: nowrap;
  }
}
.notification-entry-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3f2ef;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.notification-entry-button:hover {
  text-decoration: underline;
}
.notification-entry-button:focus-visible {
  outline: 2px solid #f7b548;
  outline-offset: 3px;
}
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}
.search-page .search-panel {
  max-width: none;
  margin: 0;
  padding: 22px;
  border: 1px solid #35445a;
  border-radius: 12px;
  background: #111b2a;
}
.search-panel label {
  display: block;
  margin: 0;
  font-weight: 700;
}
.search-panel > p {
  margin: 4px 0 14px;
  color: #bac8d9;
  font-size: 13px;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid #485b72;
  border-radius: 9px;
  background: #0b1421;
}
.search-input-row:focus-within {
  border-color: #f7b548;
  outline: 1px solid #f7b548;
}
.search-input-row > span {
  display: flex;
  flex: none;
  color: #aebed3;
}
.search-input-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaf0fa;
  font: inherit;
}
.search-input-row input:focus-visible {
  outline: none;
}
.search-input-row input::placeholder {
  color: #a8b8c9;
}
.search-input-row .button {
  flex: none;
}
.search-results {
  margin-top: 28px;
}
.search-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.search-results-heading h2 {
  margin: 0;
  font-size: 20px;
}
.search-results-heading p {
  margin: 3px 0 0;
  color: #bac8d9;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.search-results-heading > span {
  flex: none;
  padding: 5px 10px;
  border-radius: 99px;
  background: #2c261d;
  color: #f7c573;
  font-size: 12px;
  font-weight: 700;
}
.search-results-list,
.search-tips {
  background: #111b2a;
  border: 1px solid #35445a;
  border-radius: 12px;
}
.search-empty {
  display: grid;
  justify-items: center;
  padding: 48px 24px;
  text-align: center;
}
.search-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #30281e;
  color: #f7b548;
}
.search-empty h3 {
  margin: 16px 0 4px;
  font-size: 18px;
}
.search-empty p {
  max-width: 430px;
  margin: 0;
  color: #bdc9d9;
  overflow-wrap: anywhere;
}
.search-empty a,
.search-tips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #f7c573;
  font-size: 13px;
  font-weight: 700;
}
.page-content .search-result {
  display: flex;
  gap: 14px;
  align-items: start;
  max-width: none;
  padding: 20px;
  border-bottom: 1px solid #303e50;
}
.search-result:last-child {
  border: 0;
}
.search-result > div {
  min-width: 0;
  flex: 1;
}
.search-result > svg {
  flex: none;
  color: #9eafc3;
}
.search-result-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #30281e;
  color: #f7b548;
}
.search-result-board {
  font-size: 11px;
  font-weight: 700;
  color: #efc47e;
}
.search-result h3 {
  margin: 4px 0;
  font-size: 15px;
}
.page-content .search-result h3 a {
  color: #f1f4f8;
}
.page-content .search-result p {
  margin: 4px 0 0;
  color: #bdc9d9;
  font-size: 13px;
}
.search-tips {
  display: flex;
  gap: 12px;
  padding: 20px;
}
.search-tips > svg {
  flex: none;
  color: #f7b548;
}
.search-tips h2 {
  margin: 0;
  font-size: 16px;
}
.search-tips ul {
  padding-left: 18px;
  color: #bdc9d9;
  font-size: 13px;
  line-height: 1.6;
}
.search-tips li + li {
  margin-top: 8px;
}
@media (max-width: 950px) {
  .search-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 550px) {
  .search-page .search-panel,
  .search-tips {
    padding: 16px;
  }
  .search-input-row {
    flex-wrap: wrap;
  }
  .search-input-row .button {
    width: 100%;
  }
  .search-empty {
    padding: 35px 18px;
  }
  .page-content .search-result {
    padding: 16px;
  }
}
/* BlockForum journal */
.page-content .journal-hero {
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid #303a48;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #0b1019 0%, #0b1019e8 42%, #0b101955 100%),
    url('/images/mining-hero.webp') center/cover;
}
.journal-hero > div {
  max-width: 620px;
}
.page-content .journal-hero h1 {
  margin: 8px 0;
}
.journal-hero p {
  margin: 0;
  color: #d4dce6;
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.page-content .journal-card {
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #111b2a;
  border: 1px solid #303e50;
  border-radius: 12px;
  overflow: hidden;
}
.journal-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #202b39;
}
.journal-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.journal-card time,
.article-detail-meta {
  color: #b8c4d3;
  font-size: 12px;
}
.journal-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 10px 0;
}
.page-content .journal-card h3 a {
  color: #f4f6f9;
}
.page-content .journal-card p {
  color: #bdc9d9;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 15px;
}
.journal-card .article-tags {
  margin-top: auto;
}
.journal-card .article-read {
  margin-top: 14px;
}
.journal-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  color: #bdc9d9;
  font-size: 13px;
}
.journal-pagination a,
.journal-empty a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #f7c573;
  font-weight: 700;
}
.journal-empty {
  display: grid;
  justify-items: center;
  padding: 42px 20px;
  text-align: center;
  border: 1px solid #303e50;
  border-radius: 12px;
  background: #111b2a;
}
.journal-empty > svg {
  color: #f7b548;
}
.journal-empty h3 {
  margin: 12px 0 4px;
}
.journal-empty p {
  margin: 0;
}
.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.page-content .journal-reading {
  max-width: none;
  min-width: 0;
}
.article-detail-header {
  margin: 24px 0;
}
.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-content .journal-reading h1 {
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.13;
  margin: 14px 0;
}
.page-content .journal-reading .article-deck {
  font-size: 17px;
  color: #d1dae5;
  line-height: 1.65;
}
.article-detail-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}
.article-prose {
  max-width: 72ch;
  color: #d0d9e4;
  line-height: 1.8;
}
.page-content .article-prose p {
  font-size: 16px;
  line-height: 1.8;
}
.article-prose h2,
.article-prose h3 {
  margin-top: 1.8em;
  line-height: 1.3;
}
.article-prose img {
  max-width: 100%;
  height: auto;
}
.article-detail-aside {
  display: grid;
  gap: 16px;
  padding-top: 24px;
}
.article-aside-card {
  padding: 20px;
  border: 1px solid #303e50;
  border-radius: 12px;
  background: #111b2a;
}
.article-aside-card > svg {
  color: #f7b548;
}
.article-aside-card h2 {
  font-size: 17px;
  margin: 8px 0;
}
.article-aside-card p {
  color: #bdc9d9;
  font-size: 13px;
}
.article-aside-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-aside-card li {
  border-top: 1px solid #303e50;
}
.article-aside-card li a,
.article-aside-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  color: #f7c573;
  font-size: 13px;
  font-weight: 700;
}
.article-aside-card li a {
  color: #eaf0fa;
}
.article-aside-card a svg {
  flex: none;
}
@media (max-width: 1100px) {
  .journal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-detail-layout {
    grid-template-columns: 1fr;
  }
  .article-detail-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }
}
@media (max-width: 600px) {
  .page-content .journal-hero {
    padding: 22px;
    min-height: 190px;
  }
  .journal-grid,
  .article-detail-aside {
    grid-template-columns: 1fr;
  }
  .journal-card-body {
    padding: 18px;
  }
}
.page-content .search-input-row input:not([type='hidden']) {
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.page-content .search-input-row input:focus-visible {
  outline: none;
}

/* Journal article: editorial heading, comfortable reading measure, and related content. */
.page-content .article-detail-layout {
  display: block;
  max-width: 1160px;
  margin: 0 auto;
}
.article-back {
  gap: 8px;
  color: #b7c1cf;
  transition: color 0.15s ease;
}
.article-back:hover {
  color: #f7c573;
}
.page-content .journal-reading {
  max-width: none;
}
.article-detail-header {
  max-width: 890px;
  margin: 32px auto 28px;
  text-align: center;
}
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f7bd68;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.article-kicker span {
  width: 22px;
  height: 2px;
  background: #f7b548;
}
.page-content .journal-reading h1 {
  max-width: 820px;
  margin: 15px auto;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.page-content .journal-reading .article-deck {
  max-width: 680px;
  margin: 0 auto;
  color: #c5cfdb;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  text-align: left;
}
.article-byline-icon,
.article-end-icon,
.article-community-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #30281f;
  color: #f7b548;
}
.article-byline strong,
.article-byline div > span {
  display: block;
}
.article-byline strong {
  color: #edf1f7;
  font-size: 13px;
}
.article-byline div > span {
  margin-top: 2px;
  color: #aab8c9;
  font-size: 12px;
}
.article-byline div > span span {
  padding: 0 3px;
}
.article-detail-header .article-tags {
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.article-detail-header .article-tags a {
  min-height: 32px;
  padding: 5px 11px;
  background: #25251f;
  border: 1px solid #4a3e2d;
  border-radius: 6px;
  color: #f4c781;
}
.article-detail-header .article-tags a:hover {
  border-color: #ad7b37;
}
.article-feature {
  margin: 0;
}
.article-feature .article-detail-cover {
  display: block;
  width: 100%;
  max-height: 510px;
  object-fit: cover;
  border: 1px solid #303e50;
  border-radius: 14px;
  margin: 0;
  aspect-ratio: 16/8;
}
.article-feature figcaption {
  margin: 10px 2px 0;
  color: #9ba9ba;
  font-size: 11px;
}
.article-feature figcaption span {
  padding: 0 5px;
  color: #687789;
}
.article-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1030px;
  margin: 48px auto 0;
  align-items: start;
}
.article-main-column {
  min-width: 0;
}
.article-prose {
  max-width: 68ch;
  color: #d4dde8;
  line-height: 1.8;
}
.page-content .article-prose p {
  margin: 0 0 1.35em;
  color: #c7d1dd;
  font-size: 17px;
  line-height: 1.85;
}
.article-prose h2,
.article-prose h3 {
  color: #f5f6f8;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.article-prose h2 {
  margin: 1.9em 0 0.65em;
  font-size: clamp(23px, 2.3vw, 28px);
}
.article-prose h2:first-child {
  margin-top: 0;
}
.article-prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 20px;
}
.article-prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0 38px;
  border: 1px solid #303e50;
  border-radius: 12px;
}
.article-prose a {
  color: #f7c573;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-prose li {
  margin-bottom: 0.5em;
}
.article-prose pre {
  overflow-x: auto;
  padding: 16px;
  background: #111b2a;
  border: 1px solid #303e50;
  border-radius: 10px;
}
.article-detail-aside {
  display: grid;
  gap: 16px;
  padding-top: 0;
}
.article-aside-card {
  padding: 22px;
  border-color: #303e50;
  border-radius: 12px;
  background: #111b2a;
}
.article-aside-label {
  color: #f7bd68;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-aside-card h2 {
  margin: 8px 0;
  font-size: 18px;
}
.article-aside-card p {
  margin: 0 0 15px;
  color: #bac7d7;
  line-height: 1.6;
}
.article-related li a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 10px;
  padding: 15px 0;
  color: #eaf0fa;
  font-size: 13px;
  line-height: 1.45;
}
.article-related li a:hover {
  color: #f7c573;
}
.article-related-number {
  color: #dba358;
  font-size: 11px;
  font-weight: 800;
}
.article-related li a svg {
  margin-top: 2px;
}
.article-aside-link {
  justify-content: flex-start;
  gap: 8px;
}
.article-community-card {
  background: #211f20;
  border-color: #493c30;
}
.article-community-icon {
  margin-bottom: 14px;
}
.article-end {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  padding: 22px;
  border: 1px solid #4a3d2e;
  border-radius: 12px;
  background: #211e1b;
}
.article-end strong {
  font-size: 15px;
  color: #f7f2ea;
}
.page-content .article-end p {
  margin: 5px 0 8px;
  font-size: 13px;
  line-height: 1.6;
}
.article-end a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #f7c573;
  font-size: 13px;
  font-weight: 750;
}
@media (max-width: 1100px) {
  .article-detail-body {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 720px;
  }
  .article-detail-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-prose {
    max-width: none;
  }
}
@media (max-width: 600px) {
  .article-detail-header {
    margin: 22px auto 24px;
    text-align: left;
  }
  .article-kicker {
    font-size: 10px;
  }
  .page-content .journal-reading h1 {
    font-size: clamp(32px, 9vw, 42px);
  }
  .article-byline {
    justify-content: flex-start;
  }
  .article-detail-header .article-tags {
    justify-content: flex-start;
  }
  .article-feature .article-detail-cover {
    aspect-ratio: 16/10;
    border-radius: 10px;
  }
  .article-detail-body {
    margin-top: 32px;
  }
  .page-content .article-prose p {
    font-size: 16px;
  }
  .article-detail-aside {
    grid-template-columns: 1fr;
  }
  .article-end {
    padding: 18px;
  }
}

.reply-depth-1 {
  --thread-depth: 1;
}
.reply-depth-2 {
  --thread-depth: 2;
}
.reply-depth-3 {
  --thread-depth: 3;
}
.reply-depth-4 {
  --thread-depth: 4;
}
