/* 공지/게시판 — GO-V 시안(패널+테이블) 룩, 상단 셸과 동일 너비 */

.idx-notice {
  --idx-notice-w: 1200px;
  --idx-notice-pad: 12px;
  --idx-notice-blue: #2b7de9;
  --idx-notice-accent: #c62828;
  --idx-notice-event: #1565c0;
  --idx-notice-border: #d0d7de;
  --idx-notice-head: #f0f3f7;
  --idx-notice-row: #ffffff;
  --idx-notice-row-alt: #fafbfc;
  --idx-notice-text: #1a1a1a;
  --idx-notice-muted: #667085;

  position: relative;
  width: 100%;
  max-width: var(--idx-notice-w);
  margin: 0 auto;
  padding: 12px var(--idx-notice-pad) 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.idx-notice__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: #3a4656;
  border: 1px solid #3a4656;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.idx-notice__toolbar-img {
  display: none;
}

.idx-notice__toolbar-title {
  margin: 0;
  font: 700 16px/1.2 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.idx-notice__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: #fff;
  border: 1px solid var(--idx-notice-border);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 40, 70, 0.06);
}

.idx-notice__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.idx-notice__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.idx-notice thead {
  box-shadow: none;
}

.idx-notice thead th {
  padding: 0;
  vertical-align: middle;
  background-clip: padding-box;
}

.idx-notice__th {
  background: var(--idx-notice-head);
  border-bottom: 1px solid var(--idx-notice-border);
  font: 700 14px/1.4 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #333;
  text-align: center;
  padding: 18px 12px;
  min-height: 52px;
  height: 52px;
}

.idx-notice__th:nth-child(1) {
  width: 12%;
  border-radius: 0;
}

.idx-notice__th:nth-child(2) {
  width: 52%;
}

.idx-notice__th:nth-child(3) {
  width: 18%;
}

.idx-notice__th:nth-child(4) {
  width: 18%;
  border-radius: 0;
}

.idx-notice__tr .idx-notice__td:first-child,
.idx-notice__tr .idx-notice__td:last-child {
  border-radius: 0;
}

