body.qna-page {
  background:
    linear-gradient(135deg, rgba(18, 83, 67, .12), transparent 34%),
    linear-gradient(225deg, rgba(245, 158, 11, .12), transparent 38%),
    var(--bg, #f0f2f5);
}

body.qna-page .layout-grid.layout-grid--no-sidebars {
  width: min(1420px, calc(100% - 32px)) !important;
  max-width: none !important;
  margin: 20px auto 92px !important;
}

body.qna-page .main-content {
  display: block !important;
  min-width: 0;
}

.qna-shell {
  --qna-ink: #10201a;
  --qna-muted: #60736b;
  --qna-line: rgba(16, 32, 26, .12);
  --qna-soft: #eef8f2;
  --qna-green: #23855f;
  --qna-deep: #123f35;
  --qna-amber: #f59e0b;
  --qna-blue: #2563eb;
  color: var(--qna-ink);
  display: grid;
  gap: 16px;
}

.qna-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(12, 55, 46, .96), rgba(35, 133, 95, .94) 56%, rgba(245, 158, 11, .86)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 16px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  color: #fff;
}

.qna-hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  max-width: 820px;
}

.qna-eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.qna-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .92;
  letter-spacing: 0;
}

.qna-hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.45;
}

.qna-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.qna-hero-actions a,
.qna-primary-link,
.qna-search-form button,
.qna-form-row button {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
  cursor: pointer;
}

.qna-hero-actions a:first-child,
.qna-primary-link,
.qna-form-row button {
  background: #fff;
  color: var(--qna-deep);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .18);
}

.qna-hero-actions a:last-child {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}

.qna-hero-meter {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 18px;
  background: rgba(255, 255, 255, .14);
}

.qna-hero-meter strong {
  font-size: 64px;
  line-height: .9;
}

.qna-hero-meter span {
  color: rgba(255, 255, 255, .85);
  font-weight: 900;
}

.qna-meter-lines {
  display: grid;
  gap: 8px;
}

.qna-meter-lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.qna-meter-lines i:nth-child(1) { width: 88%; }
.qna-meter-lines i:nth-child(2) { width: 62%; }
.qna-meter-lines i:nth-child(3) { width: 76%; }

.qna-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.qna-stat-strip div {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--qna-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.qna-stat-strip strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.qna-stat-strip span {
  display: block;
  margin-top: 5px;
  color: var(--qna-muted);
  font-size: 12px;
  font-weight: 900;
}

.qna-toolbar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--qna-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.qna-filter-pills,
.qna-search-form,
.qna-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.qna-filter-pills a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(16, 32, 26, .11);
  border-radius: 13px;
  background: #fff;
  color: var(--qna-ink);
  font-weight: 900;
  text-decoration: none;
}

.qna-filter-pills a.is-active {
  background: var(--qna-deep);
  color: #fff;
  border-color: var(--qna-deep);
}

.qna-filter-pills b {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: inherit;
  font-size: 12px;
}

.qna-search-form {
  justify-content: flex-end;
}

.qna-search-form input,
.qna-search-form select,
.qna-ask-card input,
.qna-ask-card textarea,
.qna-answer-composer input,
.qna-answer-composer textarea {
  min-height: 42px;
  border: 1px solid var(--qna-line);
  border-radius: 13px;
  padding: 0 12px;
  background: #fff;
  color: var(--qna-ink);
  font: inherit;
}

.qna-search-form input {
  width: min(260px, 100%);
}

.qna-search-form button {
  background: var(--qna-green);
  color: #fff;
}

