/* 세부장 공개 사이트 · 허브(내 스페이스) (docs/30). 제품과 같은 색 · 글자 · 선을 쓴다.
   이 파일에도 색 값을 직접 쓰지 않는다 — tokens.css 의 var(--…) 만 (DesignLintTests 가 같이 본다).
   .sbj 의 바탕 규칙(.sbj h1 · .sbj p · .sbj a)을 이겨야 하는 것은 .sbj 아래에 둔다. */

/* ------------------------------------------------------------------ 틀 */
.sbj-site { font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
.sbj .sbj-site p, .sbj.sbj-site p { margin: 0; }
.sbj-site__wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.sbj-site__bar { background: var(--rail); color: var(--rail-text); font-size: 13px; line-height: 1.5; padding: 8px 32px; text-align: center; }

.sbj-site__head { border-bottom: 1px solid var(--line); }
.sbj-site__head-in { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.sbj-site__logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.sbj .sbj-site__logo, .sbj .sbj-site__logo:hover { color: var(--text); text-decoration: none; }
.sbj-site__mark { width: 32px; height: 32px; border-radius: var(--r-input); background: var(--rail); color: var(--rail-mark); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.sbj-site__nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.sbj-site__nav a, .sbj-site__menu-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; border-radius: var(--r-chip); }
.sbj .sbj-site__nav a, .sbj .sbj-site__menu-list a { color: var(--text); }
.sbj .sbj-site__nav a:hover, .sbj .sbj-site__menu-list a:hover { background: var(--hover); text-decoration: none; }
.sbj-site__head-end { display: flex; align-items: center; gap: 8px; }
.sbj-site__login { min-height: 44px; padding: 0 20px; font-size: 15px; }
/* 좁은 화면의 메뉴: details 한 칸 — 스크립트 없이 열린다 */
.sbj-site__menu { display: none; position: relative; }
.sbj-site__menu > summary { list-style: none; width: 44px; height: 44px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--r-input); background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sbj-site__menu > summary::-webkit-details-marker { display: none; }
.sbj-site__menu-list { position: absolute; right: 0; top: 52px; z-index: 20; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-float); padding: 6px; display: flex; flex-direction: column; }
.sbj-site__menu-list a { display: flex; }

/* ------------------------------------------------------------------ 버튼 · 표시 (공개 화면에서 더 쓰는 것) */
.sbj-btn--lg { min-height: 48px; padding: 0 22px; font-size: 16px; }
.sbj .sbj-btn--strong { border-color: var(--line-strong); }
.sbj .sbj-btn--firm { background: var(--accent-firm); border-color: var(--accent-firm); color: var(--on-solid); }
.sbj .sbj-btn--firm:hover { background: var(--accent-firm-press); border-color: var(--accent-firm-press); color: var(--on-solid); }
.sbj-bg-firm { background: var(--accent-firm); }
.sbj-bg-ink { background: var(--text); }

/* ------------------------------------------------------------------ 구역 · 글자 */
.sbj-site__hero { padding: 72px 0 84px; }
.sbj-site__flow { padding: 0 0 88px; }
.sbj-site__sec { padding: 88px 0; }
.sbj-site__sec--card { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sbj-site__sec--ink { background: var(--rail); color: var(--rail-mark); padding: 84px 0; }
.sbj-site__sec--last { padding-bottom: 80px; }
.sbj-site__cols { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.sbj-site__cols--center { align-items: center; gap: 48px 56px; }
.sbj-site__cols--rev { flex-wrap: wrap-reverse; }
.sbj-site__col { flex: 1 1 400px; min-width: 0; }
.sbj-site__col--wide { flex: 1 1 520px; }
/* 히어로는 글과 화면 예시가 반반 — 제목 두 줄이 한 칸에 들어가게 */
.sbj-site__hero .sbj-site__col { flex-basis: 470px; }
.sbj-site__hero .sbj-site__col--wide { flex-basis: 590px; }

.sbj-site__eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--accent); }
.sbj-site__eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.sbj-site__eyebrow--firm { color: var(--accent-firm); }
.sbj-site__eyebrow--ink { color: var(--rail-text); }
.sbj .sbj-site__h1 { margin: 18px 0 0; font-size: 52px; line-height: 1.18; font-weight: 700; letter-spacing: -0.035em; }
.sbj .sbj-site__h1--page { font-size: 50px; line-height: 1.18; }
.sbj .sbj-site__h2 { margin: 14px 0 0; font-size: 38px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; }
.sbj .sbj-site__h2--sm { font-size: 30px; }
.sbj .sbj-site__sec--ink .sbj-site__h2 { color: var(--rail-mark); }
.sbj-site p.sbj-site__lead { margin: 22px 0 0; max-width: 560px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.sbj-site p.sbj-site__text { margin: 16px 0 0; max-width: 520px; font-size: 17px; color: var(--muted); }
.sbj-site p.sbj-site__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.sbj-site__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.sbj-site__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; font-weight: 600; }

/* 선으로 나눈 목록 (기능 · 단계) */
.sbj-site__list, .sbj-site__ol { list-style: none; margin: 28px 0 0; padding: 0; }
.sbj-site__list li { border-top: 1px solid var(--line); padding: 14px 0; }
.sbj-site__list strong, .sbj-site__ol strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.sbj-site__list span, .sbj-site__ol-text span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.sbj-site__ol { margin-top: 24px; }
.sbj-site__ol li { display: flex; gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; }
.sbj-site__no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); }
.sbj-site__ol .sbj-site__no { flex: 0 0 auto; padding-top: 3px; }

