@charset "UTF-8";
/* ============================================================
   AgilePoint Help Center — Dark Theme (v2.0)
   Aligned to www.agilepoint.com marketing aesthetic.
   All colors come from manifest.json {{settings.*}} tokens.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #2DD4BF;
  /* fallback; real tokens below */
  --bg: #0B0D0F;
  --bg-2: #0E1114;
  --surface: #14181C;
  --surface-2: #1A1F24;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F4F7FA;
  --text-muted: #9AA4AF;
  --text-faint: #6B7178;
  --accent: #2DD4BF;
  --accent-ink: #04201C;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --mono: "Roboto Mono", "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text-muted);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* body>main {
  padding-bottom: 120px;
} */

/* Constrain bare text/elements injected directly into main by Zendesk (e.g., error messages) */
main>p,
main>h1,
main>h2,
main>h3,
main>div:not([class]) {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.1;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 15px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

input,
textarea,
select {
  color: var(--text);
  font-size: 14px;
  font-family: var(--sans);
}

input {
  font-weight: 400;
  max-width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border 0.15s ease-in-out;
}

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

input[disabled] {
  background-color: var(--surface-2);
  opacity: 0.5;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--surface) url("/hc/theming_assets/01KZTZ4YTYWV61AJVBQ5P922F6") no-repeat right 10px center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 30px 8px 10px;
  outline: none;
  color: var(--text-muted);
  width: 100%;
}

select:focus {
  border-color: var(--accent);
}

select::-ms-expand {
  display: none;
}

textarea {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  resize: vertical;
  width: 100%;
  outline: none;
  padding: 10px;
  background: var(--surface);
  color: var(--text);
}

textarea:focus {
  border-color: var(--accent);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1200px) {
  .container {
    padding: 0;
    width: 90%;
  }
}

.ap-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container-divider {
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.error-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 24px;
}

