/* The Hyperion forums -- built from the tokens already in styles.css.
   Loaded only on forums.html, so nothing here can affect the other pages. */

.site-shell--wide {
  width: 1180px;
}

.forum-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #3e4148;
}

.forum-head h2 {
  margin: 0;
  color: var(--cream);
  font-size: 15px;
  line-height: 1.1;
}

.crumbs {
  color: var(--muted);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crumbs a {
  color: var(--link);
  text-decoration: none;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  text-decoration: underline;
}

.crumbs b {
  color: #8e8e86;
  font-weight: bold;
}

/* ---------------------------------------------------------- board index */

.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 9px;
  padding: 12px;
  border: 1px solid #4b4e55;
  background: #1a1c22;
}

.board-row:hover {
  border-color: #6b6f79;
}

.board-row h3 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.1;
}

.board-row h3 a {
  color: var(--cream);
  text-decoration: none;
}

.board-row h3 a:hover,
.board-row h3 a:focus-visible {
  color: #ffd95d;
}

.board-row p {
  margin: 0;
  color: #fff4d5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.board-meta {
  flex: 0 0 auto;
  min-width: 116px;
  padding-left: 12px;
  border-left: 1px solid #3e4148;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.board-meta strong {
  display: block;
  color: var(--gold);
  font-size: 13px;
}

/* ----------------------------------------------------------- topic list */

.forum-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 11px;
}

.forum-table th,
.forum-table td {
  padding: 8px;
  border: 1px solid #4b4e55;
  text-align: left;
  vertical-align: top;
}

.forum-table th {
  color: var(--gold);
  background: #171920;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.forum-table td {
  color: #f5edcf;
  background: #292b31;
}

.forum-table .col-count {
  width: 74px;
  text-align: center;
}

.forum-table .col-last {
  width: 168px;
}

.topic-title {
  color: var(--link);
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}

.topic-title:hover,
.topic-title:focus-visible {
  text-decoration: underline;
}

.topic-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.tag {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 5px;
  border: 1px solid #6a5a20;
  background: #241f0e;
  color: var(--gold);
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

/* ----------------------------------------------------------- topic view */

.post-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  margin: 0 0 9px;
  border: 1px solid #4b4e55;
  background: #1a1c22;
}

.post-author {
  padding: 12px 10px;
  border-right: 1px solid #4b4e55;
  background: var(--panel-dark);
  text-align: center;
}

.post-author img {
  width: 48px;
  height: 48px;
  border: 1px solid #3d424c;
  background: #090b10;
  image-rendering: pixelated;
}

