:root {
  color-scheme: dark;
  --bg: #090e19;
  --side: #0d1423;
  --panel: #111b2d;
  --line: #273349;
  --text: #eaf0fa;
  --muted: #91a2bc;
  --accent: #f7b548;
  --mint: #56d9b1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}
.sidebar {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 25px 15px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 10px 27px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.8px;
}
.brandmark {
  background: var(--accent);
  color: #101621;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 23px;
  transform: rotate(-7deg);
}
.brand em {
  font-style: normal;
  color: var(--accent);
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.sectionlabel {
  color: #7285a0;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 800;
  margin: 20px 12px 8px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 10px;
  font-weight: 650;
}
.nav span {
  font-size: 18px;
  width: 23px;
  text-align: center;
}
.nav:hover,
.nav.active {
  background: #1d2c43;
  color: var(--text);
}
.nav.active {
  box-shadow: inset 3px 0 var(--accent);
}
.sidebottom {
  margin-top: 32px;
  background: linear-gradient(125deg, #27334b, #17253b);
  border: 1px solid #354762;
  border-radius: 15px;
  padding: 16px;
  font-size: 12px;
}
.sidebottom p {
  color: #a6b6cd;
}
.sidebottom a,
.text-link {
  color: #f7c573;
  font-weight: 700;
}
.main {
  min-width: 0;
  overflow-x: clip;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 34px;
  background: #0d1523;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 530px;
  flex: 1;
  background: #182439;
  border: 1px solid #2c3b51;
  border-radius: 10px;
  padding: 9px 13px;
  color: #9faec2;
}
.search input {
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  width: 100%;
  min-width: 0;
}
.search-submit {
  background: transparent;
  border: 0;
  color: #c3d1e4;
  font-size: 12px;
}
.auth-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.iconbtn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 17px;
}
.mobilemenu {
  display: none;
}
.layout {
  padding: 34px 34px 60px;
  max-width: 1600px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.eyebrow,
.panel-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font-size: 10px;
  font-weight: 850;
}
.eyebrow span {
  color: #566982;
}
.heading h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  margin: 7px 0 5px;
  line-height: 1.2;
}
.sub {
  color: var(--muted);
  margin: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #34445c;
  border-radius: 10px;
  background: #1b2940;
  color: var(--text);
  padding: 10px 15px;
  font-weight: 750;
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #171c27;
}
.btn.sm {
  padding: 8px 11px;
  font-size: 12px;
}
.btn:hover,
.nav:hover,
.board:hover,
.topic:hover {
  filter: brightness(1.12);
}
.announcement {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  background: linear-gradient(90deg, #4b3a22, #252a36);
  border: 1px solid #79592a;
  border-radius: 13px;
  margin-bottom: 24px;
}
.announcement-icon {
  font-size: 24px;
  color: var(--accent);
}
.announcement p {
  color: #dfc49b;
  margin: 3px 0 0;
  font-size: 12px;
}
.announcement > a {
  margin-left: auto;
  color: #f6ce91;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(320px, 24vw));
  gap: 22px;
}
.two-col > * {
  min-width: 0;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.panelhead h2 {
  margin: 3px 0 0;
  font-size: 16px;
}
.panelhead > span {
  color: var(--muted);
  font-size: 12px;
}
.panel-kicker {
  font-size: 9px;
  letter-spacing: 1.3px;
}
.board {
  padding: 15px 19px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 70px 18px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #253044;
}
.board:last-child,
.topic:last-child {
  border-bottom: 0;
}
.board:hover,
.topic:hover {
  background: #19273b;
}
.boardicon {
  width: 38px;
  height: 38px;
  background: #27344b;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: #f7c573;
}
.board strong,
.topic strong {
  display: block;
  font-size: 14px;
}
.board small,
.topic small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.boardmeta,
.topic-count {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.boardmeta b,
.topic-count b {
  display: block;
  color: var(--text);
  font-size: 13px;
}
.board-arrow {
  color: #7589a5;
}
.topic {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 65px 18px;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.topic-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #263b46;
  color: var(--mint);
  display: grid;
  place-items: center;
}
.asidecard {
  padding: 20px;
}
.asidecard h2 {
  font-size: 17px;
  line-height: 1.35;
  margin: 9px 0;
}
.asidecard p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.asidecard .btn {
  margin-top: 8px;
  width: 100%;
}
.principles {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.principles li {
  display: flex;
  gap: 12px;
  margin-bottom: 17px;
}
.principles li > span {
  min-width: 0;
}
.principles li > b {
  color: var(--accent);
  font-size: 11px;
}
.principles strong,
.principles small {
  display: block;
}
.principles strong {
  font-size: 12px;
}
.principles small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.aside-foot {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #7184a0;
  padding: 0 5px;
}
.empty {
  padding: 28px 20px;
  color: var(--muted);
}
.empty strong {
  color: var(--text);
}
.empty p {
  margin: 5px 0 10px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 1150px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .aside-foot {
    grid-column: 1/-1;
  }
}
@media (max-width: 850px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 15;
    width: 260px;
    box-shadow: 0 0 0 100vw #0009;
  }
  .sidebar.open {
    display: block;
  }
  .mobilemenu {
    display: block;
  }
  .layout {
    padding: 24px 16px;
  }
  .topbar {
    padding: 0 15px;
  }
  .heading h1 {
    font-size: 25px;
  }
}
@media (max-width: 550px) {
  .heading {
    flex-wrap: wrap;
  }
  .announcement {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .announcement > a {
    margin-left: 38px;
  }
  .board {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
  }
  .boardmeta {
    display: none;
  }
  .aside {
    grid-template-columns: 1fr;
  }
  .topic {
    grid-template-columns: 34px minmax(0, 1fr) 45px;
  }
  .topic .board-arrow {
    display: none;
  }
  .auth-actions {
    gap: 4px;
  }
  .btn.sm {
    padding: 7px;
    font-size: 11px;
  }
  .search-submit {
    display: none;
  }
  .search {
    padding: 8px;
  }
  .topbar {
    gap: 7px;
  }
}
/* Navigation and keyboard affordances */
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  background: var(--accent);
  color: #171c27;
  padding: 12px;
  z-index: 30;
  font-weight: 750;
}
.skip-link:focus {
  top: 12px;
}
.menu-backdrop {
  display: none;
}
.board,
.topic,
.nav,
.announcement,
.asidecard {
  overflow-wrap: anywhere;
}
.btn,
.iconbtn,
.nav,
.search-submit {
  min-height: 44px;
}
.search input {
  font-size: 16px;
}
.search input::placeholder {
  color: #a8b7ca;
  opacity: 1;
}
@media (max-width: 850px) {
  .menu-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: #000a;
    border: 0;
    z-index: 14;
  }
  .sidebar.open {
    box-shadow: none;
  }
}
@media (max-width: 550px) {
  .btn.sm {
    font-size: 12px;
    min-height: 44px;
    padding: 8px;
  }
  .topbar {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .auth-actions {
    margin-left: auto;
  }
}
/* Content-driven reflow for touch, zoom, and narrow screens. */
.topbar {
  height: auto;
  min-height: 78px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.search {
  min-width: min(100%, 240px);
}
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}
.heading h1 {
  letter-spacing: -0.03em;
}
.board > span:nth-child(2),
.topic > span:nth-child(2) {
  min-width: 0;
}
.sidebar {
  overscroll-behavior: contain;
}
.sidebottom a,
.text-link,
.announcement > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.layout {
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}
.sidebar {
  padding-bottom: max(25px, env(safe-area-inset-bottom));
}
@media (max-width: 850px) {
  .sidebar {
    width: min(280px, calc(100vw - 44px));
    height: 100dvh;
    max-width: 100%;
  }
  .layout {
    padding-top: 24px;
  }
}
@media (max-width: 550px) {
  body {
    font-size: 16px;
  }
  .heading h1 {
    font-size: clamp(24px, 7vw, 30px);
  }
  .board strong,
  .topic strong {
    font-size: 15px;
  }
  .board small,
  .topic small,
  .asidecard p {
    font-size: 13px;
  }
  .search-submit {
    display: inline-flex;
  }
  .search {
    flex-basis: 100%;
    min-width: 0;
  }
  .announcement > a {
    margin-inline-start: 0;
  }
  .announcement > div {
    flex: 1 1 180px;
    min-width: 0;
  }
  .announcement > a {
    flex-basis: 100%;
    padding-inline-start: 38px;
  }
  .auth-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .panelhead {
    flex-wrap: wrap;
  }
  .btn {
    white-space: normal;
    text-align: center;
  }
  .board,
  .topic {
    min-width: 0;
  }
}
@media (hover: none) {
  .board:active,
  .topic:active,
  .nav:active {
    background: #24354d;
  }
  .btn:active {
    filter: brightness(0.92);
  }
}
/* Keep related content close and separate the primary feed from supporting information. */
:root {
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
}
.layout {
  max-width: 1440px;
}
.heading {
  margin-bottom: var(--space-8);
}
.two-col {
  gap: var(--space-6);
  align-items: start;
}
.panel {
  margin-bottom: var(--space-6);
}
.panelhead {
  padding: var(--space-5) var(--space-6);
}
.board,
.topic {
  padding-inline: var(--space-6);
}
.asidecard {
  padding: var(--space-6);
}
.asidecard h2 {
  margin-block: var(--space-2) var(--space-3);
}
.asidecard p {
  margin-block: 0 var(--space-4);
}
.empty {
  padding: var(--space-8) var(--space-6);
}
@media (max-width: 550px) {
  .heading {
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }
  .panelhead,
  .board,
  .topic,
  .asidecard {
    padding-inline: var(--space-4);
  }
  .two-col {
    gap: var(--space-4);
  }
  .panel {
    margin-bottom: var(--space-4);
  }
}

/* Community overview: a quiet shell with a photographic mining hero. */
:root {
  --bg: #0a0e16;
  --side: #0c111b;
  --panel: #111722;
  --line: #29303b;
  --text: #f3f2ef;
  --muted: #b1bbc9;
  --accent: #f7b548;
}
body {
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.app {
  grid-template-columns: 252px minmax(0, 1fr);
}
.sidebar {
  background: var(--side);
  padding: 24px 14px;
}
.brand {
  padding-bottom: 25px;
}
.nav {
  border-radius: 8px;
  color: #c3cbd6;
}
.nav.active {
  background: #49351d;
  box-shadow: none;
  color: #fff4df;
}
.nav.active span,
.nav:hover span {
  color: var(--accent);
}
.sidebottom {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 12px;
}
.sidebottom b {
  color: var(--text);
}
.topbar {
  min-height: 68px;
  padding: 10px 28px;
  background: #0b1019;
}
.search {
  background: #191f2b;
  border-color: #343c4b;
}
.layout {
  max-width: 1600px;
  padding: 0 24px 60px;
}
.heading {
  display: flex;
  align-items: center;
  min-height: 240px;
  margin: 0 -24px 18px;
  padding: 34px 32px;
  background-image:
    linear-gradient(
      90deg,
      rgba(9, 14, 22, 0.98) 0%,
      rgba(9, 14, 22, 0.9) 37%,
      rgba(9, 14, 22, 0.3) 100%
    ),
    url('/images/mining-hero.webp');
  background-position: center;
  background-size: cover;
}
.hero-copy {
  max-width: 630px;
}
.heading h1 {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
}
.heading h1 span {
  color: var(--accent);
}
.sub {
  max-width: 540px;
  color: #e3e4e5;
  font-size: 15px;
  line-height: 1.6;
}
.heading .create {
  margin-top: 20px;
}
.announcement {
  background: #211e20;
  border-color: #49403c;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 12px 18px;
}
.announcement strong {
  color: var(--accent);
}
.announcement p {
  color: #d3c6bb;
}
.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(320px, 24vw));
  gap: 22px;
}
.panel {
  border-radius: 10px;
  background: var(--panel);
  margin-bottom: 20px;
}
.panelhead {
  padding: 18px 20px;
}
.panelhead h2 {
  font-size: 20px;
}
.panel-kicker {
  color: #e5b978;
}
.board,
.topic {
  padding: 13px 18px;
  border-color: var(--line);
}
.boardicon {
  background: #2a241e;
  color: var(--accent);
  border-radius: 8px;
}
.topic-avatar {
  background: #343d4b;
  color: #e9eef5;
  border-radius: 50%;
}
.asidecard {
  padding: 20px;
}
.asidecard h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.asidecard p {
  font-size: 13px;
}
.principles {
  margin: 16px 0;
}
.principles li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.principles li > b {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: #30281f;
  border-radius: 8px;
  color: var(--accent);
  font-size: 20px;
}
.principles strong {
  font-size: 14px;
}
.principles small {
  font-size: 12px;
}
.btn {
  border-radius: 8px;
}
.btn.primary {
  background: var(--accent);
  color: #161a20;
}
@media (max-width: 1150px) {
  .aside {
    display: block;
  }
}
@media (max-width: 850px) {
  .app {
    grid-template-columns: 1fr;
  }
  .layout {
    padding-inline: 16px;
  }
  .heading {
    margin-inline: -16px;
    padding: 30px 20px;
    min-height: 225px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .aside {
    display: block;
  }
}
@media (max-width: 550px) {
  .heading {
    min-height: 230px;
    align-items: end;
    background-position: 60% center;
  }
  .heading h1 {
    font-size: clamp(27px, 8vw, 36px);
  }
  .sub {
    font-size: 14px;
  }
  .panelhead h2 {
    font-size: 18px;
  }
  .announcement {
    padding: 14px;
  }
  .announcement > a {
    padding-inline-start: 0;
  }
  .board,
  .topic {
    padding-inline: 16px;
  }
}

/* Navigation shell: clearly grouped destinations and a compact, useful header. */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 14px 18px;
  scrollbar-width: thin;
  scrollbar-color: #3f4652 transparent;
}
.sidebar-header {
  display: contents;
}
.sidebar-close {
  display: none;
}
.brand {
  padding: 0 9px 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.brandmark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
}
.sectionlabel {
  margin: 20px 12px 9px;
  color: #aab4c2;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.sidebar nav {
  display: grid;
  gap: 3px;
}
.nav {
  min-height: 43px;
  padding: 9px 12px;
  gap: 11px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.nav > span:first-child {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  color: #adb7c4;
  font-size: 18px;
}
.nav.active {
  background: #47341e;
  border: 1px solid #76542a;
  color: #fff5e3;
}
.nav.active > span:first-child {
  color: var(--accent);
}
.nav:not(.active):hover {
  background: #1a222e;
  color: #fff;
}
.sidebar-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-right: 12px;
}
.sidebar-section-heading > span {
  color: #aeb8c6;
  font-size: 11px;
  font-weight: 700;
}
.sidebottom {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 18px 10px 0;
}
.sidebottom-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2c261f;
  color: var(--accent);
  font-size: 19px;
}
.sidebottom b {
  display: block;
  font-size: 12px;
}
.sidebottom p {
  margin: 4px 0;
  color: #b6c0ce;
  line-height: 1.45;
}
.sidebottom a {
  font-size: 11px;
  min-height: 32px;
}
.topbar {
  min-height: 72px;
  gap: 22px;
  padding: 10px 28px;
  background: #0c111b;
}
.topbar-context {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #aeb8c6;
  font-size: 12px;
}
.topbar-context span:nth-child(2) {
  color: #717e8f;
}
.topbar-context strong {
  color: #f1f2f3;
  font-size: 13px;
}
.search {
  max-width: 510px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 6px 0 13px;
  background: #171e2a;
  border-color: #353d4a;
  border-radius: 9px;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.search-icon {
  font-size: 21px;
  color: #c7cfdb;
  line-height: 1;
}
.search input {
  font-size: 14px;
}
.search input:focus-visible {
  outline: none;
}
.search-submit {
  min-width: 58px;
  border-left: 1px solid #35404d;
  padding: 0 8px;
  color: #d0d8e2;
}
.auth-actions {
  margin-left: 0;
}
.auth-actions .btn {
  min-height: 42px;
  padding-inline: 14px;
}
.auth-actions form {
  margin: 0;
}
@media (max-width: 1100px) {
  .topbar-context {
    gap: 6px;
  }
  .topbar {
    gap: 12px;
    padding-inline: 20px;
  }
  .search {
    min-width: 180px;
  }
}
@media (max-width: 850px) {
  /* The closed drawer uses display: none so it leaves the accessibility tree and
     keeps its link text for audits. allow-discrete lets it slide in and out where
     supported; other browsers open and close it instantly. */
  .sidebar {
    display: none;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(-100%);
    transition:
      transform 240ms ease,
      display 240ms allow-discrete;
  }
  .sidebar.open {
    display: flex;
    transform: translateX(0);
  }
  @starting-style {
    .sidebar.open {
      transform: translateX(-100%);
    }
  }
  .topbar {
    padding-inline: 15px;
  }
  .topbar-context {
    margin-right: auto;
  }
  .search {
    margin-left: 0;
  }
  .sidebottom {
    margin-top: 24px;
  }
}
@media (max-width: 767px) {
  .sidebar {
    padding-top: 9.5px;
    padding-inline-start: 12px;
  }
  .sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-header .sidebar-close {
    /* Pin to the top so it sits where the menu button was (topbar y = 11.5px),
       whatever height the responsive brand text gives the header. */
    align-self: flex-start;
    margin-top: 2px;
    display: grid;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #111b2d;
    color: #d4af37;
  }
  .sidebar-header .brand {
    flex: 1;
    min-width: 0;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    font-size: clamp(18px, 5vw, 22px);
  }
  .sidebar-header .brand small {
    font-size: clamp(7px, 2.4vw, 9px);
    letter-spacing: 0.14em;
    white-space: nowrap;
  }
}
@media (max-width: 550px) {
  .topbar {
    gap: 8px;
    min-height: 68px;
  }
  .topbar-context {
    gap: 6px;
    font-size: 11px;
  }
  .topbar-context strong {
    font-size: 12px;
  }
  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .search input {
    font-size: 16px;
  }
  .auth-actions {
    margin-left: 0;
  }
  .auth-actions .btn {
    padding-inline: 10px;
  }
}
.notification-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #35404d;
  border-radius: 8px;
  color: #eaf0fa;
  font-size: 12px;
  font-weight: 700;
}
.notification-link:hover {
  background: #1a222e;
}
.notification-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: #f7b548;
  color: #151923;
  font-size: 11px;
}
@media (max-width: 550px) {
  .notification-link {
    padding-inline: 8px;
    font-size: 11px;
  }
}
/* Notifications remain usable with native details controls and no JavaScript. */
.notification-menu {
  position: relative;
}
.notification-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #35404d;
  border-radius: 8px;
  color: #eaf0fa;
  cursor: pointer;
  list-style: none;
}
.notification-toggle::-webkit-details-marker {
  display: none;
}
.notification-toggle:hover,
.notification-menu[open] .notification-toggle {
  background: #1a222e;
}
.notification-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid var(--side);
  border-radius: 12px;
  background: #c93535;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.notification-popover {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 32px));
  background: #141b27;
  border: 1px solid #3b4656;
  border-radius: 12px;
  box-shadow: 0 16px 36px #05080e99;
  overflow: hidden;
}
.notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  color: #f3f2ef;
}
.notification-heading span {
  color: #b1bbc9;
  font-size: 12px;
}
.notification-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notification-items a {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #29303b;
}
.notification-items a:hover {
  background: #1c2634;
}
.notification-items strong,
.notification-items small {
  display: block;
  overflow-wrap: anywhere;
}
.notification-items strong {
  font-size: 13px;
}
.notification-items small {
  margin-top: 4px;
  color: #b1bbc9;
  font-size: 12px;
  line-height: 1.4;
}
.notification-status {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}
.notification-status.unread {
  background: #e15b5b;
}
.notification-empty {
  padding: 14px 16px;
  color: #b1bbc9;
  font-size: 13px;
}
.notification-view-all {
  display: block;
  padding: 14px 16px;
  border-top: 1px solid #29303b;
  color: #f7c573;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.notification-view-all:hover {
  background: #1c2634;
}
@media (max-width: 550px) {
  .notification-popover {
    right: -48px;
  }
}
/* Clerk uses a wrapper for client-rendered controls on prerendered pages. */
.auth-actions clerk-show [data-clerk-control-slot-default]:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Compact mobile header and shared surface tokens. */
:root {
  --surface-page: #0a0e16;
  --surface-nav: #0c111b;
  --surface-card: #111722;
  --surface-input: #171e2a;
  --border-default: #29303b;
  --text-main: #f3f2ef;
  --text-secondary: #b1bbc9;
  --interactive-accent: #f7b548;
}
@media (max-width: 550px) {
  .topbar-context {
    min-width: 0;
    flex: 1;
    margin-right: 0;
    overflow: hidden;
  }
  .topbar-context span {
    display: none;
  }
  .topbar-context strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar .auth-actions {
    flex: none;
    flex-wrap: nowrap;
  }
  .topbar .search {
    margin-top: 0;
  }
}

