/* 머리글·바닥글 (layouts/_header·_footer, iter-417) — 첫 화면 톤: 흰 종이·괘선·한강 남색, 맨 위 다홍 선(서두 띠의 노을),
 * 끝은 한강 물결과 남색 바닥. 모든 화면 공통이라 이름은 sb- 로 시작한다. 메뉴 16px·바닥글 15px 이상, 누를 곳 44px 이상(고령 사용자).
 * 머리글 높이 56px(h-14)은 그대로 — 본문 위 여백(pt-14)·상세의 붙는 열이 이 값을 따른다.
 * components 층에 둔다 — 층 밖에 두면 Tailwind 의 hidden·md:hidden(utilities 층)보다 이겨 휴대폰 단추가 PC 에도 보였다.
 * 이 파일이 tailwind.css 보다 먼저 실려(이름 순) 층 순서를 먼저 정한다 — 순서를 적지 않으면 components 가 맨 아래가 되어
 * Tailwind 의 base 초기화(padding·border 0)에 졌다. properties(--tw-* 기본값)도 맨 앞에 — 뒤로 밀리면 그림자·이동 값을 덮는다 */
@layer properties, theme, base, components, utilities;
@layer components {
.sb-hdr { background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.sb-hdr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--color-sunset); }
.sb-hdr-bar { gap: 28px; }
.sb-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--color-text); text-decoration: none; }
.sb-nav { align-self: stretch; gap: 2px; }
.sb-nav a { position: relative; display: flex; align-items: center; padding: 0 12px; font-size: 16px; color: var(--color-text-2); text-decoration: none; white-space: nowrap; }
.sb-nav a:hover { color: var(--color-text); }
.sb-nav a.sb-nav-on { color: var(--color-navy); font-weight: 700; }
.sb-nav a.sb-nav-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--color-navy); }
.sb-hdr-right { display: flex; align-items: center; gap: 12px; }
.sb-login { padding: 8px 4px; font-size: 16px; color: var(--color-text-2); text-decoration: none; }
.sb-login:hover { color: var(--color-text); }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--color-navy); color: var(--color-paper) !important; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.sb-btn:hover { background: var(--color-navy-strong); }
.sb-btn--wide { width: 100%; min-height: 52px; font-size: 17px; }
.sb-btn--line { background: var(--color-paper); color: var(--color-navy) !important; border: 1.5px solid var(--color-navy); }
.sb-btn--line:hover { background: var(--color-navy-wash); }
.sb-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1.5px solid var(--color-navy); border-radius: 999px; color: var(--color-navy); font-size: 14px; font-weight: 700; white-space: nowrap; }
.sb-acct { position: relative; }
.sb-acct summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; cursor: pointer; list-style: none; font-size: 16px; color: var(--color-text); }
.sb-acct summary::-webkit-details-marker { display: none; }
.sb-acct summary svg { width: 14px; height: 14px; }
.sb-acct-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 180px; padding: 6px 0; background: var(--color-paper); border: 1px solid var(--color-rule); box-shadow: 0 10px 24px rgba(22, 24, 29, .12); }
.sb-acct-menu a, .sb-acct-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--color-text); text-align: left; text-decoration: none; cursor: pointer; }
.sb-acct-menu a:hover, .sb-acct-menu button:hover { background: var(--color-navy-wash); }
.sb-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; color: var(--color-text); }
.sb-menu-btn:hover { background: var(--color-navy-wash); }

/* 휴대폰 메뉴 */
.sb-sheet { min-height: calc(100dvh - 3.5rem); background: var(--color-paper); border-top: 1px solid var(--color-rule-soft); }
.sb-sheet ul { list-style: none; margin: 0; padding: 0 16px; }
.sb-sheet li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--color-rule-soft); font-size: 17px; color: var(--color-text); text-decoration: none; }
.sb-sheet li a.sb-nav-on { color: var(--color-navy); font-weight: 700; }
.sb-sheet li a.sb-nav-on span { padding: 2px 8px; border: 1.5px solid var(--color-navy); border-radius: 999px; font-size: 13px; font-weight: 700; }
.sb-sheet-foot { padding: 20px 16px 28px; }
.sb-sheet-foot p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-text-3); text-align: center; }
.sb-sheet-foot .sb-btn + .sb-btn, .sb-sheet-foot p + .sb-btn, .sb-sheet-foot form { margin-top: 10px; }
.sb-sheet-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 15px; color: var(--color-text-3); }

/* 바닥글 */
.sb-maker > div { margin-top: 40px; }
.sb-wave { display: block; width: 100%; height: 56px; margin-top: 40px; }
.sb-foot { padding: 36px 0 28px; background: var(--color-navy); color: var(--color-paper); }
.sb-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.sb-fwm { display: block; height: 30px; width: auto; color: var(--color-paper); }
.sb-fdesc { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--color-navy-100); }
.sb-fpill { display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 700; }
.sb-fcol h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--color-paper); }
/* 터치 기기에서는 tailwind.css 의 nav[aria-label] a 규칙이 44px 로 키운다 — 글자를 그 칸 가운데 두고 사이 여백은 줄인다 */
.sb-fcol a { display: flex; align-items: center; min-height: 32px; margin-bottom: 4px; font-size: 15px; color: var(--color-navy-100); text-decoration: none; }
.sb-fcol a:hover { color: var(--color-paper); text-decoration: underline; text-underline-offset: 3px; }
.sb-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 28px; padding: 16px 20px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 4px; }
.sb-join p { margin: 0; font-size: 16px; font-weight: 700; }
.sb-join small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--color-navy-100); }
.sb-jbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 4px; background: var(--color-paper); color: var(--color-navy) !important; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sb-jbtn:hover { background: var(--color-navy-wash); }
.sb-fbot { display: grid; gap: 6px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; line-height: 1.6; color: var(--color-navy-200); }
.sb-fbot a { color: var(--color-navy-200); }

@media (hover: none) and (pointer: coarse) { .sb-fcol a { margin-bottom: 0; } }

@media (max-width: 767px) {
  .sb-hdr-bar { gap: 8px; }
  .sb-btn { padding: 0 14px; font-size: 15px; }
  .sb-btn--wide { font-size: 17px; }
  .sb-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .sb-foot-brand { grid-column: 1 / -1; }
  .sb-wave { height: 40px; margin-top: 24px; }
  .sb-join .sb-jbtn { width: 100%; }
}
}

/* 포커스 테두리 — 사이트 전체는 남색(tailwind.css :focus-visible, iter-419). 남색 바닥글 안만 흰색. 층 밖 규칙을 이기려면 이것도 층 밖이어야 한다 */
.sb-foot :focus-visible { outline-color: var(--color-paper); }
