@charset "utf-8";
/* ==========================================================================
   우리의집 테마 — 리셋, 타이포, 폼 기본, 유틸리티
   ========================================================================== */

/* ---- 폰트 ---- */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../font/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../font/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('../font/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../font/Pretendard-Bold.woff2') format('woff2');
}

/* ---- 리셋 ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--oh-header-h) + var(--oh-gnb-h) + 16px);
}

body {
  margin: 0;
  background: var(--oh-bg);
  color: var(--oh-text-1);
  font-family: var(--oh-font-sans);
  font-size: var(--oh-fs-14);
  line-height: var(--oh-lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--oh-fw-bold);
  line-height: var(--oh-lh-tight);
  letter-spacing: -.02em;
  color: var(--oh-text-1);
}
h1 { font-size: var(--oh-fs-30); }
h2 { font-size: var(--oh-fs-24); }
h3 { font-size: var(--oh-fs-20); }
h4 { font-size: var(--oh-fs-18); }
h5 { font-size: var(--oh-fs-16); }
h6 { font-size: var(--oh-fs-14); }

p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--oh-t-fast);
}
a:hover { color: var(--oh-primary-hover); }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

table { border-collapse: collapse; border-spacing: 0; width: 100%; }
caption, legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
hr { display: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}
button { background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
textarea { resize: vertical; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--oh-primary);
  outline-offset: 2px;
  border-radius: var(--oh-r-sm);
}

::selection { background: var(--oh-primary); color: var(--oh-on-primary); }

/* ---- 다크 모드 이미지 눈부심 완화 ---- */
[data-theme="dark"] img:not(.oh-no-dim):not([src$=".svg"]) { filter: brightness(.92); }

/* ---- 스크롤바 ---- */
* { scrollbar-width: thin; scrollbar-color: var(--oh-border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--oh-border-strong);
  border-radius: var(--oh-r-full);
  border: 3px solid var(--oh-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--oh-text-3); }

/* ---- 그누보드 코어 잔재 무력화 ---- */
#hd_login_msg { display: none; }
.sound_only, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
#skip_to_container a {
  position: absolute; top: -100px; left: 0;
  z-index: 1000;
  padding: var(--oh-sp-3) var(--oh-sp-5);
  background: var(--oh-primary-strong);
  color: var(--oh-text-inverse);
}
#skip_to_container a:focus { top: 0; }

/* ---- 레이아웃 유틸 ---- */
.oh-container {
  width: 100%;
  max-width: var(--oh-container);
  margin-inline: auto;
  padding-inline: var(--oh-gutter);
}
.oh-container--narrow { max-width: 760px; }
.oh-container--wide { max-width: 1440px; }

.oh-stack > * + * { margin-top: var(--oh-sp-4); }
.oh-row { display: flex; align-items: center; gap: var(--oh-sp-2); }
.oh-row--between { justify-content: space-between; }
.oh-spacer { flex: 1 1 auto; }

.oh-hide { display: none !important; }
@media (max-width: 767px)  { .oh-hide-mo { display: none !important; } }
@media (min-width: 768px)  { .oh-hide-pc { display: none !important; } }
@media (max-width: 1023px) { .oh-hide-tb { display: none !important; } }

/* ---- 텍스트 유틸 ---- */
.oh-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-clamp-1, .oh-clamp-2, .oh-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.oh-clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.oh-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.oh-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

.oh-t2 { color: var(--oh-text-2); }
.oh-t3 { color: var(--oh-text-3); }
.oh-num { font-variant-numeric: tabular-nums; }

/* ---- 아이콘 ---- */
.oh-ico {
  display: inline-block;
  width: 20px; height: 20px;
  flex: 0 0 auto;
  vertical-align: middle;
  color: inherit;
  fill: none;
  pointer-events: none;
}
.oh-ico--sm { width: 16px; height: 16px; }
.oh-ico--lg { width: 24px; height: 24px; }

/* ---- 모션 감축 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
