/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* 전역 배경 봉인 (TASK-092) — html/body 미선언이면 순백 캔버스가 오버스크롤·
 * 393px 밖 좌우 여백·PWA 상태바(theme-color #FFFCF8와 이질)로 노출된다.
 * TASK-088 bottom-nav 자립화와 같은 처방의 배경판 — 화면 배경은 각 표면이
 * 자기 배경을 명시하되, 최후방 캔버스도 pearl로 고정한다. */
html, body { background: var(--color-bg); }

/* 전역 폰트 봉인 (T96-D14) — body 미선언이면 셀렉터가 안 닿는 화면이 브라우저 기본
 * 명조로 노출된다(policies 페이지 실측 — .policy-page가 font-size만 지정, family 무지정).
 * 디자인 시스템 기본 = tokens --font-sans(Pretendard). 폼 컨트롤은 UA 고유 폰트를 쓰므로
 * 상속을 명시한다 — font-family만 봉인하고 크기·굵기는 각 표면이 결정한다(기존 화면 시각 불변). */
body { font-family: var(--font-sans); }
input, button, textarea, select { font-family: inherit; }

/* 전역 유틸 — 스크린리더 전용 (a11y).
 * 원위치 search.css(TASK-034 신설) → 검색 제거로 이전(TASK-040).
 * 사용처: registrations/new 동의 체크박스(+auth.css input.sr-only 셀렉터). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 사업자 정보 푸터 (TASK-096, T96-D03) — shared/_business_footer, 홈·랜딩 하단 한정.
 * 공유 파셜이라 페이지 CSS가 아닌 여기(전 페이지 로드 유틸층)에 둔다. */
.biz-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.biz-footer__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  color: var(--color-fg-muted);
}
.biz-footer__row {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-snug);
  color: var(--color-fg-subtle);
}
/* 단독 배치(홈) — 랜딩은 landing-footer(bg-muted)가 배경·여백을 이미 부담.
 * 하단 패딩에 네비 높이 합산: 렌더 위치가 .home-content(네비 여백 부담 층) 밖이라
 * 고정 bottom-nav가 마지막 줄을 가린다 — 푸터 배경이 네비 뒤까지 내려가며 본문은 위로 노출. */
.biz-footer--standalone {
  padding: var(--space-8) var(--space-page)
           calc(var(--space-8) + var(--size-bottomnav) + var(--safe-bottom));
  background: var(--color-bg-muted);
}
/* 약관·방침 링크 (TASK-096 본체) — 구 --em 구분 표시는 유저 지시로 해제 (T96-D17) */
.biz-footer__link {
  color: var(--color-fg-subtle);
  text-decoration: underline;
  text-underline-offset: 2px;
}
