/* =====================================================================
   SELLOOP 메인 본문 — 10/11 대표님 «화이트·블루 전체 홈페이지 시안이 디자인 정본»(public/home.html 에서만 읽는다)
   정본: docs/디자인/SELLOOP-원본레퍼런스-전체홈페이지-시안.html(값은 시안 CSS 그대로 옮김 — 칸 이름만 rf- 로 바꿈)
   ★home.css(옛 칸 안쪽 모양) 다음에 읽어 메인에서만 덮어쓴다. 머리·메뉴 줄·바닥은 ref.css.
   ★그림은 static/img/selloop 의 시안 33개만. 그림이 안 떠도 글·단추는 HTML 이라 그대로 보인다(그림 칸 바탕색이 남음).
   ★단 너비: 1200 · 900 · 600(시안과 같음). 쪽 전체 가로 밀림 0 — 넘치는 것은 그 칸 안에서만(자동화 7단계 폰 화면).
   ★글자 크기(10/12 대표님 «글자가 너무 작다»): 시안 그림의 9~13px 를 실제 쇼핑몰 크기로 — 구역 제목 26px · 설명 14.5px · 카드 제목 17px ·
     카드 설명 13px · 상품명 14.5px · 단추 14~15.5px. 폰도 본문 12px 아래로 내려가지 않게. 자리·색·모양은 시안 그대로.
   ===================================================================== */

