/* =========================================================
   ELMWOOD CHICAGO — UI.X / iO Dark Style (thelandsrp.com)
   ========================================================= */

:root {
  --bg-page: #292e39;
  --bg-surface: #313742;
  --bg-surface-hover: #3b414b;
  --bg-footer-bottom: #3f454f;
  --border-subtle: #4d5460;

  --accent-primary: #4080ff;
  --accent-primary-hover: #97baff;
  --accent-grad: linear-gradient(-270deg, #4080ff 0%, #0051f3 100%);
  --welcome-grad: linear-gradient(to right, #40c0ff, #4080ff);
  --cat-grad-1: linear-gradient(to left, #7299e6, #8572e6);
  --btn-grad: linear-gradient(#4080ff, #0d5eff);
  --btn-grad-hover: linear-gradient(#266fff, #0051f3);

  --text-primary: #e0e6f0;
  --text-secondary: #bdc6db;
  --text-muted: #959fb4;

  --card-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 13px;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-primary-hover);
}

.p-pageWrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================================================
   Sticky UI.X / iO Dark Navbar (65px)
   ========================================================= */
.p-navSticky {
  position: sticky;
  top: 0;
  z-index: 400;
  background: var(--bg-surface);
  box-shadow: var(--card-shadow);
}

.p-nav {
  width: 100%;
}

.p-nav-inner {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.p-nav-menuTrigger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 6px 10px;
  cursor: pointer;
}

.p-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.p-nav-brand img {
  height: 38px;
  width: auto;
  display: block;
}

.p-nav-brand span {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.focus-wrap-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.p-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
}

.p-nav-list > li {
  font-size: 13px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.p-navEl {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  text-transform: uppercase;
  font-weight: 400;
}

.p-navEl::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--border-subtle);
  transition: right 0.2s ease-in;
}

.p-navEl:hover::after {
  right: 0;
}

.p-navEl.is-selected {
  font-weight: 700;
}

.p-navEl.is-selected::after {
  right: 0;
  background: var(--accent-grad);
}

.p-navEl-link {
  color: var(--text-muted);
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.p-navEl:hover .p-navEl-link {
  color: var(--text-primary);
}

.p-navEl.is-selected .p-navEl-link {
  color: var(--accent-primary);
}

.p-navEl-link i {
  font-size: 16px;
}

.p-navEl-splitTrigger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0 8px 0 0;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 10px;
}

.p-navEl-splitTrigger:hover {
  color: var(--text-primary);
}

/* Nav Dropdown */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 195px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--card-shadow);
  padding: 6px 0;
  z-index: 450;
}

.p-nav-list > li.is-open .menu-dropdown,
.p-nav-list > li:hover .menu-dropdown {
  display: block;
}

.menu-linkRow {
  display: block;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 12px;
  text-transform: none;
  font-weight: 400;
  white-space: nowrap;
}

.menu-linkRow:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-primary);
}

/* Inline Search */
.focus-wrap-search {
  flex: 1;
  max-width: 240px;
  margin-left: auto;
}

.focus-search {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  height: 34px;
  padding: 0 10px;
}

.focus-search:focus-within {
  border-color: var(--accent-primary);
}

.focus-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12px;
  min-width: 0;
}

.focus-search input::placeholder {
  color: var(--text-muted);
}

.focus-search button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
}

/* Right User Controls */
.focus-wrap-user {
  display: flex;
  align-items: center;
}

