/* Board-only treatment. Shared navigation, news and other tools keep their layout. */
.lounge-page, .lounge-active {
  --board-line: #263b50;
  --board-muted: #a9b9ce;
  --board-mint: #69dfcf;
  background: #0b1424;
}
.embed .lounge-page { background: #0b1424; }
.lounge-page .bg-glow, .lounge-active .bg-glow { display: none; }
.lounge-active .topbar { background: #0b1424ee; border-color: #213044; }
.lounge-active .panel-title span { color: #c8d7e8; }
.lounge-active .panel-wrap { padding-top: 24px; }
.lounge-active .lounge-frame { border-radius: 0; }
.lounge-active .story-teaser {
  margin-top: 24px;
  margin-bottom: 0;
  background: #111d2f;
  border-color: #263b50;
}
.lounge-page .board-shell {
  padding: 0 0 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.lounge-page .member-write-gate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 16px 0;
  padding: 12px 16px;
  border: 1px solid var(--board-line);
  border-radius: 10px;
  background: #101e30;
}
.lounge-page .member-write-gate p { flex: 1 1 260px; margin: 0; color: #c4d4e4; font-size: 13px; line-height: 1.7; }
.lounge-page .member-write-gate .button { min-height: 44px; padding: 8px; border: 0; background: transparent; color: #9ae8dd; box-shadow: none; font-size: 13px; }
.lounge-page #editorView .board-filter-actions:has(#draftStatus:empty):has(#clearDraft[hidden]) { display: none; }
.lounge-page #editorView #clearDraft { min-height: 44px; }
.lounge-page .board-hero {
  position: relative;
  isolation: isolate;
  min-height: 176px;
  padding: 28px 32px;
  gap: 20px;
  border: 1px solid #2c495f;
  border-radius: 18px;
  background: #0b1a2c;
}
.board-hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.board-hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.lounge-page .board-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, #081627d9, #08162740 65%, #0816278c);
  pointer-events: none;
}
.board-hero-copy { min-width: 0; }
.board-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: #b6dfdd;
}
.lounge-page .board-hero h1 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 8px; color: #f2f6fb; }
.lounge-page .board-hero p { color: #c3d1e2; font-size: 14px; line-height: 1.7; word-break: keep-all; }
.lounge-page .board-heading-actions { flex-shrink: 0; gap: 10px; }
.lounge-page .button { gap: 8px; border-color: #33485e; border-radius: 10px; }
.lounge-page .button.primary { border-color: #69dfcf; background: #69dfcf; color: #092a2c; }
.lounge-page .button.primary:hover { background: #8ce9db; border-color: #8ce9db; }
.lounge-page .board-hero .button { min-height: 46px; padding-inline: 20px; }
.lounge-page .board-hero .button.subtle { background: #0b1c30cf; border-color: #496077; }
.lounge-page .board-hero .button.subtle:hover { background: #1b3148; }
.lounge-page .pinned-posts {
  margin: 20px 0 0;
  padding-inline: 16px;
  background: #211d36;
  border-color: #51406b;
  border-radius: 12px;
}
.lounge-page .pinned-row { gap: 12px; min-height: 52px; font-weight: 500; }
.lounge-page .pinned-row + .pinned-row { border-color: #443654; }
.lounge-page .pinned-row .pin-title { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.lounge-page .pin-badge { background: #493366; border: 1px solid #795a9e; border-radius: 7px; color: #e5c9ff; font-weight: 650; }
.lounge-page .pin-arrow { color: #c1a7df; }
.board-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.lounge-page .board-filters { flex: 1; margin: 0; gap: 12px; }
.lounge-page .board-filter-label { white-space: nowrap; color: #e0e8f2; }
.lounge-page .board-filter-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: #69dfcf;
}
.lounge-page .board-search { flex: 0 1 390px; width: 100%; max-width: none; margin: 0; gap: 6px; }
.lounge-page .board-search input { background: #111f32; border-color: #33485e; font-size: 14px; padding: 10px 12px; }
.lounge-page .board-search .button { padding-inline: 14px; background: #1a2b3e; }
.lounge-page .list-toolbar { margin: 16px 2px 8px; }
.lounge-page #postList { background: #101d2f; border: 1px solid #263b50; border-radius: 14px; }
.lounge-page [data-board-category] {
  --category-text: #a4eee3;
  --category-fill: #173e43;
  --category-line: #286368;
}
.lounge-page [data-board-category='ask'] {
  --category-text: #b8d6ff;
  --category-fill: #223c61;
  --category-line: #456a9c;
}
.lounge-page [data-board-category='report'] {
  --category-text: #c9e8a9;
  --category-fill: #293f31;
  --category-line: #526e46;
}
.lounge-page [data-board-category='gear'] {
  --category-text: #f3d39b;
  --category-fill: #463828;
  --category-line: #786142;
}
.lounge-page [data-board-category='live'] {
  --category-text: #a9e4f3;
  --category-fill: #193e51;
  --category-line: #376b83;
}
.lounge-page [data-board-category='notice'] {
  --category-line: #795a9e;
  --category-row: #211d36;
  --category-hover: #2f2647;
}
.lounge-page .board-row {
  min-height: 58px;
  padding: 9px 16px;
  border-color: #293e50;
  background: var(--category-row, #101d2f);
}
.lounge-page .board-row[data-board-category='notice'] { box-shadow: inset 3px 0 var(--category-line); }
.lounge-page .board-row:first-child { border-top: 0; }
.lounge-page .board-row:last-child { border-bottom: 0; }
.lounge-page .board-row:hover, .lounge-page .board-row:focus-within { background: var(--category-hover, #15263b); }
.lounge-page .board-row:first-child { border-radius: 13px 13px 0 0; }
.lounge-page .board-row:last-child { border-radius: 0 0 13px 13px; }
.lounge-page .board-row:only-child { border-radius: 13px; }
.lounge-page .row-main { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 12px; }
.lounge-page .row-category { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lounge-page .row-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 16px; font-weight: 600; line-height: 1.6; white-space: normal; overflow: hidden; }
.lounge-page .row-meta { align-items: center; }
.lounge-page .comment-count { min-height: 44px; min-width: 40px; justify-content: center; }
.lounge-page .board-empty { margin: 0; padding: 32px 20px 36px; border: 0; background: #101d2f; border-radius: 14px; }
.lounge-page .board-empty h2 { margin-bottom: 10px; font-size: 22px; }
.lounge-page .board-empty p { max-width: 440px; margin: 0 auto 22px; color: #a9b9ce; word-break: keep-all; }
.lounge-page .empty-actions .primary { min-width: 140px; }
.lounge-page .board-bottom { margin-top: 16px; }
.lounge-page .board-bottom:has(#writeBottom[hidden]) { display: none; }
.lounge-page #detailView, .lounge-page #editorView {
  padding: 28px 32px;
  background: #101d2f;
  border: 1px solid #263b50;
  border-radius: 16px;
}
.embed .lounge-page .board-shell { padding: 0; min-height: 0; }
.lounge-page .site-footer, .lounge-active .site-footer { border-top-color: #213044; }
@media (max-width: 1100px) {
  .lounge-page .row-main { grid-template-columns: 88px minmax(0, 1fr); gap: 4px 12px; }
  .lounge-page .row-category { grid-row: 1 / 3; }
  .lounge-page .row-meta { grid-column: 2; }
}
@media (max-width: 860px) {
  .lounge-active .panel-wrap { padding: 16px 18px 36px; }
  .lounge-page .board-hero { min-height: 164px; padding: 24px; }
  .lounge-page .board-controls { gap: 8px 20px; }
  .lounge-page .board-search { flex-basis: 100%; }
  .lounge-page .board-search input { font-size: 16px; }
  .lounge-page .board-filters { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .lounge-page .orbit-page-content > .board-shell { margin-inline: 16px; }
  .embed .lounge-page .orbit-page-content > .board-shell { margin: 0; width: 100%; }
  .lounge-active .panel-wrap { padding-inline: 16px; }
  .lounge-active .topbar { padding: 12px 16px; }
  .lounge-active .panel-title { font-size: 16px; }
  .lounge-page .board-hero { padding: 22px 20px; gap: 18px; min-height: 0; border-radius: 14px; }
  .lounge-page .board-heading-actions { flex: 1 0 100%; justify-content: flex-start; }
  .lounge-page .board-hero .button { min-height: 44px; padding-inline: 18px; }
  .board-eyebrow { font-size: 9px; margin-bottom: 8px; letter-spacing: 0.16em; }
  .lounge-page .board-hero h1 { font-size: 28px; }
  .lounge-page .board-hero p { font-size: 13px; }
  .board-hero-sky img { object-position: 25% 10%; }
  .lounge-page .board-hero::after { background: linear-gradient(100deg, #081627c9, #08162759); }
  .lounge-page .pinned-posts { margin-top: 16px; padding-inline: 12px; }
  .lounge-page .pinned-row { gap: 8px; font-size: 13px; }
  .lounge-page .pinned-row .view-count { font-size: 11px; }
  .board-controls { margin-top: 16px; }
  .lounge-page .board-row { padding: 12px 14px; align-items: center; gap: 8px; }
  .lounge-page .row-main { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lounge-page .row-category { grid-row: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; font-size: 11px; }
  .lounge-page .row-title { line-height: 1.6; font-size: 16px; }
  .lounge-page .row-meta { grid-column: 1; font-size: 11px; }
  .lounge-page .row-side { flex-direction: column; gap: 2px; }
  .lounge-page .board-empty { padding: 26px 16px 30px; }
  .lounge-page .board-empty h2 { font-size: 20px; }
  .lounge-page .board-empty p { font-size: 13px; }
  .lounge-page #detailView, .lounge-page #editorView { padding: 20px 16px; }
}
@media (forced-colors: active) {
  .board-hero-sky, .lounge-page .board-hero::after { display: none; }
}

/* Community first: a quiet sky above a compact, readable conversation board. */
.lounge-page { --board-line: #253648; --board-muted: #a6b6c8; color: #eef1ef; }
.lounge-page .orbit-page-layout { display: block; max-width: 1440px; }
.lounge-page .orbit-navigation {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 28px; width: 100%; height: auto; position: relative;
  padding: 12px 32px; border: 0; border-bottom: 1px solid #253648;
  background: #0b1424; overflow: visible; backdrop-filter: none;
}
.lounge-page .side-logo { padding: 0; font-size: 1.75rem; }
.lounge-page .side-nav { display: flex; flex-direction: row; gap: 4px; min-width: 0; }
.lounge-page .nav-item { width: auto; padding: 12px 10px; border-radius: 0; white-space: nowrap; font-size: 0.875rem; }
.lounge-page .nav-item .ic { display: none; }
.lounge-page .nav-item.on { background: transparent; box-shadow: inset 0 -2px #69dfcf; }
.lounge-page .nav-toggle, .lounge-page .nav-scrim { display: none; }
.lounge-page .board-account-actions { display: flex; gap: 12px; margin: 0; white-space: nowrap; }
.lounge-page .board-account-actions a { min-height: 44px; display: inline-flex; align-items: center; font-size: 0.875rem; }
.lounge-page .board-account-actions .account-signup-link { padding: 8px 14px; border: 1px solid #4c9d96; border-radius: 6px; color: #a4eee3; text-decoration: none; }
.lounge-page .orbit-page-content > .board-shell { margin: 24px 32px 0; }
.community-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.community-board, .community-sidebar { min-width: 0; }
.lounge-page .board-hero { min-height: 120px; padding: 22px 24px; gap: 16px; border-radius: 8px; border-color: #30465b; }
.lounge-page .board-hero h1 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 7px; }
.lounge-page .board-hero p { font-size: 0.875rem; line-height: 1.5; }
.board-hero-sky img { object-position: center 38%; }
.lounge-page .board-hero .button { min-height: 40px; padding: 8px 14px; }
.lounge-page .button { border-radius: 6px; }
.lounge-page .board-heading-actions { gap: 8px; }
.lounge-page .board-controls { margin-top: 16px; gap: 8px 16px; }
.lounge-page .board-filters { flex-basis: auto; gap: 8px 14px; }
.lounge-page .board-filter-label::before { display: none; }
.lounge-page .board-search { flex: 0 1 300px; }
.lounge-page .board-search input { padding: 7px 10px; min-width: 0; }
.lounge-page .board-search .button { padding: 7px 12px; }
.lounge-page .list-toolbar { margin: 8px 0 4px; }
.lounge-page .pinned-posts { margin-top: 12px; padding-inline: 12px; border-radius: 6px; }
.lounge-page .pinned-row { min-height: 42px; padding-block: 5px; }
.lounge-page #postList { border-radius: 6px; overflow: hidden; background: #0f1b2b; }
.lounge-page .board-row { min-height: 48px; padding: 3px 12px; gap: 8px; background: var(--category-row, #0f1b2b); border-radius: 0; }
.lounge-page .row-main { grid-template-columns: 76px minmax(0, 1fr); gap: 0 10px; }
.lounge-page .row-category { grid-row: 1 / 3; gap: 2px; }
.lounge-page .row-title { font-size: 1rem; font-weight: 500; line-height: 1.45; -webkit-line-clamp: 1; }
.lounge-page .row-meta { grid-column: 2; font-size: 0.75rem; line-height: 1.6; gap: 5px; }
.lounge-page .board-category-chip { min-width: 64px; min-height: 24px; padding: 2px 7px; border-radius: 4px; font-size: 0.75rem; }
.lounge-page .row-side { flex-direction: row; gap: 4px; }
.lounge-page .comment-count { min-height: 40px; min-width: 36px; font-size: 0.8125rem; }
.lounge-page .board-bottom { margin-top: 12px; }
.lounge-page .bottom-write { margin-top: 12px; }
.lounge-page #detailView, .lounge-page #editorView { max-width: 1040px; margin: 0 auto; padding: 20px 28px; border-radius: 8px; }
.lounge-page .comments-section { padding-top: 8px; }
.lounge-page .comment-item { padding: 5px 0; gap: 0 8px; }
.lounge-page .comment-meta { min-height: 24px; }
.lounge-page .comment-body { grid-column: 1; font-size: 1rem; line-height: 1.5; }
.lounge-page .comment-actions { grid-row: 1 / 3; align-self: center; gap: 0; }
.lounge-page .comment-actions button { min-height: 40px; padding: 4px; }
.lounge-page .comment-form { margin-top: 12px; }
.lounge-page .comment-form textarea { min-height: 68px; }
.lounge-page .comment-item:target, .lounge-page .comment-item[data-comment-target] { background: #183438; box-shadow: inset 3px 0 #69dfcf; padding-inline: 10px; }
.community-sidebar { border-left: 1px solid var(--board-line); padding-left: 24px; }
.community-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--board-line); }
.community-tabs button { background: transparent; color: #a6b6c8; border: 0; border-bottom: 2px solid transparent; padding: 10px 0 12px; min-height: 44px; font-size: 0.9375rem; font-weight: 650; white-space: nowrap; }
.community-tabs button[aria-selected='true'] { color: #8ce9db; border-bottom-color: #69dfcf; }
.community-timeline { padding: 4px 0; }
.community-conversation { position: relative; padding: 16px 0 16px 17px; border-bottom: 1px solid #203044; }
.community-conversation::before { content: ''; position: absolute; left: 1px; top: 26px; width: 5px; height: 5px; border-radius: 50%; background: #6c8b99; }
.community-person { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; font-size: 0.8125rem; color: #c7d4de; }
.community-person time { font-size: 0.75rem; color: var(--board-muted); }
.community-link { display: block; margin-top: 5px; text-decoration: none; }
.community-link:hover .community-excerpt { color: #8ce9db; }
.community-excerpt { margin: 0; color: #edf1f2; font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.community-post-title { display: block; margin-top: 5px; font-size: 0.8125rem; line-height: 1.5; color: var(--board-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-state { padding: 22px 0; margin: 0; color: var(--board-muted); font-size: 0.875rem; line-height: 1.7; }
.community-refresh { display: block; margin-left: auto; font-size: 0.875rem; }
.community-photo { display: block; margin: 16px 0; text-decoration: none; }
.community-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; background: #152437; }
.community-photo-title { display: block; font-size: 1rem; line-height: 1.5; margin: 8px 0 2px; overflow-wrap: anywhere; }
.community-photo-error { display: block; padding: 20px 12px; color: #a6b6c8; background: #152437; font-size: 0.875rem; }
.lounge-page .community-sidebar .news-brief { margin: 22px 0 0; padding: 16px 0; border: 0; border-top: 1px solid #253648; border-radius: 0; background: transparent; }
.lounge-page .board-empty p, .lounge-page .member-write-gate p { font-size: 1rem; }
.lounge-page .board-empty { border-radius: 0; }
.embed .lounge-page .orbit-navigation { display: none; }
.embed .lounge-page .orbit-page-content > .board-shell { margin: 0; }
@media (min-width: 1280px) {
  .lounge-page .row-main { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .lounge-page .row-category { grid-row: auto; }
  .lounge-page .row-meta { grid-column: auto; gap: 6px; }
  .lounge-page .row-meta .view-count { display: none; }
  .lounge-page .row-title { line-height: 1.6; }
}
@media (max-width: 1100px) {
  .lounge-page .orbit-navigation { gap: 18px; padding-inline: 24px; }
  .lounge-page .nav-item { padding-inline: 7px; }
  .community-grid { gap: 20px; grid-template-columns: minmax(0, 1fr) 260px; }
  .community-sidebar { padding-left: 18px; }
  .lounge-page .board-heading-actions { flex: 0 0 auto; }
  .lounge-page .board-hero { padding: 18px; }
  .lounge-page .board-hero h1 { font-size: 1.5625rem; }
  .lounge-page .board-search { flex-basis: 100%; }
}
@media (max-width: 860px) {
  .lounge-page .orbit-navigation { grid-template-columns: 1fr auto; gap: 0 16px; padding: 10px 18px 0; }
  .lounge-page .side-logo { font-size: 1.625rem; }
  .lounge-page .board-account-actions { grid-row: 1; grid-column: 2; gap: 12px; }
  .lounge-page .sidebar.enhanced .side-nav, .lounge-page .side-nav {
    grid-row: 2; grid-column: 1 / -1; position: static; display: flex; flex-direction: row;
    width: 100%; max-height: none; padding: 0; margin: 6px 0 0; gap: 8px;
    overflow-x: auto; overscroll-behavior-x: contain; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; opacity: 1; visibility: visible;
    pointer-events: auto; transform: none; backdrop-filter: none;
  }
  .lounge-page .nav-item { flex: 0 0 auto; padding: 12px 8px; font-size: 0.875rem; }
  .lounge-page .orbit-page-content > .board-shell { margin: 16px 18px 0; }
  .community-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .community-sidebar { border-left: 0; border-top: 1px solid var(--board-line); padding: 0; }
  .community-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .lounge-page .board-search { flex: 0 1 300px; }
  .lounge-page .board-hero { min-height: 112px; padding: 18px 20px; }
  .lounge-page .board-heading-actions { flex: 0 0 auto; }
  .lounge-page .row-main { grid-template-columns: 68px minmax(0, 1fr); gap: 0 8px; }
  .lounge-page .row-category { grid-row: 1 / 3; flex-direction: column; }
  .lounge-page .row-meta { grid-column: 2; }
}
@media (max-width: 600px) {
  .lounge-page .orbit-page-content > .board-shell { margin: 12px 12px 0; }
  .lounge-page .orbit-navigation { padding-inline: 12px; }
  .lounge-page .board-hero { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .lounge-page .board-hero h1 { font-size: 1.5625rem; }
  .lounge-page .board-heading-actions { flex-basis: 100%; }
  .lounge-page .board-hero .button { min-height: 44px; }
  .lounge-page .board-search { flex-basis: 100%; }
  .lounge-page .board-row { padding: 5px 8px; }
  .lounge-page .row-main { grid-template-columns: 58px minmax(0, 1fr); gap: 0 7px; }
  .lounge-page .board-category-chip { min-width: 0; width: 58px; padding-inline: 3px; }
  .lounge-page .row-meta { font-size: 0.75rem; gap: 3px; }
  .lounge-page .row-meta > span:first-child { max-width: 78px; }
  .lounge-page .row-title { font-size: 1rem; line-height: 1.5; }
  .lounge-page .comment-count { min-width: 28px; min-height: 44px; gap: 3px; }
  .lounge-page .comment-count svg { width: 14px; }
  .lounge-page #detailView, .lounge-page #editorView { padding: 14px 12px; }
  .lounge-page .comment-actions button { min-height: 44px; }
  .lounge-page .comment-meta { gap: 0 6px; }
  .lounge-page .detail-title { font-size: 1.5rem; }
  .community-photos { gap: 12px; }
}
@media (max-width: 860px) {
  .lounge-page .row-meta { flex-wrap: nowrap; overflow: hidden; }
  .lounge-page .row-meta .view-count { display: none; }
  .lounge-page .row-meta > span:first-child { min-width: 0; flex-shrink: 1; }
  .lounge-page .row-meta time { white-space: nowrap; flex-shrink: 0; }
}
.lounge-page .community-sidebar .news-brief-viewport { box-sizing: border-box; margin: 0; }
.embed .lounge-page .orbit-page-layout { display: contents; }
.lounge-page .board-hero .button { min-height: 44px; }
