:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
  color: #ffffff;
  background: #2a2a2a;
}
* {
  box-sizing: border-box;
}
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: #ffffff;
  background: #2a2a2a;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: #ffffff;
  text-decoration: underline;
}
a:visited {
  color: #cccccc;
}
a:hover {
  color: #dddddd;
}
[hidden] {
  display: none !important;
}
.topbar {
  position: relative;
  z-index: 5;
  min-height: 74px;
  padding: 0 24px;
  background: #181818;
  border-bottom: 1px solid #777777;
}
.topbar-inner {
  position: relative;
  width: min(100%, 1190px);
  min-height: 74px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.site-name {
  justify-self: start;
  color: #ffffff;
  font-family: "Times New Roman", serif;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}
.site-name span {
  color: #aaaaaa;
  font-size: 14px;
  font-weight: normal;
}
.center-logo {
  justify-self: center;
  display: flex;
  color: #ffffff;
}
.center-logo:hover {
  text-decoration: none;
}
.brand-mark,
.empty-mark {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  border-radius: 0;
  color: white;
  background: #555555;
  font-family: "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
}
.nav-tools {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-toggle {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #555555;
  color: #ffffff;
  background: #242424;
  font-size: 12px;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: #444444;
}
.toggle-arrow {
  margin-left: 5px;
  color: #aaaaaa;
  font-size: 9px;
}
.nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  width: 230px;
  padding: 9px;
  border: 1px solid #777777;
  color: #ffffff;
  background: #222222;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.35);
}
.nav-panel .category-link,
.nav-panel a,
.nav-panel-action {
  width: 100%;
  min-height: 33px;
  padding: 6px 8px;
  display: block;
  border: 0;
  color: #eeeeee;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: 12px;
}
.nav-panel .category-link:hover,
.nav-panel a:hover,
.nav-panel-action:hover {
  color: #ffffff;
  background: #444444;
  text-decoration: none;
}
.nav-panel .category-link.selected {
  color: #ffffff;
  background: #444444;
}
.panel-title,
.account-caption {
  margin: 5px 7px 8px;
  color: #aaaaaa;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.08em;
}
.panel-rule {
  height: 1px;
  margin: 7px 0;
  background: #555555;
}
.account-area {
  margin: 0;
  padding: 4px 7px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cccccc;
  font-size: 12px;
}
.account-indicator {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #888888;
}
.account-indicator.connected {
  background: #aaaaaa;
}
.layout {
  width: min(52%, 920px);
  margin: 0 auto;
  padding: 38px 0 60px;
}
.new-topic-button,
.secondary-button {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #777777;
  border-radius: 0;
  color: #ffffff;
  background: #2a2a2a;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
  transition: background 0.15s ease;
}
.new-topic-button:hover {
  background: #181818;
}
.eyebrow {
  margin: 0;
  color: #aaaaaa;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.category-link {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  color: #cccccc;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 550;
}
.category-link:hover {
  background: #181818;
  color: #ffffff;
}
.category-link.selected {
  color: #ffffff;
  background: #181818;
  font-weight: 650;
}
.category-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 0;
  background: #aaaaaa;
}
.all-dot,
.kernel-dot,
.hardware-dot,
.help-dot,
.community-dot {
  background: #aaaaaa;
}
.discussion-area {
  min-width: 0;
}
.page-heading {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  margin-bottom: 6px;
  color: #cccccc;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 3px;
  font-family: "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 31px);
  line-height: 1.2;
}
.page-description {
  margin: 0;
  color: #cccccc;
  font-size: 13px;
}
.choc-mascot {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  flex: 0 0 auto;
}
.search-box {
  width: min(270px, 35%);
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #777777;
  border-radius: 0;
  color: #aaaaaa;
  background: #333333;
}
.search-box > span {
  font-size: 21px;
  line-height: 1;
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font-size: 12px;
}
.search-box kbd {
  padding: 0 4px;
  border: 1px solid #555555;
  border-radius: 0;
  color: #aaaaaa;
  font-size: 10px;
}
.filter-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #777777;
}
.feed-tabs {
  height: 48px;
  display: flex;
  gap: 22px;
}
.feed-tab {
  position: relative;
  padding: 0 2px;
  border: 0;
  color: #cccccc;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.feed-tab.active {
  color: #ffffff;
}
.feed-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #ffffff;
  content: "";
}
.discussion-count {
  color: #aaaaaa;
  font-size: 11px;
}
.discussion-list {
  border: 1px solid #555555;
  border-top: 0;
  border-radius: 0;
  background: #333333;
  overflow: hidden;
}
.discussion-item {
  min-height: 105px;
  padding: 17px 19px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 13px;
  border-top: 1px solid #555555;
  transition: background 0.12s ease;
}
.discussion-item:first-child {
  border-top: 0;
}
.discussion-item:hover {
  background: #3a3a3a;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #ffffff;
  background: #555555;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}
.discussion-main {
  min-width: 0;
}
.discussion-title {
  margin: 0 0 5px;
  padding: 0;
  display: block;
  border: 0;
  color: #ffffff;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
}
.discussion-title:hover {
  color: #dddddd;
  text-decoration: underline;
}
.discussion-excerpt {
  max-width: 720px;
  margin: 0 0 9px;
  overflow: hidden;
  color: #cccccc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.discussion-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #aaaaaa;
  font-size: 10px;
}
.meta-author {
  color: #ffffff;
  font-weight: 650;
}
.meta-separator {
  color: #888888;
}
.category-pill {
  padding: 2px 7px;
  border-radius: 0;
  color: #ffffff;
  background: #555555;
  font-weight: 600;
}
.discussion-stats {
  min-width: 56px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1px;
  color: #cccccc;
}
.reply-count {
  font-size: 13px;
  font-weight: 700;
}
.reply-label {
  font-size: 9px;
}
.api-notice {
  margin: 15px 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #888888;
  border-radius: 0;
  color: #ffffff;
  background: #333333;
  font-size: 12px;
}
.api-notice strong {
  font-size: 12px;
}
.api-notice a {
  font-weight: 650;
}
.empty-state {
  padding: 70px 18px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.empty-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 0;
  font-size: 28px;
}
.empty-state h2 {
  margin-bottom: 4px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.empty-state p {
  margin-bottom: 18px;
  color: #cccccc;
  font-size: 12px;
}
.forum-footer {
  margin-top: 23px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #aaaaaa;
  font-size: 10px;
}
.modal {
  width: min(70%, 610px);
  max-height: min(88vh, 820px);
  padding: 24px;
  border: 1px solid #555555;
  border-radius: 0;
  color: #ffffff;
  background: #333333;
  box-shadow: none;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}
.modal-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.modal-heading h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.035em;
}
.close-button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  color: #cccccc;
  background: transparent;
  font-size: 23px;
  line-height: 1;
}
.close-button:hover {
  background: #181818;
}
.field-label {
  margin: 14px 0 6px;
  display: block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
}
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #777777;
  border-radius: 0;
  outline: none;
  color: #ffffff;
  background: #222222;
  font-size: 13px;
}
.modal textarea {
  resize: vertical;
}
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: #cccccc;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.form-error {
  margin: 10px 0 0;
  color: #dddddd;
  font-size: 12px;
}
.modal-actions {
  margin-top: 17px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.secondary-button {
  border-color: #777777;
  color: #ffffff;
  background: #333333;
}
.secondary-button:hover {
  background: #181818;
}
.topic-modal {
  width: min(70%, 760px);
}
.topic-modal > #topic-detail {
  max-height: 48vh;
  overflow-y: auto;
}
.topic-detail-heading {
  padding-bottom: 17px;
  border-bottom: 1px solid #555555;
}
.topic-detail-heading h2 {
  margin: 7px 0;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.topic-detail-body {
  color: #cccccc;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply-list {
  margin: 18px 0;
}
.reply-card {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  border-top: 1px solid #555555;
}
.reply-card .avatar {
  width: 32px;
  height: 32px;
}
.reply-card p {
  margin: 3px 0 0;
  color: #cccccc;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply-author {
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}
.reply-time {
  margin-left: 8px;
  color: #aaaaaa;
  font-size: 10px;
}
.reply-form {
  padding-top: 15px;
  border-top: 1px solid #555555;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .topbar {
    padding: 0 18px;
  }
  .layout {
    width: min(64%, 680px);
    padding-top: 24px;
  }
}
@media (max-width: 580px) {
  .topbar {
    min-height: 62px;
    padding: 0 10px;
  }
  .topbar-inner {
    min-height: 62px;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-name {
    font-size: 18px;
  }
  .site-name span {
    display: none;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .nav-tools {
    gap: 3px;
  }
  .nav-toggle {
    min-height: 34px;
    padding: 0 7px;
    font-size: 11px;
  }
  .toggle-arrow {
    margin-left: 2px;
  }
  .nav-panel {
    width: min(230px, calc(100vw - 20px));
  }
  .layout {
    width: min(72%, 520px);
    padding-top: 15px;
  }
  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-link {
    justify-content: flex-start;
    padding: 0 9px;
  }
  .category-dot {
    display: inline-block;
  }
  .page-heading {
    padding: 8px 0 15px;
    align-items: flex-start;
    flex-direction: column;
  }
  .search-box {
    width: 100%;
  }
  .discussion-item {
    grid-template-columns: 34px minmax(0, 1fr) 40px;
    gap: 9px;
    padding: 14px 11px;
  }
  .avatar {
    width: 32px;
    height: 32px;
  }
  .discussion-title {
    font-size: 13px;
  }
  .discussion-excerpt {
    max-width: calc(100vw - 125px);
  }
  .api-notice {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .forum-footer {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