.idx-notice__td {
  padding: 12px 10px;
  vertical-align: middle;
  background: var(--idx-notice-row);
  border-bottom: 1px solid #e8ecf0;
  font: 400 13px/1.45 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: var(--idx-notice-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-notice__group:nth-child(even of .idx-notice__group) .idx-notice__tr:not(.idx-notice__tr--thread) .idx-notice__td {
  background: var(--idx-notice-row-alt);
}

.idx-notice__td--subject {
  text-align: left;
  white-space: normal;
}

.idx-notice__td--subject .idx-notice__link {
  text-align: left;
  white-space: normal;
  font-weight: 600;
  color: #111;
}

.idx-notice__td--thread {
  padding: 0;
  vertical-align: middle;
  background: #fff;
  white-space: normal;
  border-bottom: 0;
  text-align: left;
}

.idx-notice__thread,
.idx-notice__thread-line,
.idx-notice__thread-line--bet,
.idx-notice__thread-line--bet .idx-cc__detail-line,
.idx-notice__thread-line--bet .idx-cc__detail-pre,
.idx-notice__thread-line--bet .idx-cc__detail-meta {
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.idx-notice__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: 700 12px/1.35 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: 0.02em;
  color: var(--idx-notice-accent);
  background: transparent;
}

.idx-notice__badge[data-kind="event"],
.idx-notice__td--type .idx-notice__badge:is([data-kind="EVENT"], .is-event) {
  color: var(--idx-notice-event);
}

.idx-notice__link {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
  cursor: pointer;
}

.idx-notice__link:hover {
  color: var(--idx-notice-blue);
  text-decoration: underline;
}

.idx-notice__slide {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.idx-notice__group--open .idx-notice__slide {
  grid-template-rows: 1fr;
}

.idx-notice__slide-inner {
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .idx-notice__slide {
    transition: none;
  }
}

.idx-notice__thread {
  margin: 0;
  padding: 16px 18px 20px;
  background: #fff;
  border-top: 1px solid #e8ecf0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
}

.idx-notice__banner {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

.idx-notice__thread-line {
  margin: 0;
  font: 400 13px/1.55 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.01px;
  color: #333;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 관리자 HTML 본문 (표·스타일 안내문 등) */
.idx-notice__thread-html {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font: 400 13px/1.55 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.01px;
  color: #333;
  word-break: break-word;
  box-sizing: border-box;
  overflow-x: auto;
}

.idx-notice__thread-html .wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 관리자 HTML 안내표 — 레거시 게시판(어두운 캡션바 + 박스) */
.idx-notice__thread-html .board_title {
  margin: 0 0 10px;
  font: 700 20px/1.4 "Noto Sans KR", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #111;
}

.idx-notice__thread-html .board_title font[color="#970000"],
.idx-notice__thread-html .board_title font[color="#970000" i] {
  color: #970000 !important;
}

.idx-notice__thread-html .board_subtitle {
  margin: 0 0 18px;
  font: 400 13px/1.55 "Noto Sans KR", Helvetica, sans-serif;
  color: #666;
}

.idx-notice__thread-html .board_subtitle p {
  margin: 0;
}

.idx-notice__thread-html .board_contents,
.idx-notice__thread-html .wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.idx-notice__thread-html .custom_table {
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #cfd5dd;
  border-radius: 6px;
  background: #fff;
  table-layout: fixed;
  box-sizing: border-box;
  overflow: hidden;
}

.idx-notice__thread-html .custom_table.border {
  border: 1px solid #cfd5dd;
}

.idx-notice__thread-html .custom_table caption {
  caption-side: top;
  text-align: left;
  padding: 11px 14px;
  margin: 0;
  font: 700 15px/1.35 "Noto Sans KR", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  background: #2a2f38;
  border: 0;
  border-radius: 5px 5px 0 0;
}

.idx-notice__thread-html .custom_table td {
  padding: 14px 16px 16px;
  border: 0;
  vertical-align: top;
  font: 400 14px/1.75 "Noto Sans KR", Helvetica, sans-serif;
  color: #222;
  background: #fff;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.idx-notice__thread-html .custom_table span {
  color: #2f6fed;
  font-weight: 600;
}

.idx-notice__thread-html .custom_table b {
  color: #970000;
  font-weight: 700;
}

.idx-notice__thread-html img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.idx-notice__thread-html img[src=''],
.idx-notice__thread-html img:not([src]) {
  display: none !important;
}

.idx-notice__thread-html .level_icon:not([src]),
.idx-notice__thread-html .level_icon[src=''] {
  display: none !important;
}

.idx-notice__thread-html .board_contents {
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 767px) {
  .idx-notice__thread-html .board_contents {
    padding: 0;
    border: 0;
  }

  .idx-notice__thread-html .custom_table {
    margin-bottom: 12px;
    border-radius: 5px;
  }

  .idx-notice__thread-html .custom_table caption {
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 4px 4px 0 0;
  }

  .idx-notice__thread-html .custom_table td {
    padding: 12px 12px 14px;
    font-size: 13px;
    line-height: 1.7;
  }
}

.idx-notice__thread-meta {
  margin: 0;
  font: 500 12px/1.45 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  color: var(--idx-notice-blue);
}

.idx-notice__rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--idx-notice-border);
  border-radius: 6px;
  box-sizing: border-box;
}

.idx-notice__rules-ttl {
  margin: 0 0 8px;
  font: 700 14px/1.3 "Noto Sans KR", Helvetica, sans-serif;
  color: #1a1a1a;
}

.idx-notice__rules-list {
  margin: 0;
  padding: 0 0 0 18px;
  font: 400 13px/1.55 "Noto Sans KR", Helvetica, sans-serif;
  color: #333;
}

.idx-notice__rules-list b {
  color: var(--idx-notice-blue);
  font-weight: 700;
}

.idx-notice__comments-box {
  width: 100%;
  margin-top: 14px;
  padding: 14px 0 4px;
  border-top: 1px solid #e8ecf0;
  box-sizing: border-box;
  text-align: left;
}

.idx-notice__comments-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.idx-notice__comments-title {
  margin: 0;
  font: 700 16px/1.3 "Noto Sans KR", Helvetica, sans-serif;
  color: #111;
  letter-spacing: -0.02em;
}

.idx-notice__comments-title b {
  font-weight: 700;
  color: #111;
}

.idx-notice__comments-refresh {
  margin: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  border: 1px solid #d0d7de;
  border-radius: 50%;
  background: #fff;
  color: #667085;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.idx-notice__comment-compose {
  margin: 0 0 14px;
  padding: 12px 14px 10px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.idx-notice__comment-input {
  display: block;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  font: 400 14px/1.5 "Noto Sans KR", Helvetica, sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
}

.idx-notice__comment-input::placeholder {
  color: #98a2b3;
}

.idx-notice__comment-compose-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.idx-notice__comment-submit {
  margin: 0;
  padding: 7px 16px;
  border: 0;
  border-radius: 6px;
  background: #3a4656;
  color: #fff;
  font: 700 13px/1.2 "Noto Sans KR", Helvetica, sans-serif;
  cursor: pointer;
}

.idx-notice__comment-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.idx-notice__comments-sort {
  margin: 0 0 4px;
  font: 600 13px/1.4 "Noto Sans KR", Helvetica, sans-serif;
  color: #333;
}

.idx-notice__comments-list {
  display: flex;
  flex-direction: column;
}

.idx-notice__comment {
  --comment-depth: 0;
  position: relative;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 14px 2px 14px calc(2px + (var(--comment-depth) * 28px));
  border-bottom: 1px solid #eef1f4;
  background: transparent;
  text-align: left;
  box-sizing: border-box;
}

.idx-notice__comment:last-child {
  border-bottom: 0;
}

.idx-notice__comment.is-reply {
  background: transparent;
}

.idx-notice__comment-rail {
  display: none !important;
}

.idx-notice__comment-avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8ecf0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.idx-notice__comment.is-reply .idx-notice__comment-avatar {
  width: 30px;
  height: 30px;
}

.idx-notice__comment-avatar img {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}

.idx-notice__comment-main {
  flex: 1 1 auto;
  min-width: 0;
}

.idx-notice__comment-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
}

.idx-notice__comment-nick {
  font: 700 13px/1.3 "Noto Sans KR", Helvetica, sans-serif;
  color: #222;
}

.idx-notice__comment-depth-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8f1fc;
  color: #2b7de9;
  font: 700 11px/1.4 "Noto Sans KR", Helvetica, sans-serif;
}

.idx-notice__comment-reply-to {
  margin: 0 0 6px;
  font: 500 12px/1.35 "Noto Sans KR", Helvetica, sans-serif;
  color: #667085;
}

.idx-notice__comment-reply-to b {
  color: #2b7de9;
  font-weight: 700;
}

.idx-notice__comment-body {
  margin: 0 0 6px;
  font: 400 14px/1.5 "Noto Sans KR", Helvetica, sans-serif;
  color: #1a1a1a;
  white-space: pre-wrap;
  word-break: break-word;
}

.idx-notice__comment-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}

.idx-notice__comment-time {
  display: inline-block;
  font: 400 12px/1.3 "Noto Sans KR", Helvetica, sans-serif;
  color: #98a2b3;
}

.idx-notice__comment-reply-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: 700 12px/1.3 "Noto Sans KR", Helvetica, sans-serif;
  color: #667085;
  cursor: pointer;
}