.post-author .name {
  display: block;
  margin: 7px 0 4px;
  color: var(--cream);
  font-size: 12px;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.post-author .stat {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.post-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 12px 12px;
}

.post-stamp {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #33363d;
  color: var(--muted);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Deliberately larger and lighter than the 11px/600 used elsewhere --
   panel blurbs are short, forum posts are not. */
.post-body {
  margin: 0;
  color: #fff4d5;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* ------------------------------------------------------------- composer */

.composer {
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid #4b4e55;
  background: #17191f;
}

.composer h3 {
  margin: 0 0 9px;
  color: var(--cream);
  font-size: 13px;
}

.composer label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.composer input,
.composer textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 7px;
  border: 1px solid #3d424c;
  background: #090b10;
  color: #ffeaab;
  font: 12px/1.5 Arial, Helvetica, sans-serif;
  resize: vertical;
}

.composer textarea {
  min-height: 120px;
}

.composer input:focus-visible,
.composer textarea:focus-visible {
  border-color: #ffbd31;
  outline: none;
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-actions .hint {
  color: var(--muted);
  font-size: 10px;
}

/* ------------------------------------------------------- notices, pager */

.forum-notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #4b4e55;
  background: #17191f;
  color: #fff4d5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.forum-notice--bad {
  border-color: #7a4a3a;
  background: #241512;
  color: #ffd2c2;
}

.forum-notice--good {
  border-color: #6a5a20;
  background: #241f0e;
  color: #ffeaab;
}

.forum-empty {
  padding: 26px 12px;
  border: 1px dashed #4b4e55;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
  color: #8e8e86;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.pager a {
  color: var(--cream);
  text-decoration: none;
}

.pager a:hover,
.pager a:focus-visible {
  color: #ffd95d;
}

.pager .current {
  color: #ffd95d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ account box */

.account-box {
  margin-bottom: 13px;
  padding: 9px 7px;
  border: 1px solid #3d424c;
  background: #090b10;
  font-size: 10px;
  text-align: center;
}

.account-box .who {
  display: block;
  margin-bottom: 6px;
  color: var(--cream);
  font-size: 11px;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.account-box .copy-button {
  width: 100%;
  margin-top: 5px;
}

.account-box p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.linkish {
  border: 0;
  background: none;
  color: var(--link);
  font: bold 10px Arial, Helvetica, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .site-shell--wide {
    width: 980px;
  }
}

@media (max-width: 800px) {
  .post-row {
    grid-template-columns: 1fr;
  }

  .post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid #4b4e55;
    text-align: left;
  }

  .post-author img {
    width: 32px;
    height: 32px;
  }

  .post-author .name {
    margin: 0 6px 0 0;
  }

  .post-author .stat {
    display: inline;
    margin-right: 8px;
  }

  .forum-table .col-last {
    display: none;
  }
}

@media (max-width: 560px) {
  .board-row {
    align-items: stretch;
    flex-direction: column;
  }

  .board-meta {
    min-width: 0;
    padding: 8px 0 0;
    border-top: 1px solid #3e4148;
    border-left: 0;
    text-align: left;
  }

  .board-meta strong {
    display: inline;
    margin-right: 6px;
  }
}

/* ---------------------------------------------- v2: full-width forum page */

.forum-layout {
  margin-top: 8px;
}

.forum-panel {
  min-height: 620px;
  padding: 14px 16px 26px;
  background: rgba(35, 37, 43, 0.97);
}

.board-intro {
  margin: 0 0 12px;
  color: #fff4d5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

/* ------------------------------------------------------------ account bar */

.account-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel-dark);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.035);
}

.account-bar--forms {
  display: block;
}

.account-who {
  flex: 1 1 auto;
  min-width: 0;
}

.account-who .name {
  display: block;
  color: var(--cream);
  font-size: 12px;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.account-who .stat {
  color: var(--muted);
  font-size: 10px;
}

.account-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.account-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 11px;
  border-bottom: 1px solid #3e4148;
}

.account-tab {
  padding: 6px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: bold 11px Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.account-tab.is-on {
  border-bottom-color: #ffbd31;
  color: #ffd95d;
}

.account-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.account-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  align-items: end;
  gap: 9px 12px;
}

.account-forms .donate-button,
.account-forms .cf-turnstile {
  grid-column: 1 / -1;
  justify-self: start;
}

.field label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.field input {
  display: block;
  width: 100%;
  padding: 6px 7px;
  border: 1px solid #3d424c;
  background: #090b10;
  color: #ffeaab;
  font: 12px Arial, Helvetica, sans-serif;
}

.field input:focus-visible {
  border-color: #ffbd31;
  outline: none;
}

.account-hint {
  margin: 9px 0 0;
  color: #ffeaab;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- avatars */

.avatar {
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid #3d424c;
  background: #090b10;
  image-rendering: pixelated;
  object-fit: cover;
  vertical-align: middle;
}

.avatar--initial {
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  image-rendering: auto;
  text-align: center;
}

.forum-notice .retro-list {
  margin: 7px 0 0 17px;
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 560px) {
  .account-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .account-bar--forms {
    display: block;
  }

  .account-actions {
    flex-direction: column;
  }

  .forum-panel {
    padding: 12px 10px 20px;
  }
}

/* -------------------------------------- v3: categories and the front notice */

.front-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #6a5a20;
  background: #241f0e;
}

.front-notice-text {
  min-width: 0;
}

.front-notice h3 {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 13px;
  line-height: 1.15;
}

.front-notice p {
  margin: 0;
  color: #ffeaab;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.front-notice-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-align: center;
}

.front-notice-meter {
  color: var(--cream-soft);
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
}

.category-head {
  margin: 20px 0 7px;
  padding: 6px 10px;
  border: 1px solid #5c6068;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(#20242b, #101218);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
  color: var(--cream);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-head:first-of-type {
  margin-top: 4px;
}

.category-boards {
  display: block;
}

.category-boards .board-row {
  margin-bottom: 5px;
}

.board-main {
  min-width: 0;
}

.board-row h4 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.1;
}

.board-row h4 a {
  color: var(--cream);
  text-decoration: none;
}

.board-row h4 a:hover,
.board-row h4 a:focus-visible {
  color: #ffd95d;
}

@media (max-width: 560px) {
  .front-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .front-notice-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
