html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* 상단 네비 로고 이미지 — 텍스트 '보드몹 IP' 대체 (클릭 시 홈) */
.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

body > header,
body > .site-footer {
  flex: 0 0 auto;
}

body > main {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.site-footer-inner {
  width: min(1600px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 30px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 28px;
  font-size: .78rem;
  font-weight: 500;
}

.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--accent-blue);
}

.site-footer-divider {
  height: 1px;
  margin: 12px 0 20px;
  background: var(--border-color);
}

.site-footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.site-footer-company {
  min-width: 0;
  color: var(--text-secondary);
  font-size: .78rem;
  line-height: 1.8;
}

.site-footer-company-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.site-footer-company-row > span {
  display: inline-flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.site-footer-company-row > span:not(:last-child)::after {
  content: "·";
  margin: 0 10px;
  color: var(--text-muted);
}

.site-footer-company a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer-company a:hover {
  color: var(--accent-blue);
}

.site-footer-copyright {
  flex: 0 0 auto;
  margin: 0;
  font-size: .78rem;
  line-height: 1.8;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 24px;
  }

  .site-footer-inner {
    width: calc(100% - 32px);
    padding: 20px 0 24px;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-footer-company-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-company-row > span:not(:last-child)::after {
    content: none;
  }

  .site-footer-copyright {
    white-space: normal;
  }
}

/* ── 공지 배너 스트립 — 상단 네비 아래 전 페이지 공통 (Grade별 색상) ── */
.notice-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    font-size: .85rem;
    border-bottom: 1px solid;
}

/* display:flex 가 hidden 속성의 UA 기본(display:none)을 덮어쓰므로 명시적으로 복원 — X 닫기/개인 숨김용 */
.notice-strip[hidden] {
    display: none;
}

.notice-strip-tag {
    flex: 0 0 auto;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.notice-strip-text {
    flex: 1 1 auto;
    min-width: 0;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-strip-text:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notice-strip-close {
    flex: 0 0 auto;
    background: none;
    border: 0;
    padding: 0 2px;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .55;
}

.notice-strip-close:hover {
    opacity: 1;
}

/* Grade별 톤 — 스트립 배경/글자/경계 + 배지 색 (팝업 배지 nv-badge-*도 공유) */
.notice-error   { background: #fdf0ef; color: #a02622; border-color: #f2c9c7; }
.notice-caution { background: #fdf6ec; color: #8a5518; border-color: #efd9b8; }
.notice-normal  { background: #eef7ee; color: #2f6a32; border-color: #cfe6d0; }
.notice-event   { background: #eef4fb; color: #245689; border-color: #c9dcf0; }

.notice-error .notice-strip-tag,   .nv-badge-error   { background: var(--accent-red); }
.notice-caution .notice-strip-tag, .nv-badge-caution { background: var(--accent-orange); }
.notice-normal .notice-strip-tag,  .nv-badge-normal  { background: var(--accent-green); }
.notice-event .notice-strip-tag,   .nv-badge-event   { background: var(--accent-blue); }

@media (max-width: 640px) {
    .notice-strip {
        padding: 8px 14px;
    }
}

/* ── 언어 선택기: 현재 언어와 국가를 한눈에 보여주는 상단 내비게이션 컨트롤 ── */
.language-picker {
    position: relative;
    flex: 0 0 auto;
    z-index: 140;
}

.language-picker-toggle {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.language-picker-toggle:hover,
.language-picker.is-open .language-picker-toggle {
    border-color: rgba(47, 111, 181, .55);
    background: var(--tint-blue);
}

.language-picker-toggle:focus-visible,
.language-picker-option:focus-visible {
    outline: 3px solid rgba(47, 111, 181, .24);
    outline-offset: 2px;
}

.language-picker-globe {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-picker-prefix {
    color: var(--accent-blue);
    font-weight: 700;
}

.language-picker-divider { color: var(--text-muted); }

.language-picker-flag,
.language-picker-option-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 22px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .13);
}

.language-picker-chevron {
    width: 16px;
    height: 16px;
    margin-left: 1px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .16s ease;
}

.language-picker.is-open .language-picker-chevron { transform: rotate(180deg); }

.language-picker-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 224px;
    padding: 7px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.language-picker-menu[hidden] { display: none; }

.language-picker-option {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    color: var(--text-primary);
    background: transparent;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color .14s ease, background-color .14s ease;
}

.language-picker-option:hover,
.language-picker-option:focus-visible { background: var(--bg-hover); }

.language-picker-option.is-selected {
    color: var(--accent-blue);
    background: var(--tint-blue);
}

.language-picker-check {
    color: var(--accent-blue);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    opacity: 0;
}

.language-picker-option.is-selected .language-picker-check { opacity: 1; }

.language-picker-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.as-text-cell {
  width: 280px;
  max-width: 320px;
  vertical-align: top;
  white-space: normal;
}

.as-text-wrap {
  display: block;
  max-width: 320px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.ip-expiry-notice-box {
    max-width: 720px;
    padding: 0;
}

.ip-expiry-notice-body {
    max-height: min(55vh, 480px);
    overflow: auto;
    padding: 20px 24px;
}

.ip-expiry-notice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .ip-expiry-notice-box {
        width: calc(100% - 24px);
    }

    .ip-expiry-notice-body {
        padding: 16px;
    }
}