.p-nav-opposite {
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-navgroup-link {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  background: transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.p-navgroup-link:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.p-navgroup-link--register {
  background: var(--btn-grad);
  color: #fff;
  box-shadow: var(--card-shadow);
}

.p-navgroup-link--register:hover {
  background: var(--btn-grad-hover);
  color: #fff;
}

.p-discovery-search {
  display: none;
}

/* Sub-nav */
.p-sectionLinks {
  background: var(--bg-surface-hover);
  border-top: 1px solid var(--border-subtle);
}

.p-sectionLinks-inner {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 38px;
  font-size: 12px;
  overflow-x: auto;
}

.p-sectionLinks-inner a {
  color: var(--text-secondary);
  white-space: nowrap;
}

.p-sectionLinks-inner a:hover,
.p-sectionLinks-inner a.is-active {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Hide separate hero header on desktop like thelandsrp.com */
.p-header {
  display: none;
}

/* =========================================================
   Main Body Container (1200px UI.X)
   ========================================================= */
.p-body {
  flex: 1;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 20px auto 28px;
  animation: macroAnimation 0.15s ease 0.1s backwards;
}

@keyframes macroAnimation {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Welcome Section (thelandsrp.com Cyan -> Blue Gradient) */
.notices--block {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.notice--primary {
  background: var(--welcome-grad);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  box-shadow: var(--card-shadow);
}

.notice--primary h2 {
  margin: 0 0 6px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.notice--primary p {
  margin: 0 0 18px;
  max-width: 720px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.notice-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notice--primary .button--primary {
  background: #fff;
  color: var(--accent-primary);
  box-shadow: none;
  font-weight: 700;
}

.notice--primary .button--primary:hover {
  background: #f1f5f9;
  color: #0051f3;
}

.notice--primary .button--welcome-ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.notice--primary .button--welcome-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(105, 155, 255, 0.15);
  background: rgba(64, 128, 255, 0.12);
  color: var(--accent-primary);
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.3;
}

.button:hover {
  background: rgba(64, 128, 255, 0.2);
  color: var(--accent-primary-hover);
}

.button--primary {
  background: var(--btn-grad);
  color: #fff;
  border: none;
  box-shadow: var(--card-shadow);
}

.button--primary:hover {
  background: var(--btn-grad-hover);
  color: #fff;
}

.button--discord {
  background: #5865f2;
  border-color: #4752c4;
  color: #fff;
  font-weight: 600;
}

.button--discord:hover {
  background: #4752c4;
  color: #fff;
}

.button--dark {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.button--dark:hover {
  background: var(--bg-surface-hover);
  color: #fff;
}

/* Breadcrumbs */
.focus-breadcrumb {
  margin-bottom: 12px;
}

.p-breadcrumbs-wrap {
  padding: 4px 0;
  color: var(--text-muted);
}

.p-breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.p-breadcrumbs > li {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-breadcrumbs > li + li::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  color: var(--text-muted);
}

.p-breadcrumbs a {
  color: var(--text-secondary);
}

.p-breadcrumbs a:hover {
  color: var(--accent-primary);
}

/* Page Header */
.p-body-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.p-title-value {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Main Content + Sidebar Grid (930px + 250px, 20px gap) */
.p-body-main--withSidebar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.p-body-content {
  flex: 1;
  min-width: 0;
}

.p-body-sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: macroAnimation 0.15s ease 0.25s backwards;
}

/* Category & Content Blocks */
.block {
  margin-bottom: 18px;
}

.p-body-sidebar .block {
  margin-bottom: 0;
}

.block-container {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Sidebar uses transparent container so minorHeader sits outside the card */
.p-body-sidebar .block-container {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.p-body-sidebar .block-body {
  background: var(--bg-surface);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.block-header {
  margin: 0;
  background: var(--cat-grad-1);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: 15px 16px;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.block-header a {
  color: #fff;
}

.block-minorHeader {
  margin: 0;
  padding: 6px 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-minorHeader a {
  color: var(--text-secondary);
}

.block-minorHeader a:hover {
  color: var(--accent-primary);
}

.block-body {
  padding: 0;
}

.block-row {
  padding: 10px 14px;
}

.block-row + .block-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.block-footer {
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-muted);
}

/* Forum Node List */
.node-list {
  display: flex;
  flex-direction: column;
}

.node {
  display: grid;
  grid-template-columns: 52px 1fr 145px 260px;
  align-items: center;
  padding: 15px 16px;
  gap: 10px;
  background: var(--bg-surface);
  transition: all cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.node:hover {
  background: var(--bg-surface-hover);
}

.node-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.node--unread .node-icon {
  color: var(--accent-primary);
}

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

.node-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.node-title a {
  color: var(--text-primary);
}

.node-title a:hover {
  color: #8572e6;
}

.node--unread .node-title::after {
  content: 'New';
  background: var(--accent-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.node-description {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.node-stats {
  display: flex;
  font-size: 12px;
  text-align: center;
}

.node-stats dl {
  margin: 0;
  flex: 1;
  padding: 0 8px;
}

.node-stats dl + dl {
  border-left: 1px solid var(--border-subtle);
}

.node-stats dt {
  color: var(--text-muted);
  font-size: 12px;
}

.node-stats dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.node-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
}

.node-extra-row {
  min-width: 0;
  flex: 1;
}

.node-extra-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--text-primary);
}

.node-extra-meta {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-extra-none {
  color: var(--text-muted);
  font-style: italic;
}

/* Grid Layout Mode */
body.focus-grid-layout .node-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 14px;
}

body.focus-grid-layout .node {
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto auto;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  align-items: start;
}

body.focus-grid-layout .node-stats,
body.focus-grid-layout .node-extra {
  grid-column: 1 / -1;
  justify-content: flex-start;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

/* Avatars */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
}

.avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.avatar--lg {
  width: 50px;
  height: 50px;
  font-size: 18px;
}

/* Sidebar Rows */
.contentRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contentRow-main {
  min-width: 0;
  flex: 1;
}

.contentRow-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contentRow-minor {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.pairs {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 5px 0;
  font-size: 12px;
}

.pairs dt {
  color: var(--text-muted);
}

.pairs dd {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

/* Role Banners */
.userBanner {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fafafa;
  line-height: 1.3;
  text-transform: uppercase;
}

.userBanner--staff-owner { background: #870000; }
.userBanner--staff-director { background: #1864ab; }
.userBanner--staff-faction-management { background: #5e81ac; }
.userBanner--whitelisted { background: #2b8a3e; }

/* =========================================================
   Subpages
   ========================================================= */
.structItem {
  display: grid;
  grid-template-columns: 44px 1fr 110px 180px;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
}

.structItem + .structItem {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.structItem:hover {
  background: var(--bg-surface-hover);
}

.structItem-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.structItem-minor {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.filterBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  gap: 10px;
  flex-wrap: wrap;
}

.message-inner {
  display: flex;
}

.message-user {
  width: 175px;
  flex-shrink: 0;
  padding: 18px 12px;
  background: rgba(0, 0, 0, 0.14);
  border-right: 1px solid var(--border-subtle);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.message-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.message-main {
  flex: 1;
  min-width: 0;
  padding: 16px 20px;
}

.message-attribution {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.14);
  overflow-x: auto;
}

.tabs-tab {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tabs-tab:hover {
  color: var(--text-primary);
}

.tabs-tab.is-active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* Forms */
.formRow {
  margin-bottom: 14px;
}

.formRow label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.formRow .explain {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.input {
  width: 100%;
  padding: 9px 11px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.input:focus {
  border-color: var(--accent-primary);
}

.inputGroup {
  display: flex;
  align-items: stretch;
}

.inputGroup .input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.inputGroup-btn {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-left: none;
  color: var(--text-primary);
  padding: 0 12px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 12px;
}

/* =========================================================
   UI.X Extended Footer & Bottom Bar (thelandsrp.com)
   ========================================================= */
.p-footer {
  margin-top: auto;
  width: 100%;
  animation: macroAnimation 0.15s ease 0.35s backwards;
}

.p-footer-inner {
  background: var(--bg-surface);
  border-top: 4px solid transparent;
  border-image: var(--accent-grad) 1;
  color: var(--text-secondary);
  font-size: 12px;
}

.focus-footer {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 44px 0;
}

.focus-footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.focus-footer p {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.focus-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.focus-footer-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.focus-footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: var(--text-secondary);
  font-weight: 500;
}

.focus-footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom-wrap {
  background: var(--bg-footer-bottom);
  padding: 14px 0;
}

.p-footer-row {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-style-pill {
  border: 2px solid var(--border-subtle);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
}

.footer-style-pill:hover {
  background: var(--border-subtle);
  color: #fff;
}

.p-footer-linkList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.p-footer-linkList a {
  color: var(--text-primary);
}

.p-footer-linkList a:hover {
  color: var(--accent-primary);
}

.p-footer-rss {
  background: #ffa500;
  color: #fff !important;
  padding: 3px 7px;
  border-radius: 3px;
  font-size: 11px;
}

/* =========================================================
   Modals & Theme Editor Drawer
   ========================================================= */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 30, 0.72);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay-backdrop.is-open {
  display: flex;
}

.overlay {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.overlay-title {
  background: var(--cat-grad-1);
  color: #fff;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  cursor: pointer;
}

.overlay-close:hover {
  color: #fff;
}

.overlay-content {
  padding: 18px;
}

.divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  margin: 14px 0;
  text-transform: uppercase;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.divider-or::before { margin-right: 10px; }
.divider-or::after { margin-left: 10px; }

.xenfocus-editor-drawer {
  position: fixed;
  top: 65px;
  right: -340px;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-bottom-left-radius: 8px;
  box-shadow: var(--card-shadow);
  z-index: 450;
  transition: right 0.22s ease;
  color: var(--text-primary);
}

.xenfocus-editor-drawer.is-open {
  right: 0;
}

.editor-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.editor-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-primary);
}

.editor-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.editor-toggle strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
}

.editor-toggle small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

/* Floating Scroll Button */
.u-scrollTop {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--btn-grad);
  color: #fff;
  border: none;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 350;
}

.u-scrollTop:hover {
  background: var(--btn-grad-hover);
}

/* Mobile Drawer & Bottom Bar */
.offCanvasMenu {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
}

.offCanvasMenu.is-open {
  display: block;
}

.offCanvasMenu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.offCanvasMenu-content {
  position: relative;
  width: 260px;
  height: 100%;
  background: var(--bg-surface);
  padding: 16px;
  overflow-y: auto;
}

.focus-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  z-index: 120;
  justify-content: space-around;
  align-items: center;
}

.focus-mobile-nav a {
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1050px) {
  .focus-wrap-search { display: none; }
  .p-discovery-search { display: inline-flex; }
}

@media (max-width: 900px) {
  .p-body, .p-nav-inner, .p-sectionLinks-inner, .focus-footer, .p-footer-row {
    width: calc(100% - 20px);
  }
  .p-body-main--withSidebar { flex-direction: column; }
  .p-body-sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
  .node { grid-template-columns: 42px 1fr; }
  .node-stats, .node-extra {
    grid-column: 2 / -1;
    justify-content: flex-start;
    text-align: left;
  }
  .structItem { grid-template-columns: 36px 1fr; }
  .message-inner { flex-direction: column; }
  .message-user {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .p-nav-menuTrigger { display: inline-flex; }
  .focus-wrap-nav { display: none; }
  .focus-footer { grid-template-columns: 1fr; padding: 28px 0; }
  .focus-mobile-nav { display: flex; }
  body { padding-bottom: 54px; }
  .notice--primary h2 { font-size: 26px; }
}