.idx-notice__comment-reply-btn:hover {
  color: #2b7de9;
}

.idx-notice__comment-reply-compose {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #f8fafc;
  box-sizing: border-box;
}

.idx-notice__comment-reply-compose[hidden] {
  display: none !important;
}

.idx-notice__comment-reply-compose .idx-notice__comment-input {
  min-height: 56px;
}

.idx-notice__comment-cancel {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: 700 12px/1.2 "Noto Sans KR", Helvetica, sans-serif;
  cursor: pointer;
}

.idx-notice__comment-empty {
  margin: 12px 0;
  font: 400 13px/1.4 "Noto Sans KR", Helvetica, sans-serif;
  color: #98a2b3;
}

@media (max-width: 767px) {
  .idx-notice__rules {
    grid-template-columns: 1fr;
  }

  .idx-notice__comment-avatar {
    width: 32px;
    height: 32px;
  }
}

.idx-notice__tag {
  font-weight: 700;
  margin-right: 2px;
}

.idx-notice__tag--notice {
  color: var(--idx-notice-accent);
}

.idx-notice__tag--event {
  color: var(--idx-notice-event);
}

.idx-notice__num {
  font: 500 13px/1.35 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  color: var(--idx-notice-muted);
}

.idx-notice__comments {
  color: var(--idx-notice-blue);
  font-weight: 600;
  margin-left: 2px;
}