/* Align community footer to the left to match the rest of the layout */
.community-footer {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Fix missing social icons on share buttons */
.share a {
  font-size: 0 !important;
}

.share a::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.share-facebook::before {
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%202h-3a5%205%200%200%200-5%205v3H7v4h3v8h4v-8h3l1-4h-4V7a1%201%200%200%201%201-1h3z%22%2F%3E%3C%2Fsvg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%202h-3a5%205%200%200%200-5%205v3H7v4h3v8h4v-8h3l1-4h-4V7a1%201%200%200%201%201-1h3z%22%2F%3E%3C%2Fsvg%3E');
}

.share-twitter::before {
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M18.901%201.153h3.68l-8.04%209.19L24%2022.846h-7.406l-5.8-7.584-6.638%207.584H.474l8.6-9.83L0%201.154h7.594l5.243%206.932ZM17.61%2020.644h2.039L6.486%203.24H4.298Z%22%2F%3E%3C%2Fsvg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M18.901%201.153h3.68l-8.04%209.19L24%2022.846h-7.406l-5.8-7.584-6.638%207.584H.474l8.6-9.83L0%201.154h7.594l5.243%206.932ZM17.61%2020.644h2.039L6.486%203.24H4.298Z%22%2F%3E%3C%2Fsvg%3E');
}

.share-linkedin::before {
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%208a6%206%200%200%201%206%206v7h-4v-7a2%202%200%200%200-2-2%202%202%200%200%200-2%202v7h-4v-7a6%206%200%200%201%206-6z%22%3E%3C%2Fpath%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%224%22%20height%3D%2212%22%3E%3C%2Frect%3E%3Ccircle%20cx%3D%224%22%20cy%3D%224%22%20r%3D%222%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%208a6%206%200%200%201%206%206v7h-4v-7a2%202%200%200%200-2-2%202%202%200%200%200-2%202v7h-4v-7a6%206%200%200%201%206-6z%22%3E%3C%2Fpath%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%224%22%20height%3D%2212%22%3E%3C%2Frect%3E%3Ccircle%20cx%3D%224%22%20cy%3D%224%22%20r%3D%222%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E');
}

/* ---------- Eyebrow / Section Labels ---------- */
.ap-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.ap-eyebrow b {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: all 0.15s;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
}

.ap-btn:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.ap-btn--primary,
.ap-btn--white {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.ap-btn--primary:hover,
.ap-btn--white:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
  filter: none;
}

/* Legacy button compat */
.button,
[role="button"] {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  margin: 0;
  padding: 0 20px;
  text-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
  white-space: nowrap;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {

  .button,
  [role="button"] {
    width: auto;
  }
}

.button:hover,
.button:active,
.button:focus,
.button[aria-selected="true"],
[role="button"]:hover,
[role="button"]:active,
[role="button"]:focus,
[role="button"][aria-selected="true"] {
  border-color: var(--accent);
  text-decoration: none;
}

.button:not(.button-large):not(.button-primary):not(.submit-a-request):not(.article-vote):hover,
[role="button"]:not(.button-large):not(.button-primary):not(.submit-a-request):not(.article-vote):hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.button[aria-selected="true"]:hover,
[role="button"][aria-selected="true"]:hover {
  filter: brightness(0.9);
}

.button[data-disabled],
[role="button"][data-disabled] {
  cursor: default;
  opacity: 0.5;
}

.button-large,
input[type="submit"] {
  /*background-color: var(--accent);*/
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.5px;
  min-width: 200px;
  padding: 10px 24px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: filter 0.15s;
}

@media (min-width: 768px) {

  .button-large,
  input[type="submit"] {
    width: auto;
  }
}

.button-large:hover,
.button-large:active,
.button-large:focus,
input[type="submit"]:hover,
input[type="submit"]:active,
input[type="submit"]:focus {
  filter: brightness(1.1);
  text-decoration: none;
}

.button-large[disabled],
input[type="submit"][disabled] {
  background-color: var(--surface-2);
  color: var(--text-faint);
  cursor: default;
}

.button-secondary,
.button-large.button-secondary {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background-color: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover,
.button-secondary:focus,
.button-secondary:active,
.button-large.button-secondary:hover,
.button-large.button-secondary:focus,
.button-large.button-secondary:active {
  color: var(--text);
  border-color: var(--accent);
  background-color: var(--surface);
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

@media (min-width: 768px) {
  .table {
    table-layout: auto;
  }
}

.table th,
.table th a {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

[dir="rtl"] .table th,
[dir="rtl"] .table th a {
  text-align: right;
}

.table tr {
  border-bottom: 1px solid var(--border);
  display: block;
  padding: 16px 0;
}

@media (min-width: 768px) {
  .table tr {
    display: table-row;
  }
}

.table td {
  display: block;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .table td {
    display: table-cell;
  }
}

@media (min-width: 768px) {

  .table td,
  .table th {
    padding: 14px 20px;
    height: auto;
  }
}

@media (min-width: 1024px) {

  .table td,
  .table th {
    padding: 16px 24px;
  }
}

/* ============================================================
   FORMS
   ============================================================ */
.form {
  max-width: 680px;
}

.form-field~.form-field {
  margin-top: 25px;
}

.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-field input {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  background: var(--surface);
  color: var(--text);
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input[type="text"] {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
}

.form-field input[type="text"]:focus {
  border-color: var(--accent);
}

.form-field input[type="checkbox"] {
  width: auto;
}

.form-field .nesty-input {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  position: relative;
}

.form-field .nesty-input::after {
  content: "\25BE" !important;
  color: var(--text-faint);
}

.form-field .nesty-input:focus {
  border-color: var(--accent);
  text-decoration: none;
}

/* Zendesk Nesty Dropdown Panels */
.nesty-panel {
  background: var(--surface) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.nesty-panel ul {
  background-color: var(--surface);
}

.nesty-panel li {
  color: var(--text) !important;
  padding: 10px 16px !important;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0 !important;
}

.nesty-panel li:hover,
.nesty-panel li:focus,
.nesty-panel li.is-active,
.nesty-panel li.is-selected {
  background: var(--border) !important;
  color: var(--text) !important;
}

.form-field textarea {
  vertical-align: middle;
}

.form-field input[type="checkbox"]+label {
  margin: 0 0 0 10px;
}

.form-field.required>label::after {
  content: "*";
  color: #CC2E2E;
  margin-left: 2px;
}

.form-field p {
  color: var(--text-faint);
  font-size: 12px;
  margin: 5px 0;
}

/* Fix for CC and Multi-select tagger fields having white background by default */
.form-field .tagger,
.form-field .multiselect-choices,
.form-field ul[data-hc-pills-container],
ul[data-hc-pills-container],
.hc-multiselect>.hc-multiselect-toggle {
  border: 1px solid var(--border-strong) !important;
  border-radius: 8px !important;
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

.form-field ul[data-hc-pills-container]:focus,
.form-field ul[data-hc-pills-container]:has(input:focus),
.hc-multiselect>.hc-multiselect-toggle:focus,
.hc-multiselect>.hc-multiselect-toggle:has(:hover),
.hc-multiselect>.hc-multiselect-toggle:has(:focus){
  border: 1px solid var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.form-field .tagger input,
.form-field .multiselect-choices input,
.form-field ul[data-hc-pills-container] input,
ul[data-hc-pills-container],
.hc-multiselect-toggle {
  background-color: transparent !important;
  color: var(--text) !important;
  border: none !important;
  box-shadow: none !important;
}

.hc-multiselect-toggle::after {
  content: "\25BE" !important;
  color: var(--text-faint);
}

.hc-multiselect-menu {
  background-color: black;
}

/* Uploaded file items styling */
.upload-item {
  background-color: var(--surface-2) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  padding: 8px 12px;
  margin-top: 8px;
}

.upload-item .upload-link {
  color: var(--text) !important;
}

.upload-item .upload-link:hover {
  color: var(--accent) !important;
}

.upload-item .upload-remove {
  color: var(--text-muted) !important;
}

.upload-item .upload-remove:hover {
  color: var(--text) !important;
}

.upload-item .upload-progress {
  background-color: var(--accent) !important;
}

.hc-multiselect-menu li label {
  color: var(--text-muted);
}

.hc-multiselect-menu li:focus {
  background-color: var(--surface);
}

.hc-multiselect-menu li:focus label {
  color: var(--text)
}


/* Custom submit button styling for forms to match primary button */
/* Style the actual selected pills/tags in the multiselect */
ul[role="listbox"] li[role="option"],
ul[data-hc-pills-container] li,
.form-field .tagger li,
.form-field .multiselect-choices li {
  background-color: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 4px !important;
}

ul[role="listbox"] li[role="option"] span[aria-label="close"],
ul[data-hc-pills-container] li span[aria-label="close"] {
  color: var(--text-muted) !important;
  cursor: pointer;
}

ul[role="listbox"] li[role="option"] span[aria-label="close"]:hover,
ul[data-hc-pills-container] li span[aria-label="close"]:hover {
  color: var(--text) !important;
}

/* Close icon in multiselect*/
ul[data-hc-pills-container] li[data-hc-pill=true]>span[aria-label=close]::before,
.hc-multiselect-toggle li span[aria-label]::before{
  content: "\00D7";
  color: var(--text);
}

/* Custom submit button styling for forms to match primary button */
.form footer input[type="submit"] {
  background-color: #fff;
  color: #111;
  border-color: #fff;
  filter: none;
}

.form footer input[type="submit"]:hover,
.form footer input[type="submit"]:focus,
.form footer input[type="submit"]:active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  filter: none;
}

/* File upload dropzone styling */
.upload-dropzone {
  border: 2px dashed var(--border-strong) !important;
  border-radius: var(--radius) !important;
  padding: 40px !important;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-loading="true"] input,
[data-loading="true"] textarea {
  background: transparent url("/hc/theming_assets/01J858QRXQRCXXWVNX9FK9XW72") 99% 50% no-repeat;
  background-size: 16px 16px;
}

.form footer {
  margin-top: 40px;
  padding-top: 30px;
}

.form footer a {
  color: var(--text-muted);
  cursor: pointer;
  margin-right: 15px;
}

.form .suggestion-list {
  font-size: 13px;
  margin-top: 30px;
}

.form .suggestion-list label {
  border-bottom: 1px solid var(--border);
  display: block;
  padding-bottom: 5px;
}

.form .suggestion-list li {
  padding: 10px 0;
}

.form .suggestion-list li a:visited {
  color: var(--accent);
  filter: brightness(0.85);
}

/* ============================================================
   NAVIGATION (Header)
   ============================================================ */
.ap-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 15, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.ap-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 80px;
  flex-wrap: nowrap;
  position: relative;
}

.ap-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  color: var(--text);
  font-size: 18px;
  white-space: nowrap;
  flex: none;
  text-decoration: none;
}

.ap-brand:hover {
  text-decoration: none;
  color: var(--text);
}

.ap-brand__logo {
  height: 30px;
  width: auto;
  display: block;
  flex: none;
}

.ap-brand__tag {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-left: 1px solid var(--border-strong);
  padding-left: 13px;
  white-space: nowrap;
}

.ap-nav-links {
  display: flex;
  gap: 26px;
  margin-left: 8px;
  flex: none;
}

.ap-nav-links a,
.ap-nav-link {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.ap-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}

.ap-nav-links a:hover,
.ap-nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.ap-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  white-space: nowrap;
}

/* Custom Avatar / Initials */
.custom-avatar-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-initials {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.ap-nav-ghost {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.ap-nav-ghost:hover {
  color: var(--text);
  text-decoration: none;
}

.ap-nav-toggle {
  display: none;
  cursor: pointer;
  color: var(--text);
  font-size: 24px;
}

/* user_info styling */
.ap-nav .user-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ap-nav .user-info .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
}

.ap-nav .user-info .dropdown-toggle:hover {
  color: var(--text);
}

.ap-nav .user-info a,
.ap-nav .user-info .dropdown-menu-user-name {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.ap-nav .user-info a:hover {
  color: var(--text);
}

.ap-nav .user-info .my-activities a {
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 880px) {
  .ap-nav-links {
    display: none;
  }

  .ap-nav-ghost {
    display: none;
  }

  .ap-nav-toggle {
    display: block;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.ap-hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}

.ap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 320px at 50% -10%, rgba(45, 212, 191, 0.13), transparent 70%),
    radial-gradient(700px 360px at 85% 0%, rgba(59, 130, 246, 0.10), transparent 70%);
}

.ap-hero__inner {
  position: relative;
  text-align: center;
}

.ap-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.ap-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.ap-hero__title {
  max-width: 760px;
  margin: 0 auto 16px;
}

.ap-hero__sub {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 17px;
}

/* Search */
.ap-search {
  max-width: 680px;
  margin: 0 auto;
}

.ap-search .search,
.ap-search .search-form,
.ap-search form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.9);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ap-search form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.ap-search input[type="search"],
.ap-search input[type="text"] {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 16px;
  font-family: var(--sans);
  padding: 10px 0;
}

.ap-search input::placeholder {
  color: var(--text-faint);
}

.ap-search button[type="submit"],
.ap-search input[type="submit"] {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  min-width: auto;
}

.ap-search svg {
  flex: none;
  color: var(--text-faint);
}

.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 20px;
}

.ap-chip {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
  text-decoration: none;
}

.ap-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.ap-block {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.ap-block--alt {
  background: var(--bg-2);
}

.ap-sec-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.ap-sec-head p {
  margin: 14px 0 0;
  font-size: 16px;
}

/* ============================================================
   CATEGORY CARD GRID
   ============================================================ */
.ap-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.ap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-muted);
}

.ap-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text-muted);
}

.ap-card__ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.ap-card__title {
  margin-bottom: 7px;
}

.ap-card__desc {
  margin: 0 0 16px;
  font-size: 14.5px;
}

.ap-card__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  transition: color 0.18s;
}

