/* ============================================
   NVP 기본 스타일 — UI 작업 시 이 파일을 확장
   ============================================ */

:root {
  --color-primary: #2563eb;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-border: #e5e7eb;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Pretendard",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* 헤더 */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.site-logo {
  font-size: 1.25rem;
}

/* 메인 */
.site-main {
  min-height: 60vh;
  padding: 2rem 0;
}

.site-main.full-width {
  padding: 0;
}

.hero {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--color-text-muted);
}

/* 푸터 */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* 에러 페이지 */
.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-page h2 {
  font-size: 4rem;
  color: var(--color-primary);
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 0.5rem;
}

/* ─── 게시판 ─── */
.board {
  margin: 0 auto;
}
.board-head {
  padding: 8px 0 20px;
  border-bottom: 2px solid var(--color-text);
}
.board-head h2 {
  font-size: 1.5rem;
}
.board-head p {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.board-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
}
.board-cats .cat {
  padding: 5px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.board-cats .cat.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.board-search {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  justify-content: flex-end;
}
.board-search input {
  height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  width: 220px;
}
.board-search input:focus {
  border-color: var(--color-primary);
}
.board-search button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.board-list {
  list-style: none;
  border-top: 1px solid var(--color-border);
}
.board-list li {
  border-bottom: 1px solid var(--color-border);
}
.board-list li.notice {
  background: #f8faff;
}
.board-list li.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-muted);
}
.board-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
}
.board-list a:hover .bl-title {
  color: var(--color-primary);
}
.bl-title {
  font-weight: 500;
  min-width: 0;
}
.bl-title .badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-style: normal;
  margin-right: 4px;
}
.bl-title .cat-label {
  color: var(--color-primary);
  font-style: normal;
  font-size: 0.85rem;
}
.bl-title .cmt {
  color: var(--color-primary);
  font-style: normal;
  font-size: 0.85rem;
}
.bl-title .clip {
  font-style: normal;
  font-size: 0.85rem;
}
.bl-meta {
  flex-shrink: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.board-paging {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 20px 0;
}
.board-paging a,
.board-paging .cur {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.board-paging a:hover {
  background: #f5f5f5;
}
.board-paging .cur {
  border: 1px solid var(--color-border);
  font-weight: 700;
}

/* 글 보기 */
.post-view .post-head {
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--color-border);
}
.post-board {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
}
.post-view h2 {
  font-size: 1.4rem;
  margin-top: 6px;
}
.post-view h2 .badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.8rem;
  font-style: normal;
  vertical-align: middle;
}
.post-meta {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.post-content {
  padding: 24px 4px;
  line-height: 1.8;
  word-break: break-word;
}
.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 20px 0 8px;
}
.post-content p {
  margin: 6px 0;
}
.post-content ol,
.post-content ul {
  margin: 8px 0 8px 24px;
}
.post-content li[data-list="bullet"] {
  list-style-type: disc;
}
.post-content li[data-list="ordered"] {
  list-style-type: decimal;
}
.post-content blockquote {
  margin: 12px 0;
  padding: 8px 16px;
  border-left: 4px solid var(--color-primary);
  background: #f8fafc;
  color: var(--color-text-muted);
}
.post-content pre {
  margin: 12px 0;
  padding: 14px 16px;
  background: #1a2332;
  color: #e5e7eb;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
}
.post-content img {
  max-width: 100%;
  border-radius: 8px;
}
/* 에디터 이미지 정렬/리사이즈 (quill-blot-formatter) */
.post-content [class^="ql-image-align-"] {
  display: flex;
  flex-wrap: wrap;
  width: var(--resize-width, auto);
  max-width: 100%;
}
.post-content [class^="ql-image-align-"] > img {
  flex: 1 1 auto;
}
.post-content .ql-image-align-left,
.post-content .ql-iframe-align-left {
  float: left;
  margin: 0.5rem 1rem 0.5rem 0;
}
.post-content .ql-image-align-center,
.post-content .ql-iframe-align-center {
  margin: 1rem auto;
}
.post-content .ql-image-align-right,
.post-content .ql-iframe-align-right {
  float: right;
  margin: 0.5rem 0 0.5rem 1rem;
}
.post-content iframe.rich-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.post-files {
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.post-files h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.post-files ul {
  list-style: none;
}
.post-files li {
  padding: 3px 0;
  font-size: 0.9rem;
}
.post-files span {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.post-comments {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}
.post-comments h4 {
  margin-bottom: 12px;
}
.post-comments .empty {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.c-meta {
  font-size: 0.85rem;
}
.c-meta strong {
  font-weight: 700;
}
.c-body {
  margin-top: 4px;
  font-size: 0.95rem;
}

/* 댓글 작성 폼 */
.comment-form {
  margin-top: 16px;
}
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.comment-form textarea:focus {
  border-color: var(--color-primary);
}
.comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.comment-form-foot .cf-user {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.comment-form-foot button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.comment-login-guide {
  margin-top: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.comment-login-guide a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}
.post-foot {
  padding: 24px 0;
  text-align: center;
}
.btn-list {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.btn-list:hover {
  background: #f5f5f5;
}

/* ─── 게시판 스킨: 갤러리 ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px 0;
}
.gallery-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.gallery-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.gallery-card .thumb {
  display: block;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  overflow: hidden;
}
.gallery-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card .no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #d1d5db;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}
.gallery-card .g-title {
  display: block;
  padding: 12px 14px 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.gallery-card .g-meta {
  display: block;
  padding: 0 14px 12px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ─── 게시판 스킨: 웹진 ─── */
.webzine-list {
  padding: 8px 0;
}
.webzine-item {
  display: flex;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-border);
}
.webzine-item:hover .wz-title {
  color: var(--color-primary);
}
.wz-thumb {
  flex: 0 0 200px;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}
.wz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wz-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wz-title {
  font-weight: 700;
  font-size: 1.05rem;
}
.wz-title .cat-label {
  color: var(--color-text);
  font-style: normal;
  font-weight: 400;
  font-size: 0.85rem;
}
.wz-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.wz-meta {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: auto;
}
@media (max-width: 640px) {
  .webzine-item {
    flex-direction: column;
  }
  .wz-thumb {
    flex: none;
  }
}

/* ─── 본문 표 기본 양식 ─── */
.post-content h1,
.post-content h2 {
  padding-left: 15px;
  border-left: 4px solid #eff2f8;
  line-height: 2.5;
}
.post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 0.92rem;
}
.post-content td,
.post-content th {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
}
.post-content th,
.post-content thead td,
.post-content tr:first-child td {
  background: #f5f7fa;
  font-weight: 600;
}

/* ─── 헤더 공지 바 ─── */
.header-notice {
  background: var(--color-primary, #2a85ff);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}

/* ─── 헤더 로고 이미지 ─── */
.site-logo img.logo {
  display: block;
  max-height: 27px;
  width: auto;
}

/* ─── 메인 내비게이션 (DB 메뉴, 2뎁스 드롭다운) ─── */
.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 17px;
  border-radius: 8px;
}
.nav-item > a:hover {
  background: rgba(42, 133, 255, 0.08);
  color: var(--color-primary, #2a85ff);
}
/* PC: 호버 시 헤더 하단 100% 폭 밴드로 서브메뉴 펼침 */
.site-header {
  position: relative;
}
.nav-item {
  position: static; /* .nav-sub가 .site-header 기준으로 전체 폭을 차지하도록 */
}
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border-top: 1px solid var(--color-border, #e9eaeb);
  border-bottom: 1px solid var(--color-border, #e9eaeb);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 16px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  /* 닫힘에만 살짝 딜레이 — 메뉴에서 밴드까지 포인터 이동 중 닫히는 것 방지 */
  transition:
    opacity 0.18s ease 0.12s,
    transform 0.18s ease 0.12s,
    visibility 0.18s ease 0.12s;
  z-index: 50;
}
.nav-item.has-sub:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-sub a {
  display: block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-sub a:hover {
  background: rgba(42, 133, 255, 0.08);
  color: var(--color-primary, #2a85ff);
}

/* ─── 푸터 ─── */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-menu a {
  font-size: 13px;
  opacity: 0.85;
}
.footer-menu a:hover {
  opacity: 1;
}
.footer-sns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-sns a {
  font-size: 13px;
  opacity: 0.75;
}
.footer-sns a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-logo img {
  max-height: 32px;
  margin-bottom: 12px;
  opacity: 0.9;
}
.footer-info {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.footer-info strong {
  opacity: 1;
}
.footer-html {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 8px;
}
.footer-html a {
  text-decoration: underline;
}

/* ─── 다크 헤더 변형 ─── */
.site-header--dark {
  background: #14151a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header--dark .site-logo a {
  color: #fff;
}
.site-header--dark .nav-item > a {
  color: rgba(255, 255, 255, 0.85);
}
.site-header--dark .nav-item > a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.site-header--dark .nav-sub {
  background: #14151a;
  border-color: rgba(255, 255, 255, 0.08);
}
.site-header--dark .nav-sub a {
  color: rgba(255, 255, 255, 0.85);
}
.site-header--dark .nav-sub a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.site-header--dark .ha-link {
  color: rgba(255, 255, 255, 0.7);
}
.site-header--dark .ha-link.strong {
  color: #fff;
}

/* ─── HTML 페이지 임베드(공통 헤더/푸터 래핑) ─── */
.page-embed-body {
  margin: 0;
}
.page-embed {
  min-height: 50vh;
}

/* ─── 모바일 내비 (햄버거 + 우측 드로어) ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #171717;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.site-header--dark .nav-toggle span {
  background: #fff;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 23, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 998;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mobile-nav.open {
  transform: translateX(0);
}
body.nav-locked {
  overflow: hidden;
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border, #e9eaeb);
}
.mobile-nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
}
.mobile-nav-logo img {
  max-height: 32px;
  display: block;
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #717680;
  cursor: pointer;
  padding: 4px 8px;
}
.mobile-nav-close:hover {
  color: #171717;
}

.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
}
.mobile-nav-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  color: #171717;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.m-link:hover {
  background: rgba(42, 133, 255, 0.06);
  color: var(--color-primary, #2a85ff);
}
.m-arrow {
  font-size: 18px;
  color: #a3a3a3;
  transition: transform 0.25s ease;
}
.m-item.expanded > .m-group .m-arrow {
  transform: rotate(90deg);
}
.m-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: #fafafb;
}
.m-sub .m-link {
  padding: 11px 22px 11px 34px;
  font-size: 14px;
  font-weight: 500;
  color: #414651;
}

/* 모바일 전환: 데스크톱 내비 숨김 + 햄버거 표시 */
@media (max-width: 960px) {
  .site-nav .nav-list {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}
@media (min-width: 961px) {
  .nav-toggle,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none;
  }
}

/* ═══ 인증 화면 (로그인/회원가입/비밀번호 찾기) — 피그마 유저 로그인 계열 ═══ */
.auth-body {
  margin: 0;
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    sans-serif;
  color: #171717;
  background: #fff;
}
.auth-split {
  display: flex;
  min-height: 100vh;
  padding: 16px;
  gap: 16px;
  box-sizing: border-box;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.auth-box {
  width: 386px;
  max-width: 100%;
}
.auth-box.narrow {
  width: 400px;
}
.auth-logo {
  height: 50px;
  margin-bottom: 20px;
  display: block;
}

.auth-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin: 0;
}
.auth-sub {
  font-size: 14px;
  line-height: 21px;
  color: #171717;
  margin: 8px 0 0;
}
.auth-form {
  padding-top: 32px;
}
.auth-field {
  margin-bottom: 24px;
}
.auth-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.auth-field input {
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  box-sizing: border-box;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  min-width: 300px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: #286cf0;
  box-shadow: 0 0 0 3px rgba(40, 108, 240, 0.12);
}
.auth-field input::placeholder {
  color: #a4a7ae;
}
.auth-pw-wrap {
  position: relative;
}
.auth-pw-wrap input {
  padding-right: 38px;
}
.auth-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.45;
  padding: 4px;
}
.auth-pw-toggle:hover,
.auth-pw-toggle.on {
  opacity: 0.9;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -8px 0 24px;
  font-size: 14px;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #414651;
  cursor: pointer;
}
.auth-link {
  color: #171717;
  font-weight: 500;
  text-decoration: none;
}
.auth-link:hover {
  color: #286cf0;
  text-decoration: underline;
}

.auth-submit {
  display: block;
  width: 100%;
  height: 38px;
  background: #286cf0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-submit:hover {
  background: #1d5cd8;
}
.auth-submit.lg {
  height: 48px;
  font-size: 16px;
}
.auth-back {
  display: block;
  width: 100%;
  background: none;
  border: none;
  margin-top: 14px;
  font-size: 13px;
  color: #717680;
  font-family: inherit;
  cursor: pointer;
}
.auth-back:hover {
  color: #171717;
}

.auth-alert {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 16px;
}
.auth-alert.info {
  background: #eff4ff;
  border-color: rgba(40, 108, 240, 0.3);
  color: #1d5cd8;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 32px;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
}
.auth-divider span {
  flex: 1;
  border-top: 1px solid #e5e5e5;
}
.auth-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.auth-social-btn:hover {
  background: #fafafb;
  border-color: #a4a7ae;
}
.auth-social-ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.ico-google {
  background-image: url("/public/assets/social/google.svg");
}
.ico-kakao {
  background-image: url("/public/assets/social/kakao.svg");
}
.ico-naver {
  background-image: url("/public/assets/social/naver.svg");
}

.auth-foot {
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #717680;
}
.auth-foot .muted {
  color: #717680;
}

/* 회원가입 단계 전환 */
.auth-step {
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.auth-step.leaving {
  opacity: 0;
  transform: translateX(-14px);
}
.auth-step.entering {
  opacity: 0;
  transform: translateX(14px);
}
.auth-type-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}
.auth-type-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  text-align: left;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.auth-type-card:hover {
  border-color: #a4a7ae;
}
.auth-type-card.active {
  border-color: #286cf0;
  box-shadow: 0 0 0 3px rgba(40, 108, 240, 0.1);
}
.auth-type-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-type-body strong {
  font-size: 16px;
  font-weight: 600;
}
.auth-type-body span {
  font-size: 14px;
  line-height: 21px;
  color: #717680;
}
.auth-type-ico {
  font-size: 44px;
  display: flex;
  align-items: center;
}
#step1 .auth-submit {
  margin-top: 32px;
}

/* 우측 블루 패널 */
.auth-side {
  position: relative;
  flex: 1;
  max-width: 55%;
  background: #286cf0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-side-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 235px 235px;
  background-position: center;
}
.auth-side-card {
  position: relative;
  width: 470px;
  max-width: 86%;
  padding: 48px 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.auth-side-logo {
  height: 30px;
  margin-bottom: 50px;
  display: block;
}
.auth-side-card h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}
.auth-side-card p {
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
  opacity: 0.8;
  margin: 0 0 32px;
}
.auth-side-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: #171717;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.auth-side-btn:hover {
  background: #f5f5f5;
}

@media (max-width: 1024px) {
  .auth-side {
    display: none;
  }
  .auth-split {
    padding: 24px 16px;
  }
  .auth-main {
    overflow: hidden;
  }
}

/* ─── 상품 본문 폭 — .public-main은 풀폭 페이지와 공용이라 상품 섹션에만 적용 ─── */
.public-main > .prod-section,
.public-main > .prod-detail,
.public-main > .product-tabs {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 50px;
}
.public-main > .prod-section {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* ─── 상품/서비스 목록 ─── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  padding: 20px 0;
}
.prod-card {
  display: block;
  border: 1px solid var(--color-border, #e9eaeb);
  border-radius: 14px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  background: #fff;
}
.prod-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}
.prod-card-thumb {
  display: block;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  overflow: hidden;
}
.prod-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-card-thumb .no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #d1d5db;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}
.prod-card-body {
  display: block;
  padding: 14px 16px 16px;
}
.prod-card-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary, #2a85ff);
  margin-bottom: 4px;
}
.prod-card-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}
.prod-card-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted, #717680);
  margin-top: 4px;
  line-height: 1.5;
}
.prod-card-price {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.02rem;
}
.prod-card-price small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-muted, #717680);
  margin-left: 4px;
}

/* ─── 상품 상세 ─── */
.prod-detail {
  padding: 24px 0 48px;
}
.prod-top {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.prod-gallery {
  flex: 1 1 420px;
  max-width: 560px;
}
.prod-gallery-main {
  border: 1px solid var(--color-border, #e9eaeb);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f8f9fa;
}
.prod-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pg-thumb {
  width: 68px;
  height: 52px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #f3f4f6;
  opacity: 0.7;
  transition: all 0.15s;
}
.pg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-thumb:hover {
  opacity: 1;
}
.pg-thumb.active {
  border-color: var(--color-primary, #2a85ff);
  opacity: 1;
}
.prod-summary {
  flex: 1 1 320px;
}
.prod-cat {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary, #2a85ff);
  margin-bottom: 6px;
}
.prod-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 10px;
}
.prod-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted, #717680);
  line-height: 1.7;
  margin: 0 0 18px;
}
.prod-price {
  padding: 16px 0;
  border-top: 1px solid var(--color-border, #e9eaeb);
  border-bottom: 1px solid var(--color-border, #e9eaeb);
}
.prod-price strong {
  font-size: 1.6rem;
  font-weight: 800;
}
.prod-price .unit {
  font-size: 1rem;
  color: var(--color-text-muted, #717680);
}
.prod-price small {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted, #717680);
  margin-top: 2px;
}
.prod-stock {
  font-size: 0.9rem;
  margin-top: 12px;
}
.prod-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.prod-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-border, #d5d7da);
}
.prod-btn.primary {
  background: var(--color-primary, #2a85ff);
  border-color: var(--color-primary, #2a85ff);
  color: #fff;
}
.prod-btn.primary:hover {
  filter: brightness(0.94);
}
.prod-content {
  max-width: 860px;
}

/* ─── Quill 풀 툴바 렌더 지원 (정렬/들여쓰기/크기/배경) ─── */
.post-content .ql-align-center {
  text-align: center;
}
.post-content .ql-align-right {
  text-align: right;
}
.post-content .ql-align-justify {
  text-align: justify;
}
.post-content .ql-size-small {
  font-size: 0.78em;
}
.post-content .ql-size-large {
  font-size: 1.4em;
}
.post-content .ql-size-huge {
  font-size: 1.9em;
}
.post-content .ql-indent-1 {
  padding-left: 2em;
}
.post-content .ql-indent-2 {
  padding-left: 4em;
}
.post-content .ql-indent-3 {
  padding-left: 6em;
}
.post-content .ql-indent-4 {
  padding-left: 8em;
}
.post-content blockquote {
  border-left: 4px solid var(--color-border, #d5d7da);
  margin: 12px 0;
  padding: 4px 16px;
  color: var(--color-text-muted, #57606a);
}
.post-content pre,
.post-content .ql-code-block-container {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: Consolas, monospace;
  font-size: 0.85em;
  overflow-x: auto;
}
.post-content .rich-video {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  display: block;
  margin: 14px 0;
}
.post-content img {
  max-width: 100%;
  border-radius: 8px;
}
.post-content li[data-list="bullet"] {
  list-style-type: disc;
}
.post-content li[data-list="ordered"] {
  list-style-type: decimal;
}
.post-content ol,
.post-content ul {
  padding-left: 24px;
  margin: 10px 0;
}

/* ─── 상품 가격 모드 (견적/옵션) ─── */
.quote-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(42, 133, 255, 0.1);
  color: var(--color-primary, #2a85ff);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}
.prod-price.quote strong {
  font-size: 1.35rem;
  color: var(--color-primary, #2a85ff);
}
.prod-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.prod-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--color-border, #e9eaeb);
  border-radius: 10px;
}
.prod-opt .po-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prod-opt .po-body strong {
  font-size: 0.95rem;
}
.prod-opt .po-body span {
  font-size: 0.82rem;
  color: var(--color-text-muted, #717680);
}
.prod-opt .po-price {
  font-weight: 700;
  white-space: nowrap;
}
.prod-opt .po-price small {
  font-weight: 400;
  color: var(--color-text-muted, #717680);
}

/* ─── 헤더 로그인/마이페이지 링크 ─── */
.header-auth {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 16px;
}
.ha-link {
  font-size: 15px;
  color: var(--color-text-muted, #717680);
}
.ha-link.strong {
  font-weight: 700;
  color: #171717;
}
.ha-link:hover {
  color: var(--color-primary, #2a85ff);
}
@media (max-width: 960px) {
  .header-auth {
    display: none;
  }

  .site-footer {
    padding: 2rem 20px;
  }
}

/* ─── 마이페이지 / 주문 조회 ─── */
.my-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 64px;
}
.my-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 24px 0 12px;
}
.my-count {
  font-size: 0.85rem;
  color: var(--color-primary, #2a85ff);
}
.my-order-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.my-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--color-border, #e9eaeb);
  border-radius: 12px;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.my-order-item:hover {
  border-color: #a4a7ae;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}
.mo-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mo-no {
  font-size: 0.75rem;
  color: var(--color-text-muted, #717680);
  font-family: Consolas, monospace;
}
.mo-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.mo-meta {
  font-size: 0.78rem;
  color: var(--color-text-muted, #717680);
}
.mo-side {
  text-align: right;
  white-space: nowrap;
}
.mo-amount {
  display: block;
  font-weight: 800;
  font-size: 1rem;
}
.mo-status {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}
.my-card {
  border: 1px solid var(--color-border, #e9eaeb);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  background: #fff;
}
.my-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.my-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.my-table td {
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f3;
}
.my-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.my-table .muted td {
  color: var(--color-text-muted, #717680);
  font-weight: 400;
}
.my-table tfoot td {
  border-bottom: none;
  padding-top: 12px;
  font-weight: 700;
}
.my-table tfoot .total {
  font-size: 1.15rem;
}
.my-table tfoot small {
  font-weight: 400;
  color: var(--color-text-muted, #717680);
}
.my-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 10px;
  font-size: 0.88rem;
  margin: 0;
}
.my-dl dt {
  color: var(--color-text-muted, #717680);
}
.my-dl dd {
  margin: 0;
}
.my-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.my-btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--color-border, #d5d7da);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}
.my-btn.primary {
  background: var(--color-primary, #2a85ff);
  border-color: var(--color-primary, #2a85ff);
  color: #fff;
}
.my-alert {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.my-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.my-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}
.my-input:focus {
  outline: none;
  border-color: var(--color-primary, #2a85ff);
  box-shadow: 0 0 0 3px rgba(42, 133, 255, 0.12);
}