/* 하는 일 네 단계 */
.sbj-site__steps { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 28px 24px; }
.sbj-site__step { flex: 1 1 220px; min-width: 0; border-top: 2px solid var(--text); padding-top: 16px; }
.sbj-site__step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sbj-site__step-title { margin-top: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.sbj-site__step-text { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* 원칙 (어두운 띠) */
.sbj-site__principles { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.sbj-site__principle { flex: 1 1 280px; min-width: 0; border-top: 1px solid var(--rail-line); padding-top: 18px; }
.sbj-site__principle strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.sbj-site__principle span { display: block; margin-top: 8px; font-size: 15px; color: var(--rail-text); }

/* 요금 뼈대 */
.sbj-site__plans { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; }
.sbj-site__plan { flex: 1 1 280px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; background: var(--ground); }
.sbj-site__plan-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.sbj-site__price { margin-top: 14px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sbj-site__plan-sub { margin-top: 2px; font-size: 14px; color: var(--muted); }
.sbj-site__plan ul { list-style: none; margin: 18px 0 0; padding: 0; }
.sbj-site__plan li { position: relative; padding: 8px 0 8px 15px; border-top: 1px solid var(--line); font-size: 15px; }
.sbj-site__plan li::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; background: var(--text); }

/* 문의 · 사업자 정보 */
.sbj-site__info { margin: 16px 0 0; }
.sbj-site__info > div { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sbj-site__info dt { flex: 0 0 88px; font-weight: 400; color: var(--muted); }
.sbj-site__info dd { margin: 0; }
.sbj-site__sides { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.sbj-site__side { flex: 1 1 300px; min-width: 0; border-top: 2px solid var(--text); padding-top: 16px; }
.sbj-site__side strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.sbj-site__side span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.sbj-site__notice { margin-top: 32px; max-width: 760px; }

/* 발 */
.sbj-site__foot { border-top: 1px solid var(--line); }
.sbj-site__foot-in { padding-top: 48px; padding-bottom: 56px; }
.sbj-site__foot-cols { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.sbj-site__foot-brand { flex: 2 1 260px; min-width: 0; }
.sbj-site p.sbj-site__foot-say { margin: 10px 0 0; max-width: 320px; font-size: 14px; color: var(--muted); }
.sbj-site__foot-col { flex: 1 1 150px; min-width: 0; }
.sbj-site__foot-col strong { display: block; font-size: 13px; margin-bottom: 4px; }
.sbj-site__foot-col a { display: flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; }
.sbj .sbj-site__foot-col a { color: var(--muted); }
.sbj-site__legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--muted); }

/* ------------------------------------------------------------------ 제품 화면 예시 (그림이 아니라 마크업 — role=img) */
.sbj-site__mock { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-float); overflow: hidden; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.sbj-site__mock-scroll { overflow-x: auto; }
.sbj-site__mock-in { display: flex; min-width: 540px; }
.sbj-site__mock-in--closing { display: block; min-width: 480px; }
.sbj-site__mock-rail { flex: 0 0 60px; background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.sbj-site__mock-mode { width: 46px; padding: 5px 0; border-radius: var(--r-input); background: var(--accent-firm); color: var(--on-solid); font-size: 11px; font-weight: 700; line-height: 1.35; text-align: center; }
.sbj-site__mock-ico { width: 40px; height: 40px; border-radius: var(--r-input); display: flex; align-items: center; justify-content: center; color: var(--rail-text); }
.sbj-site__mock-ico.is-on { background: var(--rail-on); color: var(--rail-mark); }
.sbj-site__mock-body { flex: 1 1 auto; min-width: 0; }
.sbj-site__mock-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.sbj-site__mock-title { font-size: 16px; font-weight: 700; margin-right: 8px; }
.sbj-site__mock-sub { font-size: 13px; color: var(--muted); }
.sbj-site__mock-tabs { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.sbj-site__mock-tabs .is-on { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--accent-firm); padding-bottom: 2px; }
.sbj-site__row { display: grid; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line-soft); }
.sbj-site__row--head { padding-top: 7px; padding-bottom: 7px; font-size: 12px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); background: var(--ground); }
.sbj-site__row--inbox { grid-template-columns: 78px minmax(0, 1fr) 84px 74px 46px; }
.sbj-site__row--closing { grid-template-columns: minmax(0, 1.3fr) 58px 58px 58px 58px 62px; gap: 8px; padding-left: 18px; padding-right: 18px; font-size: 14px; }
.sbj-site__row--closing.sbj-site__row--head { font-size: 12px; }
.sbj-site__cell-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbj-site__cell-what { min-width: 0; }
.sbj-site__cell-what > span { display: block; }
.sbj-site__cell-what > .sbj-site__cell-sub { font-size: 12px; color: var(--muted); }
.sbj-site__amt { font-family: var(--mono); font-size: 13px; text-align: right; }
.sbj-site__center { text-align: center; }
.sbj-site__right { text-align: right; }
.sbj-site__who { font-size: 13px; color: var(--muted); text-align: right; }
.sbj-site__act { display: inline-block; border: 1px solid var(--line-strong); border-radius: var(--r-chip); padding: 2px 8px; font-size: 12px; font-weight: 600; background: var(--card); white-space: nowrap; }
.sbj-site__ring { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--off); box-sizing: border-box; }
.sbj-site__done { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.sbj-site__mock-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.sbj-site__mock-foot > span { display: inline-flex; align-items: center; gap: 6px; }

.sbj-site__portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--ground); }
.sbj-site__portal-co { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sbj-site__portal-mark { width: 36px; height: 28px; border-radius: var(--r-chip); background: var(--accent); color: var(--on-solid); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sbj-site__portal-body { padding: 20px; font-size: 14.5px; }
.sbj-site__big { margin-top: 2px; font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.sbj-site__big small { font-family: var(--font); font-size: 18px; font-weight: 600; margin-left: 4px; }
.sbj-site__lines { margin-top: 12px; }
.sbj-site__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.sbj-site__line b { font-weight: 600; }
.sbj-site__line small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.sbj-site__line .sbj-site__line-sub { display: block; margin-left: 0; }
.sbj-site__line .sbj-site__amt { font-size: 14px; }
.sbj-site__group { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.sbj-site__group + .sbj-site__lines { margin-top: 8px; }

/* 세무사 찾기 요청 폼 (꺼진 미리 보기) */
.sbj-site__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.sbj-site__form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 700; }
.sbj-site__form-fields { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 16px; }
.sbj-site__form-fields .sbj-field { flex: 1 1 200px; }
.sbj-site__form .sbj-input { min-height: 44px; font-size: 15px; }
.sbj-site__form-label { margin-top: 16px; font-size: 12.5px; font-weight: 600; }
.sbj-site__checks { display: flex; flex-wrap: wrap; gap: 0 22px; }
.sbj-site__checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 15px; color: var(--muted); }
.sbj-site__checks input { width: 18px; height: 18px; margin: 0; }
.sbj-site__form .sbj-btn--block { margin-top: 14px; min-height: 48px; font-size: 16px; }

/* ------------------------------------------------------------------ 허브 — 내 스페이스 (docs/30 §4) */
.sbj-hub { font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
.sbj-hub__head-in { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.sbj-hub__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.sbj-hub__who form { margin: 0; }
.sbj-hub__who .sbj-btn { min-height: 44px; }
.sbj-hub__main { width: 100%; max-width: 880px; margin: 0 auto; padding: 56px 32px 72px; box-sizing: border-box; }
.sbj .sbj-hub__main h1 { font-size: 36px; line-height: 1.2; letter-spacing: -0.03em; }
.sbj .sbj-hub__main p.sbj-hub__lead { margin: 10px 0 0; max-width: 600px; color: var(--muted); }
.sbj-spaces__group { margin-top: 36px; }
.sbj-spaces__group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 10px; }
.sbj .sbj-spaces__group-head h2 { margin: 0; font-size: 15px; }
.sbj-spaces__count { font-family: var(--mono); font-weight: 500; color: var(--muted); margin-left: 4px; }
.sbj-spaces { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.sbj-spaces__item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.sbj-spaces__mark { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-input); background: var(--rail); color: var(--rail-mark); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sbj-spaces__mark--firm { background: var(--accent-firm); color: var(--on-solid); }
.sbj-spaces__mark--client { background: var(--accent); color: var(--on-solid); }
.sbj-spaces__name { flex: 1 1 220px; min-width: 0; }
.sbj-spaces__name strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.sbj-spaces__name span { display: block; font-size: 13.5px; color: var(--muted); }
.sbj-spaces__host { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.sbj-spaces__go { min-height: 44px; padding: 0 18px; font-size: 15px; }
.sbj-spaces__find { display: flex; align-items: center; gap: 8px; margin: 0; flex: 0 1 340px; }
.sbj-spaces__find .sbj-input { min-height: 44px; font-size: 15px; }
.sbj-spaces__find .sbj-btn { min-height: 44px; }
.sbj-spaces__none { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.sbj-hub__stg { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--muted); }
.sbj-hub__stg a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ------------------------------------------------------------------ 좁은 화면 */
@media (max-width: 720px) {
    .sbj-site, .sbj-hub { font-size: 15px; }
    .sbj-site__wrap { padding: 0 20px; }
    .sbj-site__bar { padding: 8px 16px; }
    .sbj-site__head-in { min-height: 60px; }
    .sbj-site__nav { display: none; }
    .sbj-site__menu { display: block; }
    .sbj-site__login { padding: 0 16px; }
    .sbj-site__hero { padding: 32px 0 40px; }
    .sbj-site__flow { padding: 0 0 40px; }
    .sbj-site__sec, .sbj-site__sec--ink { padding: 48px 0; }
    .sbj .sbj-site__h1 { margin-top: 14px; font-size: 36px; line-height: 1.2; }
    .sbj .sbj-site__h2 { margin-top: 10px; font-size: 26px; }
    .sbj .sbj-site__h2--sm { font-size: 24px; }
    .sbj-site p.sbj-site__lead { margin-top: 16px; font-size: 16px; }
    .sbj-site p.sbj-site__text { font-size: 15.5px; }
    .sbj-site__cta { margin-top: 24px; flex-direction: column; }
    .sbj-site__cta .sbj-btn { width: 100%; min-height: 52px; }
    .sbj-site__cols, .sbj-site__cols--center { gap: 32px; }
    .sbj-site__steps { margin-top: 22px; gap: 0; }
    .sbj-site__step { flex-basis: 100%; padding: 12px 0 18px; }
    .sbj-site__list strong, .sbj-site__ol strong { font-size: 16px; }
    .sbj-site__foot-in { padding-top: 36px; padding-bottom: 40px; }

    /* 화면 예시: 레일 · 표 머리를 접고 줄을 두 칸으로 */
    .sbj-site__mock-in, .sbj-site__mock-in--closing { min-width: 0; }
    .sbj-site__mock-rail, .sbj-site__mock-tabs, .sbj-site__row--inbox.sbj-site__row--head { display: none; }
    .sbj-site__row--inbox { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
    .sbj-site__row--inbox > :nth-child(1) { grid-area: 1 / 1; }
    .sbj-site__row--inbox > :nth-child(4) { grid-area: 1 / 2; justify-self: end; }
    .sbj-site__row--inbox > :nth-child(2) { grid-area: 2 / 1 / 3 / 3; }
    .sbj-site__row--inbox > :nth-child(3) { grid-area: 3 / 1; text-align: left; }
    .sbj-site__row--inbox > :nth-child(5) { grid-area: 3 / 2; justify-self: end; }
    .sbj-site__row--closing { grid-template-columns: minmax(0, 1.2fr) repeat(4, 46px); padding-left: 14px; padding-right: 14px; }
    .sbj-site__row--closing > :nth-child(6) { display: none; }

    .sbj-hub__main { padding: 32px 20px 48px; }
    .sbj .sbj-hub__main h1 { font-size: 28px; }
    .sbj-spaces__find { flex-basis: 100%; }
    /* 좁은 화면의 줄: 표시 · 이름 · 들어가기 한 줄, 주소는 이름 아래 */
    .sbj-spaces__name { flex: 1 1 140px; }
    .sbj-spaces__host { order: 4; flex-basis: 100%; padding-left: 56px; margin-top: -6px; overflow-wrap: anywhere; }
}