.ap-card:hover .ap-card__meta {
  color: var(--accent);
}

.ap-card__arrow {
  position: absolute;
  top: 24px;
  right: 22px;
  color: var(--text-faint);
  font-size: 18px;
  transition: all 0.18s;
}

.ap-card:hover .ap-card__arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ============================================================
   SUPPORT / TICKET SPLIT
   ============================================================ */
.ap-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.ap-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
}

.ap-panel--feature {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.07), transparent 60%), var(--surface);
  border-color: var(--border-strong);
  display: flex;
  flex-direction: column;
}

.ap-panel h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.ap-panel p {
  font-size: 15.5px;
  margin: 0 0 24px;
}

.ap-panel--feature .ap-btn {
  align-self: flex-start;
}

.ap-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  font-size: 14px;
}

.ap-status b {
  color: var(--text);
}

.ap-status a {
  color: var(--accent);
}

.ap-status__live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: ap-pulse 2s ease-in-out infinite;
}

@keyframes ap-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.08);
  }
}

.ap-contact-list {
  display: flex;
  flex-direction: column;
}

.ap-contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s;
}

.ap-contact-row:first-child {
  border-top: 0;
}

.ap-contact-row:hover {
  text-decoration: none;
}

.ap-contact-row__ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid var(--border);
}

.ap-contact-row__title {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.ap-contact-row__sub {
  font-size: 13.5px;
  color: var(--text-muted);
}

.ap-contact-row__go {
  margin-left: auto;
  color: var(--text-faint);
  transition: color 0.15s;
}

.ap-contact-row:hover .ap-contact-row__go {
  color: var(--accent);
}

/* ============================================================
   COMMUNITY TOPICS
   ============================================================ */
.ap-topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: 0.18s;
  text-decoration: none;
  color: var(--text-muted);
  display: block;
}

.ap-topic:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--text-muted);
}

.ap-topic h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.ap-topic p {
  font-size: 13.5px;
  margin: 0 0 14px;
}

.ap-topic__stat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  gap: 16px;
}