/* Navigation remains available while reading long discussions. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .nav-label {
  width: auto;
  text-align: left;
  font-size: inherit;
}
.iconbtn {
  align-items: center;
  justify-content: center;
}
.mobilemenu {
  place-items: center;
}
@media (max-width: 850px) {
  .mobilemenu {
    display: grid;
  }
}
@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}

/* Community guidance card in the navigation drawer. */
.sidebottom {
  margin-top: 24px;
  padding: 14px 12px;
  gap: 10px;
  background: #171b22;
  border: 1px solid #39352f;
  border-radius: 12px;
}
.sidebottom-icon {
  width: 34px;
  height: 34px;
  background: #34291c;
  color: var(--accent);
}
.sidebottom > div {
  min-width: 0;
}
.sidebottom b {
  font-size: 12px;
  line-height: 1.4;
}
.sidebottom p {
  margin: 5px 0 3px;
  color: #c0c7d0;
  font-size: 12px;
}
.sidebottom a {
  min-height: 44px;
  color: #f7c573;
  font-size: 11px;
  line-height: 1.4;
}
.sidebottom a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sidebottom {
  background: #49351d;
  border-color: #76542a;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.sidebottom-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebottom-icon {
  background: #62451f;
}
.sidebottom p {
  margin: 8px 0 4px;
  color: #e3d2b8;
}
.sidebottom a {
  align-self: flex-start;
}
.text-link,
.sidebottom a,
.notification-view-all {
  gap: 6px;
}
.boardicon svg,
.board-arrow svg,
.announcement-icon svg {
  display: block;
  flex: none;
}