.qna-board {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.qna-index-column,
.qna-main-column,
.qna-detail-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.qna-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.qna-section-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.qna-section-title span {
  color: var(--qna-muted);
  font-size: 12px;
  font-weight: 850;
}

.qna-question-list {
  display: grid;
  gap: 10px;
}

.qna-question-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--qna-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.qna-question-card .qna-dot-menu,
.qna-detail-card .qna-dot-menu {
  top: 12px;
  right: 12px;
}

.qna-question-card .qna-card-main-link {
  padding-right: 58px;
}

.qna-detail-card {
  position: relative;
}

.qna-detail-card .qna-detail-head {
  padding-right: 54px;
}

.qna-question-card.is-selected {
  border-color: rgba(35, 133, 95, .48);
  box-shadow: 0 18px 44px rgba(35, 133, 95, .18);
}

.qna-card-main-link {
  display: grid;
  gap: 8px;
  padding: 15px 15px 10px;
  color: inherit;
  text-decoration: none;
}

.qna-question-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.qna-question-card p {
  margin: 0;
  color: var(--qna-muted);
  font-size: 14px;
  line-height: 1.42;
}

.qna-status {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
}

.qna-status-answered {
  background: rgba(35, 133, 95, .13);
  color: var(--qna-green);
}

.qna-status-closed {
  background: rgba(100, 116, 139, .14);
  color: #475569;
}

.qna-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 15px 14px;
  border-top: 1px solid rgba(16, 32, 26, .08);
  color: var(--qna-muted);
  font-size: 12px;
  font-weight: 850;
}

.qna-card-footer span,
.qna-card-footer b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
}

.qna-card-footer img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
}

.qna-ask-card,
.qna-answer-composer,
.qna-detail-card,
.qna-guide-card {
  border: 1px solid var(--qna-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.qna-ask-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.qna-ask-card form,
.qna-answer-composer form {
  display: grid;
  gap: 12px;
}

.qna-ask-card label,
.qna-answer-composer label {
  display: grid;
  gap: 7px;
  color: var(--qna-ink);
  font-weight: 900;
}

.qna-ask-card textarea,
.qna-answer-composer textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
  line-height: 1.42;
}

.qna-form-row input[type="url"] {
  flex: 1 1 250px;
}

.qna-file-picker input {
  display: none;
}

.qna-file-picker span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(35, 133, 95, .42);
  border-radius: 13px;
  padding: 0 14px;
  background: var(--qna-soft);
  color: var(--qna-deep);
  cursor: pointer;
}

.qna-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.qna-preview-pill {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qna-form-status {
  min-height: 18px;
  color: var(--qna-muted);
  font-size: 13px;
  font-weight: 850;
}

.qna-form-status[data-status="error"] { color: #dc2626; }
.qna-form-status[data-status="success"] { color: var(--qna-green); }

.qna-login-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--qna-soft);
}

.qna-login-card span {
  color: var(--qna-muted);
  font-weight: 750;
}

.qna-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  gap: 18px;
  padding: 18px;
}

.qna-guide-card h2,
.qna-guide-card p {
  margin: 0;
}

.qna-guide-card p {
  margin-top: 7px;
  color: var(--qna-muted);
  line-height: 1.45;
}

.qna-guide-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.qna-guide-card li {
  padding: 10px;
  border-radius: 12px;
  background: var(--qna-soft);
  font-weight: 850;
}

.qna-detail-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.qna-detail-head {
  display: grid;
  gap: 10px;
}

.qna-detail-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.qna-detail-author {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--qna-muted);
  font-weight: 850;
}

.qna-detail-author img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.qna-detail-author span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.qna-detail-author small {
  color: var(--qna-muted);
}

.qna-detail-copy {
  color: var(--qna-ink);
  font-size: 16px;
  line-height: 1.56;
}

.qna-embed {
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.qna-oembed-wrap {
  overflow: hidden;
  border-radius: 16px;
}

.qna-oembed-wrap .post-oembed-card {
  margin: 0;
}

.qna-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.qna-link-embed,
.qna-attachment-file {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--qna-line);
  border-radius: 14px;
  background: #f8fafc;
  color: var(--qna-ink);
  text-decoration: none;
}

.qna-link-embed span,
.qna-attachment-file span,
.qna-attachment-file small {
  color: var(--qna-muted);
  font-size: 12px;
  font-weight: 850;
}

.qna-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.qna-attachment-image,
.qna-attachment-video {
  min-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.qna-attachment-image img,
.qna-attachment-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qna-answer-composer {
  padding: 16px;
}

.qna-answer-composer h2,
.qna-answer-composer p {
  margin: 0;
}

.qna-answer-composer p {
  color: var(--qna-muted);
}

.qna-answers-list {
  display: grid;
  gap: 12px;
}

.qna-answer-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--qna-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

.qna-answer-card.is-accepted {
  border-color: rgba(35, 133, 95, .48);
}

.qna-answer-votes {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.qna-vote-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--qna-line);
  border-radius: 13px;
  background: #fff;
  color: var(--qna-deep);
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}