.ap-topic__stat b {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   RECENT ACTIVITY
   ============================================================ */
.activity {
  margin-top: 0;
}

.activity .recent-activity-header {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 24px;
}

.activity .recent-activity-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.activity .recent-activity-item {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.activity .recent-activity-item:hover {
  background: var(--surface);
}

/* Column 1: Parent/Category */
.activity .recent-activity-item-parent {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  word-break: break-word;
}

/* Column 2: Article/Post Link */
.activity .recent-activity-item-link {
  color: var(--text-faint) !important;
  font-size: 14px;
  text-decoration: none;
  word-break: break-word;
}

.activity .recent-activity-item-link:hover,
.activity .recent-activity-item-parent:hover {
  color: var(--accent) !important;
}

/* Column 3: Meta data (Date, Comments) */
.activity .recent-activity-item-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: right;
}

.activity .recent-activity-item-time {
  margin: 0;
}

.activity .recent-activity-item-comment {
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity .recent-activity-item-comment::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.5C2 2.67157 2.67157 2 3.5 2H12.5C13.3284 2 14 2.67157 14 3.5V10.5C14 11.3284 13.3284 12 12.5 12H10.1983L6.96967 14.8694C6.54573 15.2462 5.86241 14.9453 5.86241 14.3755V12H3.5C2.67157 12 2 11.3284 2 10.5V3.5Z" fill="white"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.5C2 2.67157 2.67157 2 3.5 2H12.5C13.3284 2 14 2.67157 14 3.5V10.5C14 11.3284 13.3284 12 12.5 12H10.1983L6.96967 14.8694C6.54573 15.2462 5.86241 14.9453 5.86241 14.3755V12H3.5C2.67157 12 2 11.3284 2 10.5V3.5Z" fill="black"/></svg>') no-repeat center / contain;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
  .activity .recent-activity-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .activity .recent-activity-item-meta {
    justify-content: flex-start;
    text-align: left;
    margin-top: 4px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* Ensure exactly 120px gap above the footer by removing bottom margins/padding from the last page elements */
main> :last-child:not(.community-footer),
main>.container:last-child> :last-child:not(.button-large),
main>.container-divider:last-child+.container> :last-child:not(.button-large),
main>.container:last-child>.article-container:last-child> :last-child:not(.button-large),
main>.container:last-child>.section-container:last-child> :last-child:not(.button-large) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.ap-footer {
  margin-top: 120px;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: var(--bg-2);
}

.ap-foot-top {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--border);
}

.ap-foot-about {
  max-width: 340px;
}

.ap-foot-about .ap-brand {
  margin-bottom: 16px;
}

.ap-foot-about p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.ap-foot-col h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-weight: 600;
}

.ap-foot-col a {
  display: block;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 11px;
  transition: color 0.15s;
  text-decoration: none;
}

.ap-foot-col a:hover {
  color: var(--accent);
}

.ap-foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 14px;
  color: var(--text-faint);
}

.ap-foot-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ap-foot-socials {
  display: flex;
  gap: 16px;
}

.ap-foot-socials a {
  color: var(--text-faint);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-foot-socials a svg {
  width: 18px;
  height: 18px;
  transition: color 0.18s ease;
}

.ap-foot-socials a:hover {
  color: var(--accent);
}

/* ============================================================
   SUB-NAV (Breadcrumbs + Search)
   ============================================================ */
.sub-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-faint);
}

.breadcrumbs li::after {
  content: ">";
  margin: 0 6px;
  color: var(--text-faint);
  opacity: 0.5;
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* Search in sub-nav */
.sub-nav .search {
  flex: none;
}

.sub-nav .search input[type="search"],
.sub-nav .search input[type="text"] {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 14px;
  width: 260px;
  outline: none;
}

.sub-nav .search input:focus {
  border-color: var(--accent);
}

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
  margin-bottom: 30px;
  padding-top: 10px;
}

.page-header h1 {
  margin-bottom: 24px;
  font-size: clamp(22px, 3vw, 34px);
}

.page-header-description {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-container {
  display: flex;
  gap: 80px;
  padding: 20px 0 60px;
}

.article-sidebar {
  flex: 0 0 300px;
  min-width: 0;
}

@media (max-width: 880px) {
  .article-container {
    flex-direction: column;
  }

  .article-sidebar {
    flex: none;
  }
}

.section-articles h3,
.collapsible-sidebar-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 12px;
}

.article-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-sidebar li {
  margin-bottom: 0;
}

