.page-qna {
  background: #fff;
}

.ask-fab {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(18, 44, 90, 0.28);
}

.ask-fab:hover {
  background: #0f234a;
}

.qna-filterbar {
  background: #fff;
  border-bottom: 1px solid #e8edf4;
  padding: var(--cat-bar-pad-y) 0;
  position: sticky;
  top: var(--cat-bar-sticky-top);
  z-index: 15;
}

.qna-filterbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
}

.qna-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.qna-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e4eaf2;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.qna-pill:hover {
  border-color: #c9d6ea;
  color: var(--blue);
}

.qna-pill.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.qna-pill__ico {
  font-size: 11px;
  opacity: 0.9;
}

.qna-main {
  padding: var(--main-pad-top) 0 var(--main-pad-bottom);
  background: #fafbfd;
}

.qna-main__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: grid;
  grid-template-columns: var(--sidebar-left) minmax(0, 1fr) var(--sidebar-right);
  gap: var(--main-gap);
  align-items: start;
}

.qna-filters,
.widget,
.qna-list-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qna-filters {
  padding: 16px 14px;
  display: grid;
  gap: 22px;
}

.qna-filters h2,
.widget__head h2,
.qna-list-panel__head h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  text-align: left;
}

.cat-list button em {
  font-style: normal;
  color: #9aa3af;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.cat-list button:hover {
  background: #f4f7fb;
}

.cat-list button.is-on {
  background: #eaf1ff;
  color: var(--blue);
  font-weight: 700;
}

.cat-list button.is-on em {
  color: var(--blue);
}

.radio-list {
  display: grid;
  gap: 8px;
}

.radio-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}

.radio-list input {
  accent-color: var(--blue);
}

.qna-list-panel {
  padding: 14px 16px 18px;
  min-width: 0;
}

.qna-list-panel__head {
  /* shared via .list-panel-head in common.css */
}

.page-size select {
  /* shared via common.css */
}

.qna-table-wrap {
  overflow-x: auto;
}

.qna-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.qna-table th,
.qna-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #eef2f7;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.qna-table th {
  color: #8b93a0;
  font-weight: 600;
  font-size: 12.5px;
  background: #fafbfd;
}

.col-check {
  width: 36px;
}

.col-title {
  min-width: 280px;
}

.col-cat {
  width: 100px;
}

.col-author {
  width: 90px;
}

.col-date {
  width: 92px;
}

.col-views {
  width: 58px;
  text-align: right !important;
}

.qna-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.qna-title a {
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qna-title a:hover {
  color: var(--blue);
}

.status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status--done {
  background: #e8f0ff;
  color: #2f6bff;
}

.status--wait {
  background: #ffe8ee;
  color: #e11d48;
}

.lock-ico {
  width: 14px;
  height: 14px;
  color: #9aa3af;
  flex-shrink: 0;
}

.meta-muted {
  color: #8b93a0;
  font-size: 12.5px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.pagination button {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
}

.pagination button:hover {
  background: #f1f5f9;
}

.pagination button.is-on {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.pagination span {
  color: #94a3b8;
  padding: 0 4px;
}

.qna-widgets {
  display: grid;
  gap: 14px;
}

.expert-card {
  background: linear-gradient(160deg, #eaf1ff 0%, #f7f9ff 100%);
  border: 1px solid #dbe6fb;
  border-radius: 14px;
  overflow: hidden;
}

.expert-card div {
  padding: 14px 14px 16px;
}

.expert-card p {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.35;
  color: var(--navy-deep);
}

.expert-card a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.expert-card a:hover {
  background: var(--blue-deep);
}

.widget {
  padding: 14px;
}

.widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.widget__head h2 {
  margin: 0;
}

.widget__head a {
  font-size: 12px;
  color: #8b93a0;
}

.widget__head a:hover {
  color: var(--blue);
}

.widget-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  background: #f3f5f8;
  border-radius: 999px;
  padding: 3px;
}

.widget-tabs button {
  flex: 1;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b8491;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.widget-tabs button.is-on {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(28, 55, 90, 0.08);
}

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pop;
}

.popular-list li {
  counter-increment: pop;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid #f1f4f8;
}

.popular-list li:first-child {
  border-top: 0;
}

.popular-list li::before {
  content: counter(pop);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #eef2f8;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.popular-list li:nth-child(-n + 3)::before {
  background: #e8f0ff;
  color: var(--blue);
}

.popular-list a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-list a:hover {
  color: var(--blue);
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-list li + li {
  border-top: 1px solid #f1f4f8;
}

.guide-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

.guide-list img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f6;
}

.guide-list strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.guide-list small {
  display: block;
  margin-top: 3px;
  color: #93a0ae;
  font-size: 11.5px;
}

.qna-footer {
  border-top: 1px solid #e6ebf2;
  background: #fff;
  padding: 20px 0 28px;
}

.qna-footer .footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qna-footer .footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qna-footer .footer__brand strong {
  color: #9aa3af;
  font-size: 18px;
}

.qna-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.qna-footer a {
  font-size: 13px;
  color: #7b8491;
}

.qna-footer p {
  margin: 0;
  font-size: 12px;
  color: #9aa3af;
}

@media (max-width: 1199px) {
  .qna-main__inner {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .qna-widgets {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qna-filterbar {
    position: static;
  }
}

@media (max-width: 767px) {
  .qna-main__inner,
  .qna-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .qna-main__inner,
  .qna-filterbar__inner,
  .qna-footer .footer__inner {
    padding: 0 16px;
  }

  .user-chip span:nth-child(2) {
    display: none;
  }

  .user-chip > svg {
    display: none;
  }

  .qna-footer .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