.idx-notice__author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.idx-notice__author-ico {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.idx-notice__level {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e8f1fc;
  color: #2b7de9;
  border: 1px solid #c9ddf7;
  font: 700 11px/1 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-sizing: border-box;
}

.idx-notice__author-name,
.idx-notice__author > span:not(.idx-notice__level) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-notice__group--pinned .idx-notice__tr:not(.idx-notice__tr--thread) .idx-notice__td {
  background: #f7f9fc;
}

.idx-notice__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 16px 16px 18px;
  box-sizing: border-box;
  border-top: 1px solid #e2e8f0;
  background: #f7f8fa;
}

.idx-notice__foot-actions {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.idx-notice__list-btn,
.idx-notice__write-btn {
  margin: 0;
  min-width: 96px;
  padding: 11px 22px;
  border-radius: 6px;
  font: 700 14px/1.25 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.idx-notice__list-btn {
  border: 1px solid #c5ccd6;
  background: #fff;
  color: #3a4656;
}

.idx-notice__list-btn:hover {
  background: #f5f7fa;
}

.idx-notice__write-btn {
  border: 0;
  background: var(--idx-notice-blue);
  color: #fff;
}

.idx-notice__write-btn:hover {
  filter: brightness(1.05);
}

.idx-notice__compose {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(20, 28, 40, 0.45);
  box-sizing: border-box;
}

.idx-notice__compose[hidden] {
  display: none !important;
}

.idx-notice__compose-panel {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--idx-notice-border);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(15, 40, 70, 0.18);
  padding: 18px 20px 20px;
  box-sizing: border-box;
}

.idx-notice__compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.idx-notice__compose-head h3 {
  margin: 0;
  font: 700 16px/1.3 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  color: #1a1a1a;
}

.idx-notice__compose-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #667085;
  cursor: pointer;
  padding: 0 4px;
}

.idx-notice__compose-label {
  display: block;
  margin: 0 0 6px;
  font: 600 13px/1.3 "Noto Sans KR", Helvetica, sans-serif;
  color: #333;
}

.idx-notice__compose-input,
.idx-notice__compose-textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--idx-notice-border);
  border-radius: 4px;
  font: 400 14px/1.45 "Noto Sans KR", Helvetica, sans-serif;
  color: #1a1a1a;
  background: #fff;
}

.idx-notice__compose-textarea {
  resize: vertical;
  min-height: 160px;
}

.idx-notice__compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.idx-notice__compose-cancel,
.idx-notice__compose-submit {
  margin: 0;
  padding: 8px 16px;
  border-radius: 4px;
  font: 700 13px/1.2 "Noto Sans KR", Helvetica, sans-serif;
  cursor: pointer;
}

.idx-notice__compose-cancel {
  border: 1px solid var(--idx-notice-border);
  background: #fff;
  color: #333;
}

.idx-notice__compose-submit {
  border: 0;
  background: var(--idx-notice-blue);
  color: #fff;
}

.idx-notice__compose-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.idx-notice__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0;
}

.idx-notice__foot .idx-notice__pager {
  margin: 0;
}

.idx-notice__pager .pagination {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 4px;
}

.idx-notice__pager .pagination::before,
.idx-notice__pager .pagination::after {
  content: " ";
  display: table;
}

.idx-notice__pager .pagination::after {
  clear: both;
}

.idx-notice__pager .pagination > li {
  display: inline;
}

.idx-notice__pager .pagination > li > a,
.idx-notice__pager .pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
  font: 400 14px/1.42857143 "Noto Sans KR", Helvetica, sans-serif;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 36px;
  text-align: center;
}