.notification-items form {
  margin: 0;
}
.notification-items form button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.notification-items form button:hover {
  background: #202b3a;
}
.notification-items form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.brandmark {
  background: #101621;
  transform: none;
}
.brandmark svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Keep primary actions on one row on phones. */
.search-submit-icon,
.sidebar nav.mobile-signup {
  display: none;
}
@media (max-width: 767px) {
  .topbar {
    flex-wrap: nowrap;
    min-height: 68px;
    gap: 8px;
    padding-inline: 12px;
  }
  .topbar-context {
    display: none;
  }
  .topbar .mobilemenu {
    flex: none;
    width: 44px;
    height: 44px;
  }
  .topbar .search {
    order: initial;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 10px;
  }
  .topbar .search-icon {
    display: none;
  }
  .topbar .search-submit {
    flex: none;
    min-width: 44px;
    width: 44px;
    padding: 0;
  }
  .topbar .search-submit-icon {
    display: block;
  }
  .topbar .search-submit-label {
    display: none;
  }
  .topbar .auth-actions {
    flex: none;
    gap: 5px;
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  .topbar .header-sign-up {
    display: none;
  }
  .sidebar nav.mobile-signup {
    display: grid;
    margin-top: 16px;
  }
}

/* Search and account controls collapse into accessible menus on phones. */
.search-toggle,
.mobile-account-menu,
.search-close-icon {
  display: none;
}
@media (max-width: 767px) {
  .topbar .search-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    position: relative;
    z-index: 2;
  }
  .topbar .search {
    display: none;
  }
  .topbar.search-open .search {
    display: flex;
    order: 1;
    flex: 1 1 0;
    max-width: none;
  }
  .topbar.search-open .search-toggle {
    order: 2;
    margin-left: 0;
  }
  .topbar.search-open .search-open-icon {
    display: none;
  }
  .topbar.search-open .search-close-icon {
    display: block;
  }
  .topbar .auth-actions {
    position: relative;
    z-index: 1;
  }
  .topbar.search-open .auth-actions {
    display: none;
  }
  .topbar .header-sign-in,
  .topbar .header-sign-up {
    display: none;
  }
  .topbar .mobile-account-menu {
    display: block;
    position: relative;
  }
  .mobile-account-menu summary {
    display: flex;
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
  }
  .mobile-account-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-account-menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 150px;
    padding: 6px;
    background: #171e2a;
    border: 1px solid #35404d;
    border-radius: 10px;
    box-shadow: 0 12px 30px #0008;
  }
  .mobile-account-menu nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    color: #eaf0fa;
    border-radius: 6px;
    font-weight: 650;
  }
  .mobile-account-menu nav a:hover {
    background: #263449;
  }
  .mobile-account-menu summary:focus-visible,
  .mobile-account-menu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
}