.qna-vote-btn.is-active {
  background: var(--qna-green);
  color: #fff;
  border-color: var(--qna-green);
}

.qna-answer-votes strong {
  font-size: 18px;
}

.qna-answer-body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.qna-answer-body header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qna-answer-body header img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
}

.qna-answer-body header span {
  display: grid;
  gap: 2px;
}

.qna-answer-body header small {
  color: var(--qna-muted);
  font-weight: 850;
}

.qna-answer-body p {
  margin: 0;
  line-height: 1.55;
}

.qna-accepted-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(35, 133, 95, .12);
  color: var(--qna-green);
  font-size: 12px;
  font-weight: 950;
}

.qna-empty-state {
  padding: 18px;
  border: 1px dashed rgba(16, 32, 26, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  color: var(--qna-muted);
  font-weight: 900;
  text-align: center;
}

.qna-edit-modal.hidden {
  display: none !important;
}

.qna-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 230000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.qna-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(10px);
}

.qna-edit-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.qna-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qna-edit-head h2 {
  margin: 0;
}

.qna-edit-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.qna-edit-card label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.qna-edit-card input,
.qna-edit-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--qna-line);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}

.qna-edit-card textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .qna-toolbar-card,
  .qna-board {
    grid-template-columns: 1fr;
  }

  .qna-search-form {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.qna-page {
    background: var(--bg, #f0f2f5);
  }

  body.qna-page .layout-grid.layout-grid--no-sidebars {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 calc(var(--mobile-nav-gap, 74px) + 14px) !important;
  }

  body.qna-page .main-content,
  .qna-shell,
  .qna-board,
  .qna-index-column,
  .qna-main-column {
    width: 100%;
    max-width: none;
  }

  .qna-shell {
    gap: 8px;
  }

  .qna-hero,
  .qna-toolbar-card,
  .qna-ask-card,
  .qna-detail-card,
  .qna-answer-composer,
  .qna-guide-card,
  .qna-question-card,
  .qna-answer-card,
  .qna-edit-card,
  .qna-stat-strip div {
    border-radius: 0;
  }

  .qna-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px 14px;
    box-shadow: none;
  }

  .qna-hero h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .qna-hero p {
    font-size: 15px;
  }

  .qna-hero-meter {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .qna-hero-meter strong {
    font-size: 38px;
  }

  .qna-meter-lines {
    display: none;
  }

  .qna-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .qna-stat-strip div {
    box-shadow: none;
  }

  .qna-toolbar-card {
    padding: 10px;
    box-shadow: none;
  }

  .qna-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .qna-filter-pills a {
    flex: 0 0 auto;
  }

  .qna-search-form input,
  .qna-search-form select,
  .qna-search-form button,
  .qna-form-row input[type="url"],
  .qna-file-picker,
  .qna-file-picker span,
  .qna-form-row button {
    width: 100%;
  }

  .qna-board {
    gap: 8px;
  }

  .qna-main-column {
    order: 1;
  }

  .qna-index-column {
    order: 2;
  }

  .qna-section-title {
    padding: 0 12px;
  }

  .qna-question-list,
  .qna-answers-list,
  .qna-detail-panel {
    gap: 8px;
  }

  .qna-card-main-link,
  .qna-card-footer,
  .qna-ask-card,
  .qna-detail-card,
  .qna-answer-composer,
  .qna-guide-card {
    padding-left: 12px;
    padding-right: 12px;
  }

  .qna-guide-card {
    grid-template-columns: 1fr;
  }

  .qna-attachments {
    grid-template-columns: 1fr;
  }

  .qna-answer-card {
    grid-template-columns: 1fr;
  }

  .qna-answer-votes {
    grid-template-columns: auto auto auto;
    justify-content: start;
    align-items: center;
  }

  .qna-edit-modal {
    padding: 0;
  }

  .qna-edit-card {
    width: 100%;
    height: 100%;
    max-height: none;
  }
}