.article-sidebar a,
.sidenav-item {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.article-sidebar a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.article-sidebar a.current-article,
.sidenav-item.current-article {
  color: var(--accent);
  background: var(--accent-soft);
  border-left-color: transparent;
  font-weight: 600;
}

.article-sidebar-item {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
}

.article {
  flex: 1;
  min-width: 0;
  max-width: 750px;
}

.article-header {
  margin-bottom: 24px;
}

.article-title {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 16px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-author a {
  color: var(--accent);
  text-decoration: none;
}

.article-author a:hover {
  text-decoration: underline;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.avatar {
  position: relative;
  display: inline-flex;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.meta-group {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.meta-data {
  font-size: 13px;
  color: var(--text-faint);
}

.meta-data::before {
  content: "·";
  margin-right: 8px;
}

.meta-data:first-child::before {
  display: none;
}

.meta-count {
  font-weight: 600;
  color: var(--accent);
}

.article-body {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body span,
.article-body p,
.article-body div,
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-body li,
.article-body table,
.article-body tr,
.article-body th,
.article-body td,
.post-body span,
.post-body p,
.post-body div,
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6,
.post-body li,
.post-body table,
.post-body tr,
.post-body th,
.post-body td {
  background-color: transparent !important;
  color: var(--text) !important;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
}

.article-body a:hover {
  filter: brightness(1.15);
}

.article-body img {
  border-radius: 8px;
  margin: 16px 0;
}

.article-body code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent);
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-muted);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.article-body th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

.article-body li {
  margin-bottom: 6px;
  list-style: inherit;
}

/* Article attachments */
.attachments {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.attachment-item {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--surface);
}

.attachment-item a {
  color: var(--accent);
}

.attachment-meta {
  margin-top: 4px;
}

/* Article footer */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.article-votes {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.article-votes-question {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 500;
}

.article-votes-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.article-vote {
  padding: 8px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.15s;
  cursor: pointer;
  background: transparent;
}

.article-vote:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

.article-vote[aria-selected="true"],
.article-vote[aria-selected="true"]:hover {
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
  border-color: var(--accent) !important;
}

.article-vote-up::after {
  content: "Yes";
  font-weight: 500;
}

.article-vote-down::after {
  content: "No";
  font-weight: 500;
}

.article-votes-count {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-faint);
}

.article-more-questions {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.article-return-to-top {
  text-align: center;
  padding: 16px 0;
}

.article-return-to-top a {
  color: var(--text-faint);
  font-size: 14px;
  text-decoration: none;
}

.article-return-to-top a:hover {
  color: var(--accent);
}

.article-relatives {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.article-relatives section+section {
  margin-top: 32px;
}

.article-relatives h3 {
  margin-bottom: 12px;
}

.article-relatives .article-list {
  list-style: none;
  padding: 0;
}

.article-relatives .article-list li {
  padding: 6px 0;
}

.article-relatives .article-list a {
  color: var(--text-muted);
}

.article-relatives .article-list a:hover {
  color: var(--accent);
}

/* Share */
.share {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.15s;
}

.share a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comment-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-heading {
  color: var(--text);
  font-size: 18px;
  margin: 0;
}

.comment-callout {
  color: var(--text-faint);
  font-size: 14px;
  margin: 4px 0 0;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.comment:first-child {
  border-top: 0;
}

.comment-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* WYSIWYG Editor Overrides */
#hc-wysiwyg {
  background-color: var(--surface) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  overflow: hidden;
}

#hc-wysiwyg [role="toolbar"] {
  background-color: var(--surface-2) !important;
  border-bottom: 1px solid var(--border-strong) !important;
  padding: 8px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 4px;
}

#hc-wysiwyg [role="button"] {
  color: var(--text) !important;
  border-radius: 4px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px;
}

#hc-wysiwyg [role="button"]:hover,
#hc-wysiwyg [role="button"]:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

#hc-wysiwyg iframe {
  background-color: transparent !important;
  filter: invert(1) hue-rotate(180deg) brightness(2);
}

/* Invert dark icons in the WYSIWYG toolbar */
#hc-wysiwyg [class^="wysiwyg-icon-"] {
  filter: invert(1) hue-rotate(180deg) brightness(1.5);
}

.comment-wrapper.comment-official {
  border-radius: var(--radius);
  padding: 20px;
}

.comment-info {
  flex: 1;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-author a {
  color: var(--accent);
  text-decoration: none;
}

.comment-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-body {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.comment-body a {
  color: var(--accent);
}

.comment-labels {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.comment-actions-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

/* Votes */
.vote {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-up,
.vote-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 12px;
  background: transparent;
  text-decoration: none;
}

.vote-up:hover,
.vote-down:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.vote-up.vote-voted:hover,
.vote-down.vote-voted:hover {
  color: var(--accent-ink);
}

.vote-up::after {
  content: "Upvote";
}

.vote-down::after {
  content: "Downvote";
}

.vote-voted {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.vote-sum {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.comment-actions {
  margin-left: auto;
}

.post-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
}

/* Comment form */
.comment-form {
  display: flex;
  gap: 12px;
  padding: 24px 0;
  align-items: flex-start;
}

.comment-form .comment-avatar {
  flex: none;
}

.comment-container {
  flex: 1;
}

.comment-show-container {
  padding: 14px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s;
}

.comment-show-container:hover {
  border-color: var(--accent);
}

.comment-show-container.hidden {
  display: none;
}

.comment-fields.shown {
  display: block;
}

.comment-form-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.comment-ccs {
  margin-bottom: 12px;
}

/* ============================================================
   STATUS LABELS
   ============================================================ */
.status-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

.status-label-open {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.status-label-pending {
  background: rgba(250, 204, 21, 0.15);
  color: #FACC15;
}

.status-label-solved,
.status-label-closed {
  background: rgba(107, 113, 120, 0.15);
  color: var(--text-faint);
}

.status-label-new {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.status-label-hold {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
}

.status-label-pinned {
  background: rgba(250, 204, 21, 0.15);
  color: #FACC15;
}

.status-label-featured {
  background: rgba(45, 212, 191, 0.15);
  color: var(--accent);
}

.status-label-official {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Community Specific Statuses */
.status-label-answered {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
}

.status-label-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-label-planned {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.status-label-not-planned {
  background: rgba(107, 113, 120, 0.15);
  color: var(--text-faint);
}

.escalation-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  text-decoration: none;
}

/* ============================================================
   SECTION PAGE
   ============================================================ */
.section-container {
  padding: 20px 0 60px;
}

.section-content {
  max-width: 100%;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.article-list-item:last-child {
  border-bottom: none;
}

.article-list-link {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}

.article-list-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.article-promoted {
  position: relative;
}

.see-all-articles {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category-container {
  padding: 20px 0 60px;
}

.section-tree .section {
  margin-bottom: 32px;
}

.section-tree-title {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.section-tree-title a {
  color: var(--text);
  text-decoration: none;
}

.section-tree-title a:hover {
  color: var(--accent);
}

.section-empty,
.category-empty {
  color: var(--text-faint);
  font-style: italic;
  display: block;
  padding: 12px 0;
}

.section-empty a,
.category-empty a {
  color: var(--accent);
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 20px 0 60px;
}

@media (max-width: 880px) {
  .search-results {
    grid-template-columns: 1fr;
  }
}

.search-results-column {}

.search-results-subheading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  color: var(--text-faint);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.search-result-link {
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}

.search-result-link:hover {
  color: var(--accent);
}

.search-result-votes {
  display: inline-block;
  margin-left: 8px;
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}

.search-result-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result-breadcrumbs li {
  font-size: 13px;
  color: var(--text-faint);
}

.search-result-breadcrumbs li::after {
  content: ">";
  margin: 0 4px;
}

.search-result-breadcrumbs li:last-child::after {
  display: none;
}

.search-result-breadcrumbs a {
  color: var(--text-faint);
  text-decoration: none;
}

.search-result-breadcrumbs a:hover {
  color: var(--accent);
}

.search-result-description {
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.5;
}

.search-result-meta-count {
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
  margin-left: 8px;
}

/* ============================================================
   REQUEST PAGES
   ============================================================ */
.request-breadcrumbs {
  margin-bottom: 16px;
}

.request-title {
  font-size: clamp(20px, 3vw, 30px);
  margin-bottom: 24px;
}

.request-container {
  display: flex;
  gap: 40px;
  padding: 0 0 60px;
}

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

.request-sidebar {
  flex: 0 0 280px;
}

.request-sidebar.collapsible-sidebar {}

@media (max-width: 880px) {
  .request-container {
    flex-direction: column;
  }

  .request-sidebar {
    flex: none;
  }
}

.request-details {
  margin: 0 0 16px;
  padding: 0;
}

.request-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
  color: var(--text-faint);
  margin-top: 14px;
  font-weight: 600;
}

.request-details dt:first-child {
  margin-top: 0;
}

.request-details dd {
  margin: 4px 0 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.request-collaborators {
  list-style: none;
  padding: 0;
  margin: 0;
}

.request-collaborators li {
  font-size: 14px;
}

.request-follow-up {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.request-submit-comment {
  display: inline-block;
}

.request-submit-comment.shown {
  display: inline-block;
}

/* Request list table */
.requests-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.requests-table-toolbar .search {
  flex: 1;
  min-width: 200px;
}

.requests-search {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  width: 100%;
}

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

.request-table-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-filter-label {
  font-size: 13px;
  color: var(--text-faint);
  white-space: nowrap;
}

.request-filter {
  min-width: 120px;
}

.requests-search-info {
  color: var(--text-faint);
  font-size: 14px;
  margin-bottom: 12px;
}

.requests-table-info {}

.requests-table-meta {
  display: none;
}

@media (max-width: 768px) {
  .requests-table-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
  }
}

.requests-table-status {}

.no-activities {
  color: var(--text-faint);
  padding: 20px 0;
}

.request-closed {
  opacity: 0.6;
}

/* ============================================================
   MY ACTIVITIES NAV (Requests, Contributions, Subscriptions)
   ============================================================ */
.my-activities-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.collapsible-nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.collapsible-nav-list.container {
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1200px) {
  .collapsible-nav-list.container {
    padding: 0;
  }
}

.collapsible-nav-list li {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.collapsible-nav-list li[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.collapsible-nav-list li a {
  color: var(--text-muted);
  text-decoration: none;
}

.collapsible-nav-list li a:hover {
  color: var(--text);
}

.my-activities-header {
  padding: 24px 0 16px;
}

.my-activities-header h1 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}

.my-activities-sub-nav .collapsible-nav-list {
  gap: 4px;
}

.my-activities-sub-nav .collapsible-nav-list li {
  padding: 8px 14px;
  border-radius: 999px;
  border-bottom: none;
  font-size: 13px;
}

.my-activities-sub-nav .collapsible-nav-list li[aria-selected="true"] {
  background: var(--accent-soft);
  border-bottom: none;
}

.my-activities-sub-nav .collapsible-nav-list li a:hover {
  text-decoration: none;
}

.my-activities-following-header {
  padding: 16px 0;
}

/* Striped list (used in community) */
.striped-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.striped-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.striped-list-info {
  flex: 1;
  min-width: 0;
}

.striped-list-title {
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  display: inline;
  margin-right: 8px;
  vertical-align: middle;
}

.striped-list-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.striped-list-count {
  display: flex;
  gap: 16px;
  flex: none;
  align-items: center;
}

.striped-list-count-item {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

.striped-list-number {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.striped-list-status {
  margin-left: 8px;
}

.post-overview-item {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  vertical-align: middle;
  margin-bottom: 4px;
}

.post-overview-count {
  display: flex;
  gap: 16px;
}

.post-featured {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 16px !important;
}

/* ============================================================
   COMMUNITY PAGES
   ============================================================ */
/* Community hero */
.community-hero {
  position: relative;
  padding: 40px 0 32px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.community-hero .hero-inner,
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.community-hero .search,
.hero-inner .search {
  max-width: 600px;
  margin: 0 auto;
}

.community-hero .search input,
.hero-inner .search input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 16px;
  width: 100%;
}

.community-hero .search input:focus,
.hero-inner .search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.community-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 0 0 0;
  flex-wrap: wrap;
  margin-bottom: 28px !important;
}

.community-search-inline {
  flex: 1;
  max-width: 450px;
  margin: 0;
}

.community-search-inline .search {
  width: 100%;
  margin: 0;
}

.community-search-inline .search form {
  margin: 0;
}

.community-search-inline .search input[type="search"] {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text);
  width: 100%;
  height: 42px;
  box-sizing: border-box;
}

.community-search-inline .search input[type="search"]:focus {
  border-color: var(--accent);
}

.community-header .dropdown-toggle,
.community-header .ap-btn {
  height: 42px;
  box-sizing: border-box;
}

.community-header h4 {
  margin: 0;
}

.community-follow {
  margin-left: auto;
}

.post-to-community {
  display: inline-block;
  margin-left: auto;
}

.topic-header {
  display: flex;
  gap: 12px;
  padding: 0 0 16px;
  flex-wrap: wrap;
}

.topic-filters {
  display: flex;
  gap: 12px;
}

/* Community blocks (topics grid) */
.blocks {
  padding: 0;
}

.blocks-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 880px) {
  .blocks-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .blocks-list {
    grid-template-columns: 1fr;
  }
}

.blocks-item {}

.blocks-item-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all 0.18s;
  text-decoration: none;
  color: var(--text-muted);
}

.blocks-item-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  text-decoration: none;
  background: var(--surface-2);
}

.blocks-item-link img {
  display: none;
  /* Hide old injected images in new design */
}

.blocks-item-title {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 6px;
  font-size: 16px;
}

.blocks-item-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.blocks-item-internal {}

/* Community featured posts */
.community-featured-posts {
  padding: 24px 0;
}

.community-featured-posts h3 {
  margin-bottom: 12px;
}

.promoted-articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.promoted-articles-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.promoted-articles-item a {
  color: var(--text);
  text-decoration: none;
}

.promoted-articles-item a:hover {
  color: var(--accent);
}

/* Community footer */
.community-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.community-footer h4 {
  margin-bottom: 16px;
}

.community-activity {
  padding: 24px 0;
}

/* Post page */
.post-container {
  display: flex;
  gap: 40px;
  padding: 20px 0 60px;
}

.post {
  flex: 1;
  min-width: 0;
  max-width: 750px;
}

.post-sidebar {
  flex: 0 0 260px;
}

@media (max-width: 880px) {
  .post-container {
    flex-direction: column;
  }

  .post-sidebar {
    flex: none;
  }
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post-title h1 {
  font-size: clamp(20px, 3vw, 30px);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-body {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.post-body a {
  color: var(--accent);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.post-comments {
  padding: 24px 0;
}

.post-sidebar .sidebar-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  color: var(--text-faint);
  margin-bottom: 16px;
}

/* New community post page */
.form-header {
  margin-bottom: 24px;
}

.new_community_post {
  max-width: 680px;
}

/* ============================================================
   USER PROFILE
   ============================================================ */
.profile-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar {
  flex: none;
}

.profile-avatar .user-avatar {
  width: 72px;
  height: 72px;
}

.basic-info {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.basic-info .name {
  font-size: 24px;
  margin: 0;
}

.basic-info .name a {
  color: var(--text);
  text-decoration: none;
}

.basic-info .name a:hover {
  color: var(--accent);
}

.options {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.profile-private-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.15);
  color: #FACC15;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.description {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 12px;
}

.profile-stats {
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.profile-stats .stat {}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.stat-value {
  display: block;
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
  margin-top: 2px;
}

.profile-stats-counters {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.profile-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.profile-section {
  padding: 24px 0 60px;
}

.profile-section-header {
  margin-bottom: 20px;
}

.profile-section-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.profile-section-description {
  color: var(--text-faint);
  font-size: 14px;
}

.profile-section-sorter {
  margin-left: 12px;
}

.profile-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-activity {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.profile-activity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-activity-header .user-avatar {
  width: 28px;
  height: 28px;
}

.profile-activity-description {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0;
}

.profile-activity-description time {
  display: block;
}

.profile-contribution {
  padding: 16px 0;
}

.profile-contribution-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-contribution-title {
  font-size: 16px;
  margin: 0;
}

.profile-contribution-title a {
  color: var(--text);
  text-decoration: none;
}

.profile-contribution-title a:hover {
  color: var(--accent);
}

.profile-contribution-breadcrumbs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  gap: 4px;
  flex-wrap: wrap;
}

.profile-contribution-breadcrumbs li {
  font-size: 13px;
  color: var(--text-faint);
}

.profile-contribution-breadcrumbs li::after {
  content: ">";
  margin: 0 4px;
}

.profile-contribution-breadcrumbs li:last-child::after {
  display: none;
}

.profile-contribution-breadcrumbs a {
  color: var(--text-faint);
  text-decoration: none;
}

.profile-contribution-breadcrumbs a:hover {
  color: var(--accent);
}

.profile-contribution-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.no-activity,
.private-activity {
  color: var(--text-faint);
  font-size: 15px;
  padding: 20px 0;
  display: block;
}

/* ============================================================
   DROPDOWNS
   ============================================================ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s;
  background: var(--surface);
}

.dropdown-toggle:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.dropdown-toggle::after {
  display: none !important;
}

.dropdown-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.custom-avatar-wrapper--lg {
  width: 40px !important;
  height: 40px !important;
}

.custom-avatar-wrapper--lg .custom-initials {
  font-size: 16px !important;
}

.dropdown-profile-text {
  display: flex;
  flex-direction: column;
}

.dropdown-user-name {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 0 !important;
}

.dropdown-user-email {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.dropdown-user-email:empty {
  display: none;
}

.dropdown-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 220px;
  margin-top: 8px;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8) !important;
  height: auto !important;
}

/* When Zendesk JS renders dropdown upwards due to lack of space */
.dropdown-menu.dropdown-menu-top {
  top: auto !important;
  bottom: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

/* Invisible bridge to prevent hover loss when moving mouse from toggle to menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent !important;
  border: none !important;
}

/* Hide Zendesk's default white triangle pointer */
.dropdown-menu::after {
  display: none !important;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle::after {
  content: "";
  display: inline-block !important;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='black' viewBox='0 0 12 12'%3E%3Cpath stroke-linecap='round' stroke-width='1.5' d='M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='black' viewBox='0 0 12 12'%3E%3Cpath stroke-linecap='round' stroke-width='1.5' d='M3 4.5l2.6 2.6c.2.2.5.2.7 0L9 4.5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.user-info .dropdown-toggle::after {
  display: none !important;
}

/* Ensure all subscribe buttons use flexbox to align text, badge, and chevron */
[data-follower-count] {
  display: inline-flex !important;
  align-items: center;
}

/* Add native follower count as a badge, and push it between text and chevron */
[data-follower-count]::before {
  content: attr(data-follower-count);
  order: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 24px;
  padding: 0 8px;
  margin-left: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

[data-follower-count]:hover::before {
  background-color: var(--accent);
  color: var(--accent-ink);
}

/* Ensure the chevron appears after the follower count badge (only for dropdowns) */
.dropdown-toggle[data-follower-count]::after {
  order: 2;
}

.dropdown-menu-end {
  left: auto;
  right: 0;
}

.dropdown-menu a,
.dropdown-menu [role="menuitem"] {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  color: var(--text-muted) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none;
  width: 100%;
  cursor: pointer;
}

.dropdown-menu a::after,
.dropdown-menu [role="menuitem"]::after {
  content: "\2192";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  color: var(--accent) !important;
  font-size: 16px;
  font-weight: bold;
}

.dropdown-menu a[aria-selected="true"]::after,
.dropdown-menu [role="menuitem"][aria-selected="true"]::after {
  content: "\2713";
}

.dropdown-menu a:hover,
.dropdown-menu [role="menuitem"]:hover {
  background: var(--surface) !important;
  color: var(--text) !important;
}

.dropdown-menu a:hover::after,
.dropdown-menu a[aria-selected="true"]::after,
.dropdown-menu [role="menuitem"]:hover::after,
.dropdown-menu [role="menuitem"][aria-selected="true"]::after {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-menu a[aria-selected="true"],
.dropdown-menu [role="menuitem"][aria-selected="true"] {
  color: var(--accent) !important;
  background: var(--surface) !important;
}

.dropdown.open .dropdown-menu,
.dropdown[aria-expanded="true"] .dropdown-menu {
  display: block !important;
}

/* Comment sorter dropdown */
.comment-sorter {
  float: right;
}

.comment-sorter .dropdown-toggle {
  border: none;
  padding: 0;
  background: transparent;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  padding: 32px 0;
}

.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination a,
.pagination .pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.pagination a {
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.pagination .pagination-current {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* ============================================================
   NOTIFICATION BANNER
   ============================================================ */
.alertbox {
  position: relative;
  z-index: 60;
}

.ns-box {
  position: relative;
}

.ns-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 40px 12px 16px;
  background: #eaf5ea;
  border-bottom: 1px solid #cce5d3;
}

.ns-type-notice-custom {}

.ns-box-inner,
.ns-box-inner-custom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.headerTextCustom {
  font-size: 14px;
  color: #202124;
  margin: 0;
}

.headerTextCustom a {
  color: #202124;
  text-decoration: underline;
  font-weight: 500;
}

.megaphoneCustom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #1e8e3e;
  flex: none;
}

.megaphoneCustom svg {
  width: 100%;
  height: 100%;
}

.ns-close-focable {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #5f6368;
  text-decoration: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ns-close-focable:hover {
  color: #202124;
}



/* Icon system compat */
.icon-lock::before {
  content: "🔒";
  font-size: 14px;
  margin-left: 4px;
}

.icon-star::before {
  content: "⭐";
  font-size: 14px;
  margin-right: 4px;
}

.icon-comments::before {
  content: "💬";
  font-size: 14px;
  margin-right: 4px;
}

.icon-agent {
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.icon-agent::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.icon-arrow-up::before {
  content: " ↑";
}

.icon-menu {
  display: none;
  cursor: pointer;
  color: var(--text);
  font-size: 24px;
}

.icon-menu::before {
  content: "☰";
}

/* Language selector in footer */
.language-selector .dropdown-toggle {
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .ap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ap-split {
    grid-template-columns: 1fr;
  }

  .ap-foot-top {
    grid-template-columns: 1fr 1fr;
  }

  .search-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ap-grid {
    grid-template-columns: 1fr;
  }

  .ap-foot-top {
    grid-template-columns: 1fr;
  }

  .ap-nav-right .ap-btn:not(.ap-btn--primary):not(.ap-btn--white) {
    display: none;
  }

  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .options {
    margin-left: 0;
    justify-content: center;
  }
}

/* ============================================================
   WYSIWYG EDITOR OVERRIDES
   ============================================================ */
.zd-editor {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
}

.zd-editor:focus-within {
  border-color: var(--accent);
}

/* CKEditor 5 Dark Theme (Community New Post) */
.ck.ck-editor__main>.ck-editor__editable,
.ck.ck-editor__main>.ck-editor__editable:not(.ck-editor__nested-editable) {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border-strong) !important;
}

.ck.ck-toolbar {
  background: var(--bg) !important;
  border-color: var(--border-strong) !important;
}

.ck.ck-button {
  color: var(--text) !important;
}

.ck.ck-button:hover {
  background: var(--surface-2) !important;
}

/* TinyMCE Dark Theme (Legacy / Tickets) */
.tox-tinymce {
  border: 1px solid var(--border-strong) !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary,
.tox .tox-menubar {
  background: var(--bg) !important;
}

.tox .tox-tbtn {
  color: var(--text) !important;
}

.tox .tox-tbtn:hover {
  background: var(--surface-2) !important;
}

.tox .tox-edit-area__iframe {
  background: var(--surface) !important;
}

/* Token field (CCs) */
.ccs-input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
}

/* Hidden helper — legacy compat */
.hidden {
  display: none;
}

.shown {
  display: block;
}

/* ==================================================== */
/* Recent Activity List Padding                         */
/* ==================================================== */
.recent-activity-item,
.activity-list-item {
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-left: -16px !important;
  margin-right: -16px !important;
  border-radius: 8px;
}

/* ==================================================== */
/* Announcement Alerts                                  */
/* ==================================================== */
.alertbox {
  width: 100%;
}

.ap-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px;
  color: #222;
  position: relative;
}

.ap-alert--success {
  background-color: #eaf5eb;
}

.ap-alert--warning {
  background-color: #fef4e7;
}

.ap-alert--error {
  background-color: #faebec;
}

.ap-alert__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ap-alert__content {
  flex: 1;
  line-height: 1.5;
}

.ap-alert__content b {
  font-weight: 600;
}

.ap-alert__content a {
  color: #222;
  text-decoration: underline;
  font-weight: 600;
}

.ap-alert__content a:hover {
  text-decoration: none;
}

.ap-alert__close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex: none;
}

.ap-alert__close:hover {
  color: #111;
}

/* Print */
@media print {

  .ap-nav,
  .ap-footer,
  .alertbox,
  .ap-hero::before {
    display: none;
  }

  body {
    background: #fff;
    color: #222;
  }

  a {
    color: #222;
  }
}

.article-author {
  display: flex;
  align-items: center;
}

.article-subscribe {
  margin-left: auto;
}

/* Fix Classic WYSIWYG Editor Toolbar in Dark Mode (Article Comments) */
#hc-wysiwyg [role="toolbar"] {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  flex-wrap: wrap;
  padding: 8px 12px !important;
  box-sizing: content-box;
}

#hc-wysiwyg [role=menu] {
  background: black !important;
  z-index: 1;
}

#hc-wysiwyg [role=menu]>[role=button][data-block=p]:hover {
  color: var(--accent);
}

#hc-wysiwyg [role=form][aria-expanded=true] {
  background-color: black;
}

#hc-wysiwyg [role=form] input {
  color: var(--text);
  background-color: black;
}

#hc-wysiwyg [role=form] [role=button] {
  background: black;
}

#hc-wysiwyg [role="toolbar"] [role="button"] {
  transition: opacity 0.2s !important;
  background-color: transparent !important;
}

#hc-wysiwyg [role="toolbar"] [role="button"]:hover,
#hc-wysiwyg [role="toolbar"] [role="button"]:focus,
#hc-wysiwyg [role="toolbar"] [aria-haspopup="true"]:hover > [role="button"],
#hc-wysiwyg [role="toolbar"] [aria-haspopup="true"]:focus > [role="button"] {
  background-color: transparent !important;
  opacity: 0.6 !important;
}

/** Everything else after subject and cc and before footer **/
#new_request {
	display: flex;
	width: 100%;
	flex-direction: column;
  gap: 12px;
}
.form-field ~ .form-field {order: 5;} 
/** Form Footer at the very bottom **/
form footer {
	order:10;
}
/** Set Subject as the first field **/
div.form-field.request_subject {
	order: 1;
	margin-bottom:5px;
  margin-top: 0;
}
/** Set CC as the second field **/
div.form-field.request_cc_emails {
	order: 2;
}

.form-field textarea {
  height: 210px;
}