@media (max-width: 1100px) {
  .topbar-context {
    display: none;
  }
}

.topbar .search {
  position: relative;
}
.search-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-height: 70vh;
  overflow: visible;
  padding: 10px 8px 8px;
  border: 1px solid #34445a;
  border-radius: 12px;
  background: #111b2d;
  box-shadow: 0 18px 40px #000a;
}
.search-suggestions[hidden] {
  display: none;
}
.search-suggestions-heading {
  padding: 8px 10px;
  color: #aab7c8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.search-suggestion-items {
  display: grid;
  gap: 3px;
}
.search-suggestion {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  color: #eaf0fa;
}
.search-suggestion:hover,
.search-suggestion:focus-visible,
.search-suggestion[aria-selected='true'] {
  outline: none;
  background: #1b2a40;
}
.search-suggestion-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #30281e;
  color: #f7b548;
}
.search-suggestion-icon svg {
  display: block;
}
.search-suggestion-content {
  display: block;
  min-width: 0;
}
.search-suggestion-source,
.search-suggestion-title,
.search-suggestion-preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-suggestion-source {
  color: #f7c573;
  font-size: 10px;
  font-weight: 700;
}
.search-suggestion-title {
  margin-top: 2px;
  color: #f5f7fb;
  font-size: 13px;
  font-weight: 750;
}
.search-suggestion-title mark {
  border-radius: 2px;
  background: #62451f;
  color: #ffe0a2;
}
.search-suggestion-preview {
  margin-top: 2px;
  color: #9eacbf;
  font-size: 11px;
}
.search-suggestion-arrow {
  color: #8594a8;
  font-size: 17px;
  text-align: center;
  transition:
    color 120ms ease,
    transform 120ms ease;
}
.search-suggestion:hover .search-suggestion-arrow,
.search-suggestion:focus-visible .search-suggestion-arrow,
.search-suggestion[aria-selected='true'] .search-suggestion-arrow {
  color: #f7c573;
  transform: translateX(2px);
}
.search-suggestions-empty {
  margin: 0;
  padding: 14px 10px;
  color: #b7c2d0;
  font-size: 12px;
}
.search-suggestions-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-top: 4px;
  padding: 8px 10px;
  border-top: 1px solid #29384b;
  border-radius: 0 0 8px 8px;
  color: #f7c573;
  font-size: 12px;
  font-weight: 700;
}
.search-suggestions-all:hover,
.search-suggestions-all:focus-visible {
  outline: none;
  background: #1b2a40;
}
.search-suggestions-all[hidden] {
  display: none;
}
@media (max-width: 767px) {
  .topbar .search {
    position: static;
  }
  .search-suggestions {
    top: calc(100% + 6px);
    left: 12px;
    right: 12px;
    width: auto;
  }
}