/* ── 공통: 구역 제목 · 단추 ─────────────────────────────────────────────── */
.rf-sec, body.ref-home .hm-sec { margin-top: 44px; }
.rf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 16px; }
.rf-head.center { justify-content: center; text-align: center; }
.rf-head h2 { margin: 0; font-size: 26px; font-weight: 900; color: #102046; letter-spacing: -.047em; }
.rf-head p { margin: 4px 0 0; font-size: 14.5px; color: #6E7F9B; }
.rf-more { font-size: 13.5px; font-weight: 750; color: #5A7196; white-space: nowrap; }
.rf-more:hover { color: var(--rf-blue); }
.rf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 24px; height: 52px; padding: 0 28px; border: 1px solid var(--rf-blue);
  border-radius: 8px; background: var(--rf-blue); color: #fff; font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.rf-btn:hover { background: var(--rf-blue-d); border-color: var(--rf-blue-d); }
.rf-btn.line { background: #fff; color: #095BD2; }
.rf-btn.line:hover { background: #E8F2FF; }
.rf-btn.pill { height: 46px; padding: 0 22px; gap: 16px; border-radius: 25px; font-size: 14.5px; }
.rf-btn.sm { height: 44px; padding: 0 20px; gap: 14px; font-size: 14.5px; }

/* ── 첫 화면: 글(47%) + 대시보드 그림(53%) · 숫자 띠 5칸 ───────────────────── */
.rf-hero { position: relative; overflow: hidden; background: linear-gradient(110deg, #F8FBFF 0%, #EEF6FF 56%, #E7F0FB 100%); }
.rf-hero::before { content: ""; position: absolute; inset: 0 0 0 44%; pointer-events: none; filter: blur(9px); transform: skewX(-13deg);
  background: repeating-linear-gradient(90deg, transparent 0, transparent 96px, rgba(126, 161, 205, .085) 99px, rgba(255, 255, 255, .3) 110px, transparent 122px); }
.rf-hero::after { content: ""; position: absolute; right: -90px; top: -150px; width: 650px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 72%); }
.rf-hero > .wrap { position: relative; z-index: 1; }
.rf-hero-top { display: grid; grid-template-columns: 47% 53%; min-height: 440px; padding: 48px 0 38px; }
.rf-hero-copy { position: relative; z-index: 2; min-width: 0; }
.rf-quote { margin: 0 0 12px; color: #536D96; font-size: 17px; font-weight: 650; }
.rf-hero-copy h1 { margin: 0 0 18px; font-size: 44px; line-height: 1.2; letter-spacing: -.052em; color: #101D37; font-weight: 900; word-break: keep-all; }
.rf-hero-copy h1 .blue { color: var(--rf-blue); }
.rf-desc { max-width: 560px; margin: 0; font-size: 16px; line-height: 1.75; color: #385276; }
.rf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.rf-points { display: flex; flex-wrap: wrap; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; color: #586E92; font-size: 13.5px; font-weight: 700; }
.rf-points li::before { content: "✓"; margin-right: 6px; color: var(--rf-blue); font-weight: 900; }
/* 그림 칸 — 그림 폭 = 칸 폭(높이는 그림 비율대로). PC 그림 안 «더 큰 시장으로, 자동으로!»(왼쪽 20% 자리) 위에 HTML «하나의 상품이» */
.rf-hero-visual { position: relative; align-self: start; min-width: 0; max-width: 705px; width: 100%; justify-self: end; container-type: inline-size; }
.rf-hero-pic, .rf-hero-pic img { display: block; width: 100%; height: auto; }
.rf-hero-pic img { aspect-ratio: 1410 / 698; }
/* 그림이 줄면 그림 안 글도 준다 — «하나의 상품이»도 그림 폭에 맞춰(1440 에서 그림 705px · 글 17px · 위 24px = 시안 값) 같이 줄인다 */
.rf-prehead { position: absolute; left: 20%; top: -24px; top: -3.4cqi; z-index: 5; color: var(--rf-blue); font-weight: 850; font-size: 17px; font-size: clamp(12px, 2.41cqi, 17px);
  line-height: 1.2; letter-spacing: -.04em; white-space: nowrap; }

.rf-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 100px; margin: 0 auto 24px;
  background: #fff; border: 1px solid #EFF2F7; border-radius: 10px; box-shadow: 0 10px 28px rgba(16, 62, 136, .04); }
.rf-metrics .m { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 18px 16px; border-right: 1px solid #E9EEF7; color: inherit; }
.rf-metrics .m:last-child { border-right: 0; }
.rf-metrics .ic { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; background: #EDF5FF; color: var(--rf-blue); }
.rf-metrics .ic svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.rf-metrics .m > span:last-child { min-width: 0; }
.rf-metrics small { display: block; font-size: 13px; font-weight: 700; color: #66779A; }
.rf-metrics b { display: block; font-size: 24px; font-weight: 900; line-height: 1.3; letter-spacing: -.045em; color: #101B35; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rf-metrics em { display: block; font-style: normal; font-size: 12px; color: #66779A; }
.rf-metrics .m:hover b { color: var(--rf-blue); }

/* ── 어떤 목적으로 오셨나요 — 셀러·공급사 배너(그림 = 바탕 전체, 글·단추 = HTML) ─────────── */
.rf-persona { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.rf-pp { position: relative; min-height: 264px; overflow: hidden; border-radius: 9px; background: #E5F2FF; border: 1px solid #E7EFFA; }
.rf-pp.partner { background: #FFF0EE; border-color: #F1EAE9; }
.rf-pp .ph, .rf-pp .ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.rf-pp .ph { z-index: 0; }
.rf-pp .copy { position: relative; z-index: 2; max-width: 360px; padding: 30px 28px; }
.rf-pp .eyebrow { font-size: 15px; font-weight: 850; color: var(--rf-blue); }
.rf-pp.partner .eyebrow { color: #CE6A5E; }
.rf-pp h3 { margin: 8px 0 10px; font-size: 29px; line-height: 1.3; font-weight: 900; color: #142A54; word-break: keep-all; }
.rf-pp p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: #4A6283; word-break: keep-all; }
.rf-pp.partner .rf-btn.line { color: var(--rf-blue); }
.rf-pp .feats { position: absolute; right: 11px; top: 21px; z-index: 3; display: flex; flex-direction: column; gap: 6px; width: 148px; margin: 0; padding: 0; list-style: none; }
.rf-pp .feats li { display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 10px; border: 1px solid #E9F0FC; border-radius: 5px;
  background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 800; color: #31527F; box-shadow: 0 2px 5px rgba(12, 39, 69, .04); }
.rf-pp .feats b { font-size: 14px; color: var(--rf-blue); }

/* ── 인기 카테고리 9칸(그림 64×48) — 옛 .s-cats(site.css) 자리를 시안 칸으로 ─────────────── */
body.ref-home .s-cats { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); gap: 8px; margin: 0; border: 0; }
body.ref-home .s-cats a { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 120px;
  padding: 15px 4px 14px; border: 1px solid #E5ECF7; border-radius: 8px; background: #fff; color: #33476A; font-size: 14px; font-weight: 750; text-align: center; word-break: keep-all; }
body.ref-home .s-cats a:hover { border-color: #83B3FF; background: #F8FBFF; color: var(--rf-blue); }
body.ref-home .s-cats .ic { display: grid; place-items: center; width: 70px; height: 51px; font-size: inherit; }
body.ref-home .s-cats .ic img { width: 64px; height: 48px; object-fit: contain; }

/* ── 셀러를 위한 핵심 서비스 7칸 ──────────────────────────────────────────── */
.rf-svc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.rf-svc a { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; min-height: 214px; padding: 24px 12px 16px;
  border: 1px solid #DFEBFA; border-radius: 7px; background: #fff; text-align: center; color: inherit; transition: transform .2s, border-color .2s; }
.rf-svc a:hover { transform: translateY(-3px); border-color: #8FBAFF; }
.rf-svc .ic { display: grid; place-items: center; width: 48px; height: 46px; }
.rf-svc .ic img { width: 42px; height: 42px; }
.rf-svc h3 { margin: 6px 0 5px; font-size: 17px; line-height: 1.3; font-weight: 900; color: #203253; word-break: keep-all; }
.rf-svc p { max-width: 156px; margin: 0; font-size: 13px; line-height: 1.55; color: #66779A; word-break: keep-all; text-wrap: balance; }
.rf-svc .go { margin-top: 10px; font-size: 22px; line-height: 1.2; color: var(--rf-blue); }

/* ── 믿을 수 있는 상품 공급사관 3칸(공급사코드 · 실제 상품 사진) ─────────────────── */
.rf-sup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.rf-sup > a { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid #DBE7F6; border-radius: 7px; background: #fff; color: inherit; }
.rf-sup > a:hover { border-color: #8FBAFF; }
.rf-sup .d { display: flex; gap: 13px; min-width: 0; }
.rf-sup .ph { flex: none; width: 120px; height: 124px; border-radius: 5px; background: #F1F5FB; object-fit: contain; }
.rf-sup .ph.noimg { display: grid; place-items: center; font-size: 12.5px; color: #7D8BA3; }
.rf-sup .nm { display: flex; flex-direction: column; min-width: 0; }
.rf-sup .code { font-size: 18px; font-weight: 900; color: #10254A; letter-spacing: -.02em; }
.rf-sup .n { margin: 3px 0; font-size: 14px; line-height: 1.45; color: #5F7193; }
.rf-sup small { font-size: 12.5px; color: #6780A6; }
.rf-sup .chips { gap: 4px; margin-top: auto; padding-top: 8px; }
.rf-sup .chip { padding: 4px 8px; border-radius: 20px; background: #EAF2FF; color: #3F6EAF; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rf-sup .chip + .chip::before { content: none; }
.rf-sup .act { margin-top: 12px; padding: 10px; border-radius: 6px; background: #E9F2FF; color: #245DBA; text-align: center; font-size: 14px; font-weight: 800; }
.rf-sup .act i { font-style: normal; }
.rf-sup > a:hover .act { background: #D7E9FF; }
.rf-sup > a.all { border-style: dashed; background: #F8FBFF; }                    /* 공급사가 3곳이 안 될 때 남은 자리 — 공급사관 전체 보기 */
.rf-sup > a.all .d { flex: 1; align-items: center; min-height: 124px; padding-left: 4px; }
@media (min-width: 901px) { .rf-sup > a.all:nth-child(2) { grid-column: span 2; } }   /* 공급사가 한 곳뿐이면 «전체 보기» 칸이 남은 두 칸을 채운다 */

/* ── 지금 주목할 상품 — 시안 둥근 탭 · 탭마다 기존 칸 하나 ───────────────────────── */
.rf-tabs, body.ref-home .s-tabs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; border: 0; background: none; }
.rf-tabs button, body.ref-home .s-tabs button { height: auto; padding: 9px 18px; border: 0; border-radius: 22px; background: transparent; color: #66779A; font-size: 15px; font-weight: 750; cursor: pointer; }
.rf-tabs button + button, body.ref-home .s-tabs button + button { border-left: 1px solid #D7E0ED; border-radius: 0; }
.rf-tabs button.on, body.ref-home .s-tabs button.on { border: 0; border-radius: 22px; background: #E9F2FF; color: var(--rf-blue); font-weight: 850; }
.rf-tabs button:hover, body.ref-home .s-tabs button:hover { color: var(--rf-blue); }
body.ref-home .hm-tabbar { margin: 0 0 12px; }
body.ref-home .hm-tabbar .s-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0; }
body.ref-home .rf-picks > .hm-sec { margin-top: 0; }                  /* 탭 줄 바로 아래 상품(구역 사이 간격이 붙지 않게) */
.rf-picks > [data-pane][hidden] { display: none; }
body.ref-home .hm-note { margin: 0 0 14px; font-size: 14px; color: #6E7F9B; }
body.ref-home .hm-note a { color: var(--rf-blue); font-weight: 700; }
body.ref-home .card.empty { padding: 28px 16px; border: 1px dashed var(--rf-line); border-radius: 7px; background: #FAFCFF; text-align: center; color: var(--rf-muted); font-size: 14.5px; }

/* 상품 카드(_parts/pcard.html) — 시안 카드: 1px 선 · 모서리 6px · 사진 칸 연한 바탕(비율 4:3, 사진은 잘리지 않게) · 상품코드 · 칩 · «상품 상세 보기» 파랑 띠.
   한 줄 칸 수는 자료가 5개 단위(services/home_sections — 한 줄 5칸)라 PC 5칸. 좁은 화면은 꽉 찬 줄만(빈 칸 없이) */
body.ref-home .hm-sec > .pgrid, body.ref-home .hm-sec > .s-pane > .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
body.ref-home .hm-md .pgrid { gap: 12px; }
body.ref-home .pcard { overflow: hidden; border: 1px solid #DFE8F5; border-radius: 6px; background: #fff; }
body.ref-home .pcard:hover { border-color: #75ABF7; }
body.ref-home .pcard-link { display: flex; flex-direction: column; flex: 1; min-width: 0; }
body.ref-home .pcard .thumb { aspect-ratio: 4 / 3; grid-template: minmax(0, 1fr) / minmax(0, 1fr); border: 0; background: #F7F9FC; }   /* 칸 줄을 칸 높이에 묶어 사진이 잘리지 않게(아래 25% 잘림 고침) */
body.ref-home .pcard:hover .thumb { border: 0; }
body.ref-home .pcard .thumb img { object-fit: contain; }
body.ref-home .pcard .body { padding: 12px; gap: 4px; }
body.ref-home .pcard .name { min-height: 41px; font-size: 14.5px; line-height: 1.42; font-weight: 700; color: var(--rf-text); }
body.ref-home .pcard .code { order: 0; font-size: 12px; color: #66779A; }
body.ref-home .pcard .login-need { margin-top: 1px; font-size: 13px; color: #4D6D9C; }
body.ref-home .pcard .login-need b { margin-left: 2px; font-size: 13px; color: var(--rf-blue); }
body.ref-home .pcard .price { font-size: 17px; color: var(--rf-blue); }
body.ref-home .pcard .chips { gap: 4px; margin-top: 5px; }
body.ref-home .pcard .chip { padding: 2px 7px; border-radius: 20px; background: #EBF3FF; color: #46699E; font-size: 12px; font-weight: 600; }
body.ref-home .pcard .chip + .chip::before { content: none; }
body.ref-home .pcard .more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 9px 2px; border-radius: 6px;
  background: var(--rf-blue); color: #fff; font-size: 13px; font-weight: 800; }
body.ref-home .pcard .body > :has(+ .more) { margin-bottom: 7px; }
body.ref-home .pcard .more i { font-style: normal; font-size: 14px; }
body.ref-home .pcard:hover .more { background: var(--rf-blue-d); }
body.ref-home .pcard .badge-on { left: 8px; top: 8px; height: auto; padding: 3px 10px; border-radius: 12px; line-height: 1.5; font-size: 12px; }
body.ref-home .pcard-act { padding: 0 12px 12px; }
body.ref-home .hm-rk-n { right: 8px; top: 8px; height: auto; padding: 3px 10px; border-radius: 12px; line-height: 1.5; font-size: 12px; background: var(--rf-deep); }

/* ── 시안에 없는 기존 칸 — 제목 줄·탭·칸 모양만 시안 말투로(자료·규칙은 그대로) ───────────────── */
body.ref-home .s-sec { margin: 0 0 16px; align-items: flex-end; }
body.ref-home .s-sec h2 { font-size: 26px; font-weight: 900; color: #102046; letter-spacing: -.047em; }
body.ref-home .s-sec p { margin-top: 4px; font-size: 14.5px; color: #6E7F9B; }
body.ref-home .s-sec > a { font-size: 13.5px; font-weight: 750; color: #5A7196; }
body.ref-home .s-sec > a::after { content: "  →"; }
body.ref-home .s-sec > a:hover { color: var(--rf-blue); }
body.ref-home .hm-ul { border-bottom-color: var(--rf-line); }
body.ref-home .hm-ul button { font-size: 15px; color: #66779A; }
body.ref-home .hm-ul button.on { color: #102046; }
body.ref-home .hm-ul button.on::after { background: var(--rf-blue); }
/* MD관 대표 칸 · 카드뉴스 — 시안 색표(파랑 계열)로만(관리자가 고른 밝은 6색·분류 3색 키는 그대로 두고 메인에서만 파랑 계열로) */
body.ref-home .hm-md-cv[class*="bn-th-"] { border: 1px solid #DCEAFF; border-radius: 9px; background: linear-gradient(105deg, #E9F3FF, #F5FAFF); color: #16315F; --bn-ac: var(--rf-blue); }
body.ref-home .hm-md-cv p, body.ref-home .hm-md-cv small { color: #536C91; }
body.ref-home .hm-mdt a { border: 1px solid #E5ECF7; background: #F6F9FE; }
body.ref-home .hm-t-mint { --cn-bg: #EAF4FF; --cn-ink: #1D56B8; }
body.ref-home .hm-t-sky  { --cn-bg: #E3EEFF; --cn-ink: #1450C8; }
body.ref-home .hm-t-sand { --cn-bg: #F1F5FB; --cn-ink: #31527F; }
body.ref-home .hm-cn a { border: 1px solid #E1EAF6; }
body.ref-home .hm-sub { gap: 8px; border: 0; }
body.ref-home .hm-sub > div { border: 1px solid #E5ECF7; border-radius: 7px; background: #fff; }
body.ref-home .hm-sub .t { color: #102046; }
body.ref-home .s-supbar { padding: 11px 14px; margin-bottom: 12px; border: 1px solid #DFE8F5; border-radius: 7px; background: #F6F9FE; }
body.ref-home .s-supbar a { color: #245DBA; text-decoration: none; font-weight: 800; }
body.ref-home .hm-st { gap: 8px; border: 0; }
body.ref-home .hm-st a { border: 1px solid #E5ECF7; border-radius: 7px; background: #fff; }
body.ref-home .hm-st a:hover { border-color: #8FBAFF; background: #F8FBFF; }
body.ref-home .hm-st .nm { border-bottom-color: var(--rf-blue); color: #10254A; }
body.ref-home .hm-st .ph img { border-color: #E5ECF7; border-radius: 5px; }

/* ── 자동화 프로그램 7단계 ─────────────────────────────────────────────── */
.rf-flow { position: relative; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; margin-top: 44px; padding: 26px 26px 26px 28px; overflow: hidden;
  border: 1px solid #DCEAFF; border-radius: 10px; background: linear-gradient(105deg, #E9F3FF, #F1F8FF); }
.rf-flow h2 { margin: 3px 0 10px; font-size: 26px; line-height: 1.35; letter-spacing: -.05em; font-weight: 900; color: #16315F; }
.rf-flow p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: #4A6283; }
.rf-flow .steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.rf-flow li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; padding: 13px 4px; text-align: center;
  border: 1px solid #E1EAF6; border-radius: 6px; background: #fff; }
.rf-flow li:not(:last-child)::after { content: "›"; position: absolute; right: -8px; top: 43%; z-index: 1; padding: 0 3px; border-radius: 50%; background: #EAF4FF;
  line-height: 14px; font-size: 22px; font-weight: 700; color: var(--rf-blue); }
.rf-flow li img { width: 34px; height: 34px; }
.rf-flow b { margin: 11px 0 4px; font-size: 14.5px; color: #29446D; }
.rf-flow small { font-size: 13px; line-height: 1.4; color: #5E6F8C; word-break: keep-all; }

/* ── 가입 배너 2칸(그림 = 바탕 전체) ──────────────────────────────────────── */
.rf-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.rf-ct { position: relative; display: flex; min-height: 210px; padding: 30px 30px; overflow: hidden; border-radius: 9px; background: linear-gradient(100deg, #E0EEFF, #F5FAFF); }
.rf-ct.partner { background: linear-gradient(105deg, #EDF4FF, #F7F5F3); }
.rf-ct .ph, .rf-ct .ph img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.rf-ct .ph { z-index: 0; }
.rf-ct .copy { position: relative; z-index: 2; max-width: 58%; }
.rf-ct h3 { margin: 0 0 10px; word-break: keep-all; font-size: 27px; line-height: 1.28; letter-spacing: -.04em; font-weight: 900; color: #194478; word-break: keep-all; }
.rf-ct h3 em { font-style: normal; color: var(--rf-blue); }
.rf-ct p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: #5A6F93; word-break: keep-all; }
.rf-ct .rf-btn { height: 44px; padding: 0 22px; gap: 14px; border-radius: 24px; font-size: 14.5px; }

/* ── 고객지원 & 소식(공지사항란) — 공지 칸은 실제 제목이 길어 다른 칸의 1.6배 폭 ──────────────── */
body.ref-home .hm-sec[data-sec="notice"] { display: block; }
.rf-support { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 11px; }
.rf-card { display: flex; align-items: flex-start; gap: 14px; min-width: 0; min-height: 140px; padding: 20px; border: 1px solid #DFE7F2; border-radius: 7px; background: #fff; }
.rf-card .ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #F0F5FF; }
.rf-card .ic svg { width: 24px; height: 24px; fill: none; stroke: #244A88; stroke-width: 2; }
.rf-card .bd { flex: 1; min-width: 0; }
.rf-card h3 { margin: 0; font-size: 17px; font-weight: 850; color: var(--rf-text); }
.rf-card h3, .rf-card p, .rf-card.gd li { word-break: keep-all; }
.rf-card p { margin: 8px 0; font-size: 13.5px; line-height: 1.6; color: #66779A; text-wrap: balance; }
.rf-card .go { font-size: 13.5px; font-weight: 800; color: var(--rf-blue); white-space: nowrap; }
.rf-card ul { margin: 8px 0 10px; padding: 0; list-style: none; }
.rf-card .nt li { display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 14px; }
.rf-card .nt a { display: flex; flex: 1; gap: 6px; min-width: 0; color: #2A3B5C; }
.rf-card .nt a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-card .nt a:hover span { color: var(--rf-blue); }
.rf-card .nt b { flex: none; font-size: 13px; font-weight: 800; color: var(--rf-blue); }
.rf-card .nt time { flex: none; font-size: 12.5px; color: #7D8BA3; font-variant-numeric: tabular-nums; }
.rf-card .nt-empty { color: #7C8AA3; }
.rf-card.gd ul { display: grid; gap: 2px; }                 /* 10/13 대표님 «정렬 똑바로»: 이어 붙이던 링크(줄마다 개수가 달라 들쭉날쭉) → 한 줄에 하나, 점 맞춰 세로로 */
.rf-card.gd li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.6; }
.rf-card.gd li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: #9AABC6; }
.rf-card.gd li a { color: #2A3B5C; }
.rf-card.gd li a:hover { color: var(--rf-blue); }
.rf-card.special { border: 0; background: linear-gradient(115deg, #206EEA, #0D55CD); color: #fff; }
.rf-card.special h3, .rf-card.special p, .rf-card.special .go { color: #fff; }
.rf-card.special .ic { background: rgba(255, 255, 255, .14); }
.rf-card.special .ic svg { stroke: #fff; }

/* 셀루프 이용시!(관리자 큰 배너·오른쪽 배너) · 띠 배너 — 칸 모양만 시안 말투(둥근 모서리). 바탕색은 관리자가 고른 색 그대로 */
body.ref-home .s-hero { margin-top: 0; }
body.ref-home .bn-slider { border-radius: 10px; }
body.ref-home .bn-tabs { border-color: var(--rf-line); border-radius: 0 0 10px 10px; overflow: hidden; }
body.ref-home .bn-tabs button.on::before { background: var(--rf-blue); }
body.ref-home .bn-side, body.ref-home .bn-strip { border-radius: 9px; }
body.ref-home .bn-btn { border-radius: 7px; }
body.ref-home .bn-strip { margin: 44px 0 0; }
body.ref-home .bn-strip p { word-break: keep-all; }
body.ref-home .bn-tabs button { font-size: 14px; }
.s-hero.side-only { grid-template-columns: 1fr; }                                  /* 큰 배너를 모두 끄고 오른쪽 배너만 — 한 줄 3칸 */
.s-hero.side-only .bn-sides { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; }
.s-hero.side-only .bn-side { min-height: 110px; }

/* 팝업(메인에서만 뜸) — 시안 말투: 둥근 모서리 · 파랑 단추 */
body.ref-home .bn-pop { border: 1px solid var(--rf-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(16, 62, 136, .16); }
body.ref-home .bn-pop-cta { background: var(--rf-blue); }
body.ref-home .bn-pop-cta:hover { background: var(--rf-blue-d); }

@media (prefers-reduced-motion: reduce) { .rf-svc a { transition: none; } .rf-svc a:hover { transform: none; } }

/* ── 좁은 화면 ─────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .rf-hero-copy h1 { font-size: 36px; font-size: clamp(32px, 3.4vw, 36px); }   /* «반영까지»만 한 줄로 떨어지지 않게 */
  .rf-desc { font-size: 15px; }
  .rf-hero-top { grid-template-columns: 48% 52%; }
  .rf-metrics .m { padding: 12px 10px; gap: 10px; }
  .rf-metrics .ic { width: 40px; height: 40px; }
  .rf-metrics .ic svg { width: 21px; height: 21px; }
  .rf-metrics small { font-size: 12px; } .rf-metrics em { font-size: 12px; }
  .rf-metrics b { font-size: 19px; }
  .rf-svc p { font-size: 12.5px; }
  .rf-svc h3 { font-size: 15.5px; }
  .rf-svc a { padding-left: 8px; padding-right: 8px; }
  .rf-pp .feats { display: none; }
  .rf-pp .copy { max-width: 58%; }
  .rf-flow { grid-template-columns: 240px minmax(0, 1fr); }
  .rf-flow b { font-size: 13.5px; }
  .rf-flow small { font-size: 12px; }
}
@media (max-width: 1180px) {                                             /* home.css 4칸 숨김 규칙(10개 → 8개) 풀기 — 메인 상품 칸은 5칸 그대로 */
  body.ref-home .hm-sec > .pgrid > *, body.ref-home .hm-sec > .s-pane > .pgrid > * { display: flex; }
}
@media (max-width: 1150px) {                                             /* 배너 두 칸이 좁아 글이 사진·노트북·상자 위에 얹히던 것 → 한 칸씩 */
  .rf-persona { grid-template-columns: 1fr; gap: 10px; }
  .rf-cta { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {                                             /* 첫 화면은 글 → 그림 한 줄씩(그림을 705px 그대로, 제목 3줄 그대로) */
  .rf-hero-top { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .rf-hero-copy h1 { font-size: 38px; }
  .rf-hero-visual { justify-self: center; margin-top: 40px; }
  .rf-svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rf-svc a { min-height: 190px; }
  .rf-support { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-support > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 601px) and (max-width: 760px) {                     /* 고객지원 세 칸이 좁을 때: 아이콘을 위로(글 칸을 넓게) */
  .rf-support > .rf-card:not(:first-child) { flex-direction: column; gap: 10px; }
}
@media (max-width: 900px) {
  .rf-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-metrics .m:nth-child(3) { border-right: 0; }
  .rf-metrics .m:nth-child(n+4) { border-top: 1px solid #EEF1F5; }
  .rf-pp .copy { max-width: 60%; }
  body.ref-home .s-cats { grid-template-columns: repeat(var(--n5, 5), minmax(0, 1fr)); }
  .rf-sup { grid-template-columns: 1fr; }
  body.ref-home .hm-sec > .pgrid, body.ref-home .hm-sec > .s-pane > .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ref-home .hm-sec > .pgrid > :nth-child(n+7), body.ref-home .hm-sec > .s-pane > .pgrid > :nth-child(n+7),
  body.ref-home .hm-sec > .pgrid > :nth-child(4):nth-last-child(2), body.ref-home .hm-sec > .s-pane > .pgrid > :nth-child(4):nth-last-child(2),
  body.ref-home .hm-sec > .pgrid > :nth-child(5):last-child, body.ref-home .hm-sec > .s-pane > .pgrid > :nth-child(5):last-child { display: none; }   /* 3칸: 6개(두 줄) · 5개면 3개(한 줄) */
  .rf-flow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rf-hero-top { padding-top: 25px; padding-bottom: 25px; }
  .rf-quote { font-size: 14px; }
  .rf-hero-copy h1 { font-size: 29px; font-size: clamp(24px, 6.9vw, 29px); line-height: 1.27; }   /* 폰도 3줄(«반영까지»만 떨어지지 않게) */
  .rf-desc { font-size: 14px; }
  .rf-actions { margin-top: 18px; gap: 8px; }
  .rf-btn { height: 46px; padding: 0 18px; gap: 10px; font-size: 14.5px; }
  .rf-points { gap: 8px 14px; margin-top: 18px; font-size: 13px; }
  .rf-hero-visual { margin-top: 22px; }
  .rf-prehead { display: none; }                                        /* 폰 그림 안에 «하나의 상품이»가 이미 있다 */
  .rf-hero-pic img { aspect-ratio: 724 / 662; }
  .rf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 15px; }
  .rf-metrics .m { padding: 12px 10px; gap: 9px; }
  .rf-metrics .m:nth-child(2n) { border-right: 0; }
  .rf-metrics .m:nth-child(3) { border-right: 1px solid #E9EEF7; }
  .rf-metrics .m:nth-child(n+3) { border-top: 1px solid #EDF1F9; }
  .rf-metrics .m:last-child { grid-column: 1 / -1; justify-content: center; }
  .rf-metrics .ic { width: 36px; height: 36px; }
  .rf-metrics .ic svg { width: 19px; height: 19px; }
  .rf-metrics small { font-size: 12px; } .rf-metrics b { font-size: 18px; } .rf-metrics em { font-size: 12px; }
  .rf-sec, body.ref-home .hm-sec { margin-top: 34px; }
  .rf-head { flex-wrap: wrap; gap: 6px 15px; }
  .rf-head h2, body.ref-home .s-sec h2 { font-size: 21px; }
  .rf-head p, body.ref-home .s-sec p { font-size: 13px; }
  .rf-more, body.ref-home .s-sec > a { font-size: 13px; }
  .rf-head.center { justify-content: flex-start; text-align: left; }
  .rf-pp { min-height: 236px; }
  .rf-pp .copy { max-width: 68%; padding: 20px 16px; }
  .rf-pp .eyebrow { font-size: 13px; }
  .rf-pp h3 { font-size: 23px; }
  .rf-pp p { font-size: 13px; }
  .rf-pp p br { display: none; }
  body.ref-home .s-cats { grid-template-columns: repeat(var(--n3, 3), minmax(0, 1fr)); gap: 6px; }
  body.ref-home .s-cats a { min-height: 104px; padding: 12px 4px; font-size: 13px; }
  .rf-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .rf-svc a { min-height: 172px; padding: 20px 10px 14px; }
  .rf-svc h3 { font-size: 15.5px; }
  .rf-svc p { font-size: 12.5px; }
  .rf-sup .d { gap: 8px; }
  .rf-sup .ph { width: 100px; height: 108px; }
  .rf-tabs, body.ref-home .s-tabs { gap: 4px; }
  .rf-tabs button, body.ref-home .s-tabs button { padding: 8px 10px; font-size: 13.5px; }
  .rf-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }   /* 탭 4개 한 줄(좁으면 탭 줄 안에서만 밀림) */
  .rf-tabs button { flex: none; white-space: nowrap; }
  body.ref-home .hm-sec > .pgrid, body.ref-home .hm-sec > .s-pane > .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body.ref-home .hm-sec > .pgrid > :nth-child(4):nth-last-child(2), body.ref-home .hm-sec > .s-pane > .pgrid > :nth-child(4):nth-last-child(2) { display: flex; }   /* 2칸: 6개(세 줄) · 5개면 4개 */
  body.ref-home .pcard .body { padding: 10px; }
  body.ref-home .pcard .name { min-height: 38px; font-size: 13.5px; }
  body.ref-home .pcard .more { font-size: 12.5px; }
  .rf-flow { gap: 10px; padding: 20px 13px; }
  .rf-flow h2 { font-size: 21px; }
  .rf-flow p { font-size: 13.5px; }
  .rf-flow .steps { grid-template-columns: repeat(7, 118px); overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .rf-flow li { min-height: 128px; }
  .rf-ct { min-height: 196px; padding: 22px 18px; }
  .rf-ct h3 { font-size: 22px; }
  .rf-ct p { font-size: 13px; }
  .rf-ct .copy { max-width: 64%; }
  .rf-support { grid-template-columns: 1fr; }
  .rf-card { min-height: 100px; padding: 18px; }
  body.ref-home .hm-mdt, body.ref-home .bn-sides { margin-right: -14px; padding-right: 14px; }   /* home.css 폰 규칙(-16px)은 옛 여백 16px 기준 — 메인 폰 여백은 14px(시안) */
}

/* ── 관리자 배너 바탕 그림(10/12 화이트·블루 그림 — 큰 배너 7 · 오른쪽 3 · 띠 1 · MD 테마 6, PC·폰 각각) ──
   ★짝은 «배너 키»로 짓는다(_parts/banners.html bn-k-*: 관리자 배너의 기본 그림 이름 market·card·boxes·laptop·pallet·store, 셀러룸 링크 = sellerroom).
     순서로 짓지 않는다 — 관리자가 순서를 바꾸거나 배너를 더하고 빼도 엉뚱한 그림이 붙지 않게.
   ★관리자가 직접 올린 그림이 있는 배너(bn-k-own)·짝이 없는 배너는 건드리지 않는다(관리자 그림·바탕색 그대로).
   ★글·단추는 HTML(관리자가 고친 문구 그대로). 상품 카드 사진은 실제 상품 사진 그대로. MD 테마는 이름 낱말로 짝(public/home.html md_art). */
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) { background-color: #F3F8FF; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: var(--art-pc); color: #132D5A; --bn-ac: #1266F1; }
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-copy { position: relative; z-index: 2; max-width: min(48%, 440px); }
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-title { color: #10274F; font-weight: 800; }
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-title .bn-t1 { color: #173A69; font-weight: 650; }
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-title .bn-t2 { color: #1266F1; font-weight: 900; }
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-sub { color: #526B92; opacity: 1; font-weight: 500; }
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-btn { background: #1266F1; color: #fff; border: 1px solid #1266F1; }
body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) :is(.bn-il, .bn-photos) { display: none; }   /* 그림이 사진·평면 그림 자리를 대신 */
body.ref-home .bn-slide.bn-k-market { --art-pc: url("/static/img/selloop/hero/ref2-campaign-01-pc.webp"); --art-mo: url("/static/img/selloop/hero/ref2-campaign-01-mo.webp"); }
body.ref-home .bn-slide.bn-k-sellerroom { --art-pc: url("/static/img/selloop/hero/ref2-campaign-02-pc.webp"); --art-mo: url("/static/img/selloop/hero/ref2-campaign-02-mo.webp"); }
body.ref-home .bn-slide.bn-k-card { --art-pc: url("/static/img/selloop/hero/ref2-campaign-03-pc.webp"); --art-mo: url("/static/img/selloop/hero/ref2-campaign-03-mo.webp"); }
body.ref-home .bn-slide.bn-k-boxes { --art-pc: url("/static/img/selloop/hero/ref2-campaign-04-pc.webp"); --art-mo: url("/static/img/selloop/hero/ref2-campaign-04-mo.webp"); }
body.ref-home .bn-slide.bn-k-laptop { --art-pc: url("/static/img/selloop/hero/ref2-campaign-05-pc.webp"); --art-mo: url("/static/img/selloop/hero/ref2-campaign-05-mo.webp"); }
body.ref-home .bn-slide.bn-k-pallet { --art-pc: url("/static/img/selloop/hero/ref2-campaign-06-pc.webp"); --art-mo: url("/static/img/selloop/hero/ref2-campaign-06-mo.webp"); }
body.ref-home .bn-slide.bn-k-store { --art-pc: url("/static/img/selloop/hero/ref2-campaign-07-pc.webp"); --art-mo: url("/static/img/selloop/hero/ref2-campaign-07-mo.webp"); }
body.ref-home .bn-side:is(.bn-k-card, .bn-k-boxes, .bn-k-laptop) { background-color: #EEF5FF; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: var(--art-pc); color: #173C75; }
body.ref-home .bn-side:is(.bn-k-card, .bn-k-boxes, .bn-k-laptop) > div:first-child { position: relative; z-index: 2; max-width: 65%; }
body.ref-home .bn-side:is(.bn-k-card, .bn-k-boxes, .bn-k-laptop) .bn-photos { display: none; }
body.ref-home .bn-side.bn-k-card { --art-pc: url("/static/img/selloop/hero-side/side-new-pc.webp"); --art-mo: url("/static/img/selloop/hero-side/side-new-mo.webp"); }
body.ref-home .bn-side.bn-k-boxes { --art-pc: url("/static/img/selloop/hero-side/side-best-pc.webp"); --art-mo: url("/static/img/selloop/hero-side/side-best-mo.webp"); }
body.ref-home .bn-side.bn-k-laptop { --art-pc: url("/static/img/selloop/hero-side/side-stores-pc.webp"); --art-mo: url("/static/img/selloop/hero-side/side-stores-mo.webp"); }
body.ref-home .bn-strip.bn-k-market { background-color: #E9F3FF; background-position: center; background-size: cover; background-repeat: no-repeat; color: #123765; --bn-ac: #1266F1;
  --art-pc: url("/static/img/selloop/promo/ref2-market-strip-pc.webp"); --art-mo: url("/static/img/selloop/promo/ref2-market-strip-mo.webp"); background-image: var(--art-pc); }
body.ref-home .bn-strip.bn-k-market .bn-il { display: none; }
body.ref-home .bn-strip.bn-k-market .bn-copy { z-index: 2; }
body.ref-home .bn-strip.bn-k-market .bn-btn { z-index: 2; background: #1266F1; color: #fff; border-radius: 5px; }
body.ref-home .hm-md-cv[class*=ref-md] { background-color: #EFF6FF; background-position: center; background-size: cover; background-repeat: no-repeat; background-image: var(--art-pc); color: #102C5A; --bn-ac: #1266F1; }
body.ref-home .hm-md-cv[class*=ref-md] strong { position: relative; z-index: 2; }
body.ref-home .hm-md-cv[class*=ref-md] p, body.ref-home .hm-md-cv[class*=ref-md] small { position: relative; z-index: 2; color: #456185; }
body.ref-home .hm-md-cv.ref-md-1 { --art-pc: url("/static/img/selloop/md/ref2-md-01-pc.webp"); --art-mo: url("/static/img/selloop/md/ref2-md-01-mo.webp"); }
body.ref-home .hm-md-cv.ref-md-2 { --art-pc: url("/static/img/selloop/md/ref2-md-02-pc.webp"); --art-mo: url("/static/img/selloop/md/ref2-md-02-mo.webp"); }
body.ref-home .hm-md-cv.ref-md-3 { --art-pc: url("/static/img/selloop/md/ref2-md-03-pc.webp"); --art-mo: url("/static/img/selloop/md/ref2-md-03-mo.webp"); }
body.ref-home .hm-md-cv.ref-md-4 { --art-pc: url("/static/img/selloop/md/ref2-md-04-pc.webp"); --art-mo: url("/static/img/selloop/md/ref2-md-04-mo.webp"); }
body.ref-home .hm-md-cv.ref-md-5 { --art-pc: url("/static/img/selloop/md/ref2-md-05-pc.webp"); --art-mo: url("/static/img/selloop/md/ref2-md-05-mo.webp"); }
body.ref-home .hm-md-cv.ref-md-6 { --art-pc: url("/static/img/selloop/md/ref2-md-06-pc.webp"); --art-mo: url("/static/img/selloop/md/ref2-md-06-mo.webp"); }
@media (max-width: 860px) {
  body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store), body.ref-home .bn-side:is(.bn-k-card, .bn-k-boxes, .bn-k-laptop), body.ref-home .bn-strip.bn-k-market, body.ref-home .hm-md-cv[class*=ref-md] { background-image: var(--art-mo); }
  body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) { background-position: center top; }
  body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-copy { max-width: 100%; width: 100%; }
  body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-title { font-size: clamp(19px, 5.3vw, 29px); }
  body.ref-home .bn-slide:is(.bn-k-market, .bn-k-sellerroom, .bn-k-card, .bn-k-boxes, .bn-k-laptop, .bn-k-pallet, .bn-k-store) .bn-sub { font-size: 12.5px; line-height: 1.4; max-width: 70%; }
  body.ref-home .bn-side:is(.bn-k-card, .bn-k-boxes, .bn-k-laptop) p { max-width: 60%; }
}
@media (max-width: 370px) { body.ref-home .bn-strip.bn-k-market .bn-copy { max-width: 76%; } }

/* SELLOOP PARTNER PORTRAIT LEGIBILITY 20261012 */
@media(min-width:1201px) {
  body.ref-home .rf-pp.partner .feats {right:7px;top:18px;width:123px;gap:5px}
  body.ref-home .rf-pp.partner .feats li {padding:0 5px;gap:4px;font-size:11px;min-height:32px}
}