.idx-notice__pager .pagination > li:first-child > a,
.idx-notice__pager .pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.idx-notice__pager .pagination > li:last-child > a,
.idx-notice__pager .pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.idx-notice__pager .pagination > li > a:hover,
.idx-notice__pager .pagination > li > a:focus {
  z-index: 2;
  color: #23527c;
  background-color: #eee;
  border-color: #ddd;
}

.idx-notice__pager .pagination > li > a[aria-current="page"],
.idx-notice__pager .pagination > .active > a,
.idx-notice__pager .pagination > .active > span {
  z-index: 3;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}

.idx-notice__pager .pagination > li > a[aria-current="page"] b,
.idx-notice__pager .pagination > .active > a b {
  font-weight: 700;
  color: inherit;
}

.idx-notice__pager .pagination > .disabled > a,
.idx-notice__pager .pagination > .disabled > span {
  color: #9aa3b2;
  cursor: not-allowed;
  background-color: #f5f7fa;
  border-color: #ddd;
  pointer-events: none;
}

@media (max-width: 767px) {
  .idx-notice {
    padding: 8px 10px 20px;
  }

  .idx-notice__toolbar {
    padding: 12px 14px;
  }

  .idx-notice__card {
    overflow: visible;
    border-radius: 6px;
  }

  /* 모바일: 표 → 카드 리스트 */
  .idx-notice__table,
  .idx-notice__table > thead,
  .idx-notice__table > tbody,
  .idx-notice__table > tbody > tr {
    display: block;
    width: 100%;
  }

  .idx-notice__table > thead {
    display: none;
  }

  .idx-notice__group {
    display: block;
    border-bottom: 1px solid #e8ecf0;
    background: #fff;
  }

  .idx-notice__group:last-of-type {
    border-bottom: 0;
  }

  .idx-notice__tr:not(.idx-notice__tr--thread) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 14px;
    box-sizing: border-box;
  }

  .idx-notice__tr:not(.idx-notice__tr--thread) > .idx-notice__td {
    border: 0;
    background: transparent !important;
    padding: 0;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .idx-notice__td--type {
    display: none !important;
  }

  .idx-notice__td--subject {
    display: block !important;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  .idx-notice__td--author {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    align-items: center;
  }

  .idx-notice__td--date {
    display: block !important;
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--idx-notice-muted);
    font: 500 11px/1.3 "Noto Sans KR", "Inter", Helvetica, sans-serif;
    white-space: nowrap;
  }

  .idx-notice__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .idx-notice__author {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
  }

  .idx-notice__author-name {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .idx-notice__level {
    flex: 0 0 auto;
  }

  .idx-notice__tr--thread {
    display: block;
    padding: 0;
  }

  .idx-notice__td--thread,
  .idx-notice__td--loading,
  .idx-notice__td[colspan] {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .idx-notice__td--loading,
  .idx-notice__td[colspan]:not(.idx-notice__td--thread) {
    padding: 20px 14px;
    text-align: center;
    color: var(--idx-notice-muted);
  }

  .idx-notice__foot {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 14px 12px 16px;
    min-height: 0;
  }

  .idx-notice__foot-actions {
    position: static;
    transform: none;
    align-self: center;
    justify-content: center;
    width: 100%;
  }

  .idx-notice__list-btn,
  .idx-notice__write-btn {
    min-width: 104px;
    padding: 12px 22px;
    font-size: 15px;
  }

  .idx-notice__thread {
    padding: 14px 12px 16px;
  }

  .idx-notice__thread-line--bet .element-betlist.idx-cc__bet-ticket-snapshot,
  .idx-notice__thread-line--bet .element-betlist.idx-cc__bet-ticket-snapshot.idx-betlist--gov {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .idx-notice__compose-panel {
    width: min(100%, 100vw - 24px);
    max-height: min(90vh, 640px);
  }
}

/* 로그인 GO-V 셸과 동일 콘텐츠 폭 */
.idx-page.idx-page--logged-in .idx-notice {
  max-width: var(--gov-content-w, 1200px);
  padding-left: var(--gov-content-pad, 12px);
  padding-right: var(--gov-content-pad, 12px);
}
