/* ===== 업소 페이지 새 디자인 (2026-10-13 리디자인 지시서) =====
 * 테마는 <body data-theme="키"> 로 전환. 키: green terracotta navy red burgundy orange purple
 */

/* ----- 테마 변수 ----- */
[data-theme="green"]      { --bg:#FAFAF7; --ink:#141414; --sub:#555555; --card:#F1F1EC; --surface:#FFFFFF; --border:#E3E1D9; --accent:#1F4D3A; --accentText:#1F4D3A; --accentSoft:#E4EEE8; --dot:#9BE3B4; --band:#161A14; --bandText:#C9CEC6; --bandLink:#9BE3B4; --bandBorder:#5E655B; --chip:#FEE500; }
[data-theme="terracotta"] { --bg:#FBF6EF; --ink:#2B1D14; --sub:#6A5444; --card:#F3E8DA; --surface:#FFFDF9; --border:#E6D7C3; --accent:#A9471F; --accentText:#A9471F; --accentSoft:#F6DFD2; --dot:#FFC79E; --band:#3A2418; --bandText:#E2CDBB; --bandLink:#FFC79E; --bandBorder:#7A5A47; --chip:#F2C14E; }
[data-theme="navy"]       { --bg:#F7F8FB; --ink:#121A2C; --sub:#4E5870; --card:#EBEEF5; --surface:#FFFFFF; --border:#DCE1EC; --accent:#2D4BA0; --accentText:#2D4BA0; --accentSoft:#DFE6F7; --dot:#9FD8FF; --band:#121A2C; --bandText:#C3CBDD; --bandLink:#9FB7FF; --bandBorder:#4A5677; --chip:#FEE500; }
[data-theme="red"]        { --bg:#FFFAF7; --ink:#1A1414; --sub:#5C5050; --card:#F7ECE8; --surface:#FFFFFF; --border:#EBDDD8; --accent:#C8202B; --accentText:#B81D27; --accentSoft:#FBE1DE; --dot:#FFD1CC; --band:#1A1414; --bandText:#D8CACA; --bandLink:#FF9B92; --bandBorder:#5E4C4C; --chip:#FEE500; }
[data-theme="burgundy"]   { --bg:#FAF6F4; --ink:#24161A; --sub:#5E4A50; --card:#F1E6E6; --surface:#FFFDFC; --border:#E4D3D5; --accent:#7A1F35; --accentText:#7A1F35; --accentSoft:#F2DCE1; --dot:#F5B8C6; --band:#2E141C; --bandText:#DCC5CB; --bandLink:#F5B8C6; --bandBorder:#6A4450; --chip:#F2C14E; }
[data-theme="orange"]     { --bg:#FFF9F2; --ink:#1C1610; --sub:#5E5246; --card:#FBEEDD; --surface:#FFFFFF; --border:#F0DEC8; --accent:#C2410C; --accentText:#B23C0B; --accentSoft:#FDE3CF; --dot:#FFD7A8; --band:#1C1610; --bandText:#D9CCBE; --bandLink:#FFB37A; --bandBorder:#5E5040; --chip:#FEE500; }
[data-theme="purple"]     { --bg:#F9F8FC; --ink:#1A1626; --sub:#555068; --card:#EEEBF6; --surface:#FFFFFF; --border:#DEDAEC; --accent:#5B3FA8; --accentText:#5B3FA8; --accentSoft:#E6DFF7; --dot:#CBB9FF; --band:#1A1626; --bandText:#CFCBDD; --bandLink:#BBA6FF; --bandBorder:#514A6C; --chip:#FEE500; }

/* 하위 화면(상품·소식·가게 정보)은 이전 마크업(shop.css)을 쓰므로 그 변수를 테마에 연결 */
.ns {
  --onAccent: #FFFFFF;
  --sp-ink: var(--ink); --sp-sub: var(--sub); --sp-line: var(--border); --sp-bg-soft: var(--card);
  --sp-accent: var(--accent); --sp-on-accent: #FFFFFF; --sp-max: 1280px;
  background: var(--bg); color: var(--ink);
  font-family: "Noto Sans KR", sans-serif; word-break: keep-all; letter-spacing: -0.01em;
}
.ns .sp-wrap { max-width: 1280px; }   /* 메인페이지(.wrap)와 같은 폭 */
.ns-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.ns a { color: inherit; }
.ns :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- ① 헤더 ----- */
.ns-header { background: var(--bg); }
.ns-header-inner { position: relative; display: flex; align-items: center; gap: 20px; min-height: 84px; padding-block: 10px; }
/* 메뉴와 본문 사이: 본문 폭과 같은 길이의 얇은 선 (틀이 아니라 디자인 구분) */
.ns-header-inner::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: var(--border); }
.ns-brand { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.ns-logo { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--onAccent); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 900; }
.ns-brand strong { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-nav { display: flex; gap: 4px; }
.ns-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15.5px; font-weight: 500; color: var(--sub); border-radius: 999px; }
.ns-nav a { position: relative; }
.ns-nav a:hover { color: var(--ink); }
.ns-nav a[aria-current] { color: var(--ink); font-weight: 700; }
.ns-nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); }
.ns-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14.5px; font-weight: 500; color: var(--sub); }
.ns-login:hover { color: var(--ink); }
.ns-me { position: relative; }
.ns-me summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 4px; border-radius: 999px; }
.ns-me summary::-webkit-details-marker { display: none; }
.ns-me summary:hover, .ns-me[open] summary { background: var(--card); }
.ns-me-av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.ns-me-name { max-width: 9em; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-me-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); }
.ns-me-menu p { padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.ns-me-menu p strong { display: block; font-size: 15px; }
.ns-me-menu p small { color: var(--sub); font-size: 13px; }
.ns-me-menu a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; font-size: 14.5px; }
.ns-me-menu a:hover { background: var(--card); }
.ns-handle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.ns-handle:hover { background: var(--ink); color: var(--bg); }

.ns-flash { margin: 8px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accentSoft); color: var(--accentText); font-weight: 700; }

/* ----- ② 메인 이미지 ----- */
/* 16:7 비율, 최소 280px. aspect-ratio + min-height 를 같이 쓰면 좁은 화면에서 폭이 넘치므로 높이로 계산 */
.ns-hero { position: relative; margin-top: 32px; height: max(280px, calc((min(100vw, 1280px) - 48px) * 7 / 16)); border-radius: 24px; overflow: hidden; background: var(--card); }
.ns-hero > img { width: 100%; height: 100%; object-fit: cover; }
.ns-hero-badges { position: absolute; left: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ns-status, .ns-hours { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 700; }
.ns-status { background: var(--accent); color: var(--onAccent); }
.ns-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.ns-status.is-open i { box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 35%, transparent); }
.ns-status.is-closed, .ns-status.is-holiday { background: #3A3A3A; }
.ns-status.is-closed i, .ns-status.is-holiday i { background: #9A9A9A; }
.ns-hours { background: #FFFFFF; color: #141414; font-weight: 500; }

/* ----- ③ 헤드라인 ----- */
.ns-headline { margin-top: 36px; }
.ns-headline h1 { font-size: clamp(42px, 7.4vw, 82px); font-weight: 900; letter-spacing: -3px; line-height: 1.1; }
.ns-headline h1 span { display: block; }
.ns-headline h1 .ns-accent { color: var(--accent); }
.ns-sub { margin-top: 18px; font-size: 21px; line-height: 1.55; color: var(--sub); }
.ns-sub strong { color: var(--ink); font-weight: 700; }
.ns-new { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 26px; padding: 0 18px 0 10px; border-radius: 14px; background: var(--card); font-size: 16px; font-weight: 500; }
.ns-new b { flex-shrink: 0; padding: 4px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; letter-spacing: .06em; }
.ns-new span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-new:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* 메인 이미지 없이 쓸 때: 배지를 헤드라인 위에 */
.ns-headline.no-hero { margin-top: 8px; }   /* 메인 이미지가 있을 때(.ns-home .ns-hero)와 같은 간격 */
.ns-badges-inline { position: static; margin-bottom: 20px; }
.ns-badges-inline .ns-hours { background: var(--card); color: var(--ink); }

/* ----- ④ 구분선 ----- */
.ns-rule { margin: 44px 0 0; border: 0; border-top: 2px solid var(--ink); }

/* ----- 섹션 공통 ----- */
.ns-section { margin-top: 72px; }
.ns-products { margin-top: 44px; }
.ns-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ns-head h2, .ns-page-title { font-size: 32px; font-weight: 900; letter-spacing: -0.04em; }
.ns-head h2 em, .ns-head h2 strong, .ns-page-title em { font-style: normal; font-weight: 900; color: var(--accent); }
.ns-head > a { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--accentText); }
.ns-head > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ns-count { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--sub); }
.ns-empty { padding: 48px 20px; border-radius: 16px; background: var(--card); color: var(--sub); text-align: center; }
.ns-empty a { color: var(--accentText); font-weight: 700; text-decoration: underline; }

/* ----- ⑤ 상품 그리드 ----- */
/* 칸 최소 200px, 한 줄 최대 4개 */
.ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 42px) / 4)), 1fr)); gap: 28px 14px; }
.ns-item { display: block; }
.ns-item-img { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--card); }
.ns-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.ns-item:hover .ns-item-img img { transform: scale(1.04); }
.ns-tag { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--onAccent); font-size: 12.5px; font-weight: 700; }
.ns-item strong { display: block; margin-top: 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.ns-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ns-price { display: block; margin-top: 2px; font-size: 17px; color: var(--sub); }

/* ----- ⑥ 사장님 이야기 ----- */
.ns-story { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; border-radius: 24px; background: var(--card); overflow: hidden; }
/* 사진은 글 높이에 맞춰 늘고 줄어든다 (최소 240px) */
.ns-story-img { position: relative; min-height: 200px; }
.ns-story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.ns-story-text { align-self: center; padding: 36px 40px; }
.ns-label { font-size: 14px; font-weight: 700; color: var(--accentText); }
.ns-story blockquote { margin-top: 12px; font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.35; letter-spacing: -0.04em; }
.ns-story-body { margin-top: 18px; font-size: 17px; line-height: 1.85; color: var(--sub); }
.ns-sign { margin-top: 20px; font-size: 15px; font-weight: 700; }

/* 사장님 이야기 페이지 */
.ns-story .ns-more { margin-top: 10px; }
.ns-page-title { margin-bottom: 24px; }
.ns-story-page { margin-top: 0; grid-template-columns: 380px minmax(0, 1fr); }
.ns-story-page .ns-story-img { min-height: 360px; }
.ns-promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ns-promise li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.ns-promise b { color: var(--accent); font-weight: 900; }
.ns-promise strong { font-size: 18px; }
.ns-promise span { color: var(--sub); }
.ns-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.ns .ns-btn-outline { border-color: var(--ink); color: var(--ink); }
.ns .ns-btn-outline:hover { background: var(--ink); color: var(--bg); }

/* 스토리: 메인 스토리(큰 이미지 + 글, 넘겨보기) */
.ns-mstory { position: relative; }
.ns-mstory-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ns-mstory-track::-webkit-scrollbar { display: none; }
.ns-mstory-item { flex: 0 0 100%; scroll-snap-align: start; }
.ns-mstory-img { height: max(260px, calc((min(100vw, 1280px) - 48px) * 7 / 16)); border-radius: 24px; overflow: hidden; background: var(--card); }
.ns-mstory-img img { width: 100%; height: 100%; object-fit: cover; }
.ns-mstory-text { max-width: 760px; margin-top: 28px; }
.ns-mstory-text h1 { margin-top: 8px; font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.2; }
.ns-mstory-body { margin-top: 16px; font-size: 18px; line-height: 1.8; color: var(--sub); }
.ns-mstory-ctrl { position: absolute; right: 20px; top: calc(max(260px, calc((min(100vw, 1280px) - 48px) * 7 / 16)) - 64px); display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.ns-mstory-ctrl button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #141414; }
.ns-mstory-ctrl button:hover { background: #F0F0F0; }
.ns-mstory-ctrl span { min-width: 44px; text-align: center; font-size: 14px; font-weight: 700; color: #141414; }

/* 스토리: 사장님 이야기 카드 */
.ns-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ns-story-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.ns-story-card-img { display: block; aspect-ratio: 4 / 3; background: var(--card); overflow: hidden; }
.ns-story-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
a.ns-story-card:hover .ns-story-card-img img { transform: scale(1.04); }
.ns-story-card-text { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.ns-story-card-text time { font-size: 13px; color: var(--sub); }
.ns-story-card-text strong { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; }
a.ns-story-card:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ns-story-card-text > span { font-size: 15px; line-height: 1.65; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 스토리 상세 */
.ns-article { max-width: 820px; }
.ns-article time { font-size: 14px; color: var(--sub); }
.ns-article h1 { margin: 6px 0 22px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.3; }
.ns-article-img img { width: 100%; height: auto; border-radius: 20px; margin-bottom: 26px; }
.ns-article-body { font-size: 17.5px; line-height: 1.9; }

/* 가게 안 로그인 */
/* 가게 홈: 구분선도, 구분선용 여백도 없이 (구분선 넣기 전 간격) */
.ns-home .ns-header-inner { padding-block: 0; }
.ns-home .ns-header-inner::after { display: none; }
.ns-home .ns-hero { margin-top: 8px; }
.ns-login-box { max-width: 420px; margin: 24px auto 40px; padding: 40px 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); text-align: center; }
.ns-logo-lg { width: 64px; height: 64px; margin: 0 auto; font-size: 28px; }
.ns-login-box h1 { margin-top: 14px; font-size: 26px; font-weight: 900; letter-spacing: -0.04em; }
.ns-login-sub { margin-top: 6px; font-size: 14.5px; color: var(--sub); }
.ns-login-error { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--accentSoft); color: var(--accentText); font-size: 14px; font-weight: 700; }
.ns-login-form { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; text-align: left; }
.ns-login-form label { margin-top: 8px; font-size: 13.5px; font-weight: 700; }
.ns-login-form input { min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.ns-login-form input:focus { outline: none; border-color: var(--accent); }
.ns-login-form .ns-btn { margin-top: 16px; width: 100%; }
.ns-login-foot { margin-top: 20px; font-size: 14px; color: var(--sub); }
.ns-login-foot a { color: var(--accentText); font-weight: 700; }
.ns-login[aria-current] { color: var(--ink); font-weight: 700; }

/* 가게 게시판 */
.ns-board { border-top: 2px solid var(--ink); }
.ns-board li { border-bottom: 1px solid var(--border); }
.ns-board a { display: grid; grid-template-columns: 72px minmax(0, 1fr) 110px; align-items: center; gap: 12px; min-height: 60px; padding: 0 8px; }
.ns-board a:hover .ns-board-title { text-decoration: underline; text-underline-offset: 3px; }
.ns-board-no { text-align: center; font-size: 14px; color: var(--sub); }
.ns-board-no b, .ns-notice-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--onAccent); font-size: 12.5px; font-weight: 700; }
.ns-board-title { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-board time { text-align: right; font-size: 14px; color: var(--sub); }
.ns-board li.is-notice { background: var(--accentSoft); }
.ns-board li.is-notice .ns-board-title { font-weight: 700; }
.ns-new.is-notice b { background: var(--accent); color: var(--onAccent); }

/* ----- ⑦ 방명록 ----- */
.ns-gb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.ns-gb { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.ns-gb.is-featured { border-color: var(--accent); }
.ns-gb-badge { align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accentSoft); color: var(--accentText); font-size: 12.5px; font-weight: 700; }
.ns-gb-body { flex: 1; font-size: 19px; line-height: 1.6; }
.ns-gb-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--sub); }
.ns-like { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; font-size: 14px; color: var(--sub); }
.ns-like:hover { background: var(--card); }
.ns-like.on { color: var(--accentText); }
.ns-like.on svg { fill: currentColor; }
.ns-gb-tools { display: flex; gap: 12px; padding-top: 8px; border-top: 1px dashed var(--border); }
.ns-gb-tools button { min-height: 32px; font-size: 13px; color: var(--sub); text-decoration: underline; text-underline-offset: 2px; }
.ns-gb-form { display: flex; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--card); }
.ns-gb-form textarea { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); resize: vertical; }
.ns-gb-form textarea:focus { outline: none; border-color: var(--accent); }
.ns-gb-login { display: flex; align-items: center; gap: 6px; min-height: 56px; margin-top: 16px; padding: 0 20px; border-radius: 18px; background: var(--card); font-weight: 700; color: var(--accentText); }
.ns-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-top: 12px; font-weight: 700; color: var(--accentText); }
.ns-page { padding-block: 40px 8px; }
.ns-page .ns-gb-form, .ns-page .ns-gb-login { margin: 0 0 24px; }

/* ----- 버튼 ----- */
.ns-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15.5px; font-weight: 700; white-space: nowrap; border: 1.5px solid transparent; }
.ns .ns-btn-accent { background: var(--accent); color: var(--onAccent); }
.ns-btn-accent:hover { filter: brightness(1.1); }
.ns .ns-btn-white { background: #FFFFFF; color: #141414; }
.ns .ns-btn-line { border-color: var(--bandBorder); color: #FFFFFF; }
.ns .ns-btn-line:hover { border-color: var(--bandLink); color: var(--bandLink); }

/* ----- ⑧ 오시는 길 ----- */
.ns-visit { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: stretch; border-radius: 22px; background: var(--band); color: #FFFFFF; overflow: hidden; }
.ns-visit-info { padding: 36px 40px; }
.ns-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--chip); color: #191919; font-size: 13.5px; font-weight: 700; }
.ns-visit-addr { display: block; margin-top: 16px; font-size: 28px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.35; }
.ns-visit dl { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bandBorder); }
.ns-visit dl div { display: flex; flex-direction: column; gap: 2px; }
.ns-visit dt { font-size: 12.5px; color: var(--bandText); }
.ns-visit dd { font-size: 16px; font-weight: 500; }
.ns-visit-btns { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; border-left: 1px solid var(--bandBorder); background: rgba(255, 255, 255, .04); }
.ns-visit-btns .ns-btn { width: 100%; justify-content: flex-start; padding: 0 20px; }

/* ----- ⑨ 푸터 ----- */
.ns-footer { margin-top: 40px; padding: 22px 0 32px; border-top: 1px solid var(--border); text-align: center; font-size: 13.5px; color: var(--sub); }
.ns-footer a { color: var(--accentText); font-weight: 700; }


/* ----- 하위 화면(이전 마크업) 테마 맞춤 ----- */
.ns .sp-article-layout { grid-template-columns: minmax(0, 1fr); max-width: 860px; }   /* 게시판 글: 오른쪽 칸 없이 본문만 */
.ns .sp-page { padding-top: 40px; }
.ns .sp-btn { border-radius: 999px; }
.ns .sp-card-price { color: var(--sub); font-weight: 500; }
.ns .sp-footer { display: none; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
  .ns-wrap { padding-inline: 16px; }   /* 위아래 여백(.ns-page 등)은 그대로 두고 좌우만 */
  .ns-header-inner { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding-block: 12px; }
  .ns-header-inner::after { left: 16px; right: 16px; }
  .ns-brand strong { font-size: 21px; }
  .ns-logo { width: 38px; height: 38px; font-size: 16px; }
  .ns-logo.ns-logo-lg { width: 56px; height: 56px; font-size: 24px; }
  .ns-handle { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .ns-me-name { display: none; }
  .ns-me summary { padding: 0 4px; }
  .ns-nav { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; }
  /* 메뉴는 한 줄에, 글씨는 들어가는 만큼 최대한 크게 (js/main.js 가 --nav-fs·--nav-pad 를 화면 폭에 맞춤, 최대 20px) */
  .ns-nav { gap: 0; }
  .ns-nav a { padding: 0 var(--nav-pad, .5em); font-size: var(--nav-fs, 15px); white-space: nowrap; }
  .ns-nav a[aria-current]::after { left: var(--nav-pad, .5em); right: var(--nav-pad, .5em); }
  .ns-nav > :first-child { margin-left: auto; }   /* 가운데 정렬 (넘쳐도 왼쪽이 잘리지 않게 auto 여백) */
  .ns-nav > :last-child { margin-right: auto; }
  .ns-hero { border-radius: 18px; }
  .ns-sub { font-size: 17px; }
  .ns-head h2, .ns-page-title { font-size: 25px; }
  .ns-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .ns-item strong { font-size: 16px; }
  .ns-price { font-size: 15px; }
  .ns-story { grid-template-columns: minmax(0, 1fr); }
  .ns-story-text { padding: 24px 22px 26px; }
  .ns-story-img { min-height: 220px; }
  .ns-story-page { grid-template-columns: minmax(0, 1fr); }
  .ns-hero { margin-top: 20px; }
  .ns-home .ns-header-inner { padding-block: 12px 4px; }
  .ns-home .ns-hero { margin-top: 8px; }
  .ns-mstory-ctrl { right: 10px; top: 200px; }
  .ns-mstory-img { height: 260px; border-radius: 18px; }
  .ns-mstory-body { font-size: 16px; }
  .ns-stories { grid-template-columns: minmax(0, 1fr); }
  .ns-board a { grid-template-columns: 52px minmax(0, 1fr); padding: 12px 4px; }
  .ns-board time { grid-column: 2; text-align: left; font-size: 13px; }
  .ns-story-page .ns-story-img { min-height: 260px; }
  .ns-gb-grid { grid-template-columns: minmax(0, 1fr); }
  .ns-gb-body { font-size: 17px; }
  .ns-gb-form { flex-direction: column; }
  .ns-visit { grid-template-columns: minmax(0, 1fr); }
  .ns-visit-info { padding: 26px 22px 20px; }
  .ns-visit-addr { font-size: 21px; }
  .ns-visit dl { gap: 10px 24px; }
  .ns-visit-btns { padding: 0 22px 24px; border-left: 0; background: none; }
  .ns-visit-btns .ns-btn { justify-content: center; }
  .ns-footer { margin-top: 28px; }
}
@media (max-width: 480px) {
  .ns-headline h1 { font-size: 42px; letter-spacing: -2px; }
  .ns-status, .ns-hours { min-height: 30px; padding: 0 12px; font-size: 13px; }
  .ns-hero-badges { left: 12px; bottom: 12px; }
}
.ns-head .ns-page-title { margin-bottom: 0; }   /* 제목 줄(ns-head) 안에서는 아래 여백을 ns-head 가 담당 */
.ns-article-nav { max-width: 820px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
/* 사진 없는 스토리: 글 중심 카드 */
.ns-story-card.no-img { border: 0; background: var(--accentSoft); }   /* 테두리 없이 배경색으로만 */
.ns-story-card.no-img .ns-story-card-text { flex: 1; padding: 28px 26px 30px; gap: 10px; }
.ns-story-card.no-img strong { font-size: 23px; font-weight: 900; line-height: 1.35; }
.ns-story-card.no-img .ns-story-card-text > span { -webkit-line-clamp: 7; font-size: 15.5px; }
/* 스토리 제목 두 줄 */
.ns-t1, .ns-t2 { display: block; }
.ns-t2 { color: var(--accent); }
.ns-pin { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--accent); color: var(--onAccent); font-size: 12.5px; font-weight: 700; }
.ns-story-card-text > .ns-pin { color: var(--onAccent); font-size: 12.5px; display: inline-flex; -webkit-line-clamp: unset; overflow: visible; }
.ns-hero-link { display: block; width: 100%; height: 100%; }
.ns-hero-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ns-hero-link:hover img { transform: scale(1.02); }
.ns-story blockquote a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ns-story.no-img { grid-template-columns: minmax(0, 1fr); background: var(--accentSoft); }
.ns-region { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; margin-left: -4px; padding-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--sub); white-space: nowrap; }
/* 좁은 화면: 지역은 가게명 위 작은 줄로 (헤더 한 줄 유지) */
@media (max-width: 768px) {
  .ns-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 0; }
  .ns-brand .ns-logo { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
  .ns-brand strong { grid-column: 2; grid-row: 2; line-height: 1.25; }
  .ns-region { grid-column: 2; grid-row: 1; margin-left: 0; padding-top: 0; font-size: 12px; }
  .ns-brand:not(:has(.ns-region)) strong { grid-row: 1 / span 2; align-self: center; }
}
.ns-login-form .pw-wrap input { width: 100%; min-height: 48px; padding: 0 48px 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.ns-login-form .pw-wrap input:focus { outline: none; border-color: var(--accent); }
.ns-login-form .login-opts { margin-top: 10px; }
.ns-login-form .login-chk input { accent-color: var(--accent); }
.ns-login-form .pw-toggle[aria-pressed="true"] { color: var(--accent); }
.ns-login-form .login-opts { display: flex; justify-content: space-between; align-items: center; }
.ns-login-form label.login-chk { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: var(--sub); }
.ns-login-form .login-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--sub); }
.ns-login-form .caps-warn { margin-top: 6px; }
.ns-login-form .login-chk input { min-height: 0; width: 18px; height: 18px; padding: 0; margin: 0; }
/* 프로필 썸네일 (가게 로고·아이디 메뉴·방명록) */
.ns-logo { overflow: hidden; }
.ns-logo img, .ns-me-av img, .ns-gb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-logo.has-img, .ns-me-av.has-img { background: var(--card); }
.ns-me-av { overflow: hidden; }
.ns-gb-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ns-gb-av { flex-shrink: 0; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--accentSoft); color: var(--accent); font-weight: 800; }
.ns-anchor { scroll-margin-top: 24px; }
.sp-crumb a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* 가게 페이지: 닉네임 오른쪽 안 읽은 알림 숫자 */
.ns-me summary { padding: 0 12px; }
.ns-noti { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: -6px; padding: 0 7px; border-radius: 11px; background: #E5484D; color: #fff !important; font-size: 12px; font-weight: 800; line-height: 1; text-decoration: none; }
.ns-noti:hover { background: #C8202B; }
.ns-me-name { display: inline !important; max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-me summary { padding: 0 8px 0 10px; }
.ns-noti { margin-left: -2px; }
@media (max-width: 480px) { .ns-me summary { min-height: 40px; padding: 0 6px; font-size: 14px; } }
/* 가게 주인·총관리자용 등록/글쓰기 버튼 */
.ns-count { display: inline-flex; align-items: center; gap: 12px; }
.ns-write { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--onAccent) !important; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ns-write:hover { filter: brightness(1.08); }
.ns-write-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.ns-article-nav { display: flex; justify-content: flex-end; }
.ns .sp-article-layout, .ns .sp-article-layout .sp-article { max-width: none; }   /* 게시판 글 본문: 가로 끝까지 */
/* 스토리 상세: 본문 가로 끝까지 (사진은 너무 길어지지 않게 높이 제한) */
.ns-article, .ns-article-nav { max-width: none; }
.ns-article-img img { max-height: 560px; object-fit: cover; }
.ns-write-bar.is-bottom { margin: 28px 0 0; }
/* 스토리 상세: 메인 스토리 / 사장님 이야기 구분 표시 */
.ns-kind { display: inline-flex; align-items: center; margin: 0 10px 0 0; padding: 4px 12px; border-radius: 999px; background: var(--accentSoft); color: var(--accent) !important; font-size: 13px; font-weight: 800; text-decoration: none; vertical-align: middle; }
.ns-kind:hover { background: var(--accent); color: var(--onAccent) !important; }
.ns-article .ns-kind + time { vertical-align: middle; }
.ns-page .ns-gb-bottom .ns-gb-form, .ns-page .ns-gb-bottom .ns-gb-login { margin: 24px 0 0; }
/* 가게 상세: 주인·총관리자 수정·삭제 (목록으로 왼쪽) */
.ns-article-nav, .sp-article-nav { align-items: center; gap: 8px; }
.ns-edit-bar { display: flex; gap: 8px; margin-right: auto; }
.ns-edit-bar form { margin: 0; }
.ns-btn-del { border: 1px solid #E5A3A3; background: #fff; color: #C8202B; }
.ns-btn-del:hover { background: #FFF1F1; }
.ns .ns-edit-bar .ns-btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
.ns-edit-bar .is-on { background: var(--accentSoft); border-color: var(--accent); color: var(--accent); }
/* 포토 갤러리 */
.ns-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ns-photos button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--card); cursor: zoom-in; aspect-ratio: 1; }
.ns-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ns-photos button:hover img { transform: scale(1.04); }
.ns-photos span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 12, .92); color: #fff; }
.ns-lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.ns-lightbox figure { position: absolute; inset: 56px 72px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none; }
.ns-lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 8px; }
.ns-lightbox figcaption { font-size: 15px; color: rgba(255, 255, 255, .85); }
.ns-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.ns-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }
.lb-count { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-size: 14px; color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) { .ns-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .ns-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ns-lightbox figure { inset: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
/* 가게 홈: 포토 6장 */
.ns-photos-home { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ns-photo-link { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card); }
.ns-photo-link img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ns-photo-link:hover img { transform: scale(1.04); }
.ns-photo-link span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .ns-photos-home { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 게시판: 작성자·조회수 */
.ns-board a { gap: 14px; }
.ns-board-author { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; width: 120px; font-size: 13.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-board-views { flex-shrink: 0; width: 64px; text-align: right; font-size: 13px; color: var(--sub); }
.ns-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: -6px 0 22px; font-size: 14px; color: var(--sub); }
.ns-post-meta b { color: var(--ink); }
/* 포토: 게시물 카드 */
.ns-photo-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
.ns-photo-posts a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.ns-photo-thumb { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card); }
.ns-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ns-photo-posts a:hover img { transform: scale(1.04); }
.ns-photo-posts strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-photo-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; }
.ns-photo-meta i { font-style: normal; }
.ns-photo-view h1 { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -0.03em; }
.ns-photo-big { margin: 0 0 22px; text-align: center; background: var(--card); border-radius: 18px; overflow: hidden; }
.ns-photo-big img { max-width: 100%; max-height: 80vh; width: auto; height: auto; display: inline-block; }
.ns-photo-pager { display: flex; justify-content: space-between; margin-top: 28px; }
.ns-photo-pager a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accentText); }
/* 가게 안 글쓰기 */
.ns-write-form { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.ns-write-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.ns-write-form input[type=text], .ns-write-form input:not([type]), .ns-write-form textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); }
.ns-write-form input:focus, .ns-write-form textarea:focus { outline: none; border-color: var(--accent); }
.ns-write-form .ns-chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.ns-write-img { display: flex; align-items: center; gap: 12px; }
.ns-write-img img { border-radius: 10px; }
.ns-write-img label { flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.ns-hint { margin: 0; font-size: 13px; color: var(--sub); }
.ns-write-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ns-flash-err { background: #FFF1F1; color: #8A1C1C; }
@media (max-width: 900px) { .ns-photo-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ns-photo-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .ns-board a { flex-wrap: wrap; row-gap: 4px; }
  .ns-board-title { flex-basis: calc(100% - 60px); }
  .ns-board-author { width: auto; margin-left: 46px; }
  .ns-board-views { width: auto; }
}
/* 게시판 목록 5칸: 번호 · 제목 · 작성자 · 날짜 · 조회 */
.ns-board a { grid-template-columns: 72px minmax(0, 1fr) 130px 96px 72px; gap: 12px; }
.ns-board-author { width: auto; }
.ns-board-views { width: auto; }
@media (max-width: 600px) {
  .ns-board a { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "no title title" "no author meta"; row-gap: 4px; padding: 12px 4px; }
  .ns-board-no { grid-area: no; }
  .ns-board-title { grid-area: title; flex-basis: auto; }
  .ns-board-author { grid-area: author; margin-left: 0; font-size: 12.5px; }
  .ns-board time { grid-area: meta; font-size: 12.5px; }
  .ns-board-views { display: none; }
}
@media (max-width: 900px) { .ns-photos-home li:nth-child(n+7) { display: none; } }   /* 모바일·태블릿은 3장×2줄 */
/* 가게 안 상품·스토리 등록 */
.ns-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ns-write-form select, .ns-write-form input[type=number] { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); }
.ns-write-form { max-width: 860px; }
@media (max-width: 600px) { .ns-form-row { grid-template-columns: minmax(0, 1fr); } }
/* 가게 글: 공유·신고 */
.ns-reacts { margin: 40px 0 8px; }
.ns .react-btn { background: var(--bg); border-color: var(--border); color: var(--sub); }
.ns .react-btn:hover { border-color: var(--accent); color: var(--accent); }
.ns .react-report:hover { border-color: #E5484D; color: #E5484D; }
.ns .react-item { color: var(--sub); }
/* 가게 주인·총관리자 관리 바 */
.ns-manage { background: var(--accentSoft); border-bottom: 1px solid var(--border); }
.ns-manage .ns-wrap { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.ns-manage-who { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-size: 13px; font-weight: 800; color: var(--accent); }
.ns-manage a { padding: 5px 11px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ns-manage a:hover { background: var(--accent); color: var(--onAccent); }
@media (max-width: 600px) {
  .ns-manage .ns-wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ns-manage .ns-wrap::-webkit-scrollbar { display: none; }
  .ns-manage a, .ns-manage-who { flex-shrink: 0; }
}
.ns-nav-manage { display: inline-flex; align-items: center; gap: 4px; color: var(--accent) !important; font-weight: 800; }
/* 가게 관리 화면 */
.ns-manage-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.ns-manage-side { position: sticky; top: 16px; padding: 18px 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.ns-manage-title { display: flex; align-items: center; gap: 6px; margin: 0 6px 4px; font-size: 16px; font-weight: 900; color: var(--accent); }
.ns-manage-op { margin: 0 6px 8px; font-size: 12px; color: var(--sub); }
.ns-side-head { margin: 16px 8px 6px; font-size: 12px; font-weight: 800; color: var(--sub); }
.ns-manage-side nav { display: flex; flex-direction: column; gap: 2px; }
.ns-manage-side nav a { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ns-manage-side nav a b { font-size: 14.5px; }
.ns-manage-side nav a small { font-size: 12px; color: var(--sub); }
.ns-manage-side nav a:hover { background: var(--bg); }
.ns-manage-side nav a.on { background: var(--accent); color: var(--onAccent); }
.ns-manage-side nav a.on small { color: var(--onAccent); opacity: .85; }
.ns-side-links a { flex-direction: row !important; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; }
.ns-side-links a span { font-size: 12px; font-weight: 400; color: var(--sub); }
.ns-side-view { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding: 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; }
.ns-side-view:hover { border-color: var(--accent); color: var(--accent); }
.ns-manage-main .ns-write-form { max-width: 760px; }
.ns-write-form small.ns-hint { font-weight: 400; }
.ns-days, .ns-themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.ns-days legend, .ns-themes legend { width: 100%; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.ns-days label, .ns-themes label { flex-direction: row !important; cursor: pointer; }
.ns-days input, .ns-themes input { position: absolute; opacity: 0; }
.ns-days span, .ns-themes span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; }
.ns-days input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ns-themes i { width: 18px; height: 18px; border-radius: 50%; }
.ns-themes input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.ns-days input:focus-visible + span, .ns-themes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ns-logo-edit { display: flex; align-items: center; gap: 18px; }
.ns-photo-field { display: flex; gap: 18px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.ns-photo-prev { flex-shrink: 0; width: 160px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--card); display: flex; align-items: center; justify-content: center; }
.ns-photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.ns-photo-prev em { font-style: normal; font-size: 12.5px; color: var(--sub); }
@media (max-width: 900px) {
  .ns-manage-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ns-manage-side { position: static; padding: 12px; }
  .ns-manage-side nav:not(.ns-side-links) { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .ns-manage-side nav:not(.ns-side-links)::-webkit-scrollbar { display: none; }
  .ns-manage-side nav:not(.ns-side-links) a { flex-shrink: 0; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; }
  .ns-manage-side nav a small { display: none; }
  .ns-side-links, .ns-side-links + .ns-side-view, .ns-manage-side .ns-side-head:nth-of-type(n+3) { display: none !important; }
  .ns-photo-field { flex-direction: column; }
}
.ns-write-form input[type=time], .ns-write-form input[type=url], .ns-write-form input[type=tel] { min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); }
.ns-logo-edit .ns-logo-lg { margin: 0; width: 72px; height: 72px; flex-shrink: 0; }
.ns-logo-edit > label { flex: 1; }
/* 관리 화면: 왼쪽 메뉴 상자를 본문 길이까지 */
.ns-manage-layout { align-items: stretch; }
.ns-manage-side { position: static; display: flex; flex-direction: column; }
.ns-manage-side .ns-side-view { margin-top: auto; }
@media (max-width: 900px) { .ns-manage-side .ns-side-view { margin-top: 12px; } }
/* 관리 화면: '가게 관리' 제목은 메뉴 상자 위에, 상자는 본문 끝까지 */
.ns-manage-aside { display: flex; flex-direction: column; }
.ns-manage-aside .ns-manage-title { display: flex; align-items: center; gap: 8px; min-height: 56px; margin: 0 0 18px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; letter-spacing: -0.03em; color: var(--accent); }
.ns-manage-aside .ns-manage-title small { padding: 2px 8px; border-radius: 999px; background: var(--accentSoft); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.ns-manage-aside .ns-manage-side { flex: 1; }
.ns-manage-main .ns-head { min-height: 56px; margin-bottom: 18px; }
@media (max-width: 900px) { .ns-manage-aside .ns-manage-title { min-height: 0; margin-bottom: 10px; } }
/* 제목 줄 아래 구분선 (왼쪽 '가게 관리'·오른쪽 본문 제목 같은 높이) */
.ns-manage-aside .ns-manage-title, .ns-manage-main .ns-head { min-height: 64px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); box-sizing: border-box; align-items: flex-end; }
.ns-manage-main .ns-head .ns-page-title { margin: 0; }
@media (max-width: 900px) { .ns-manage-aside .ns-manage-title { min-height: 0; padding-bottom: 10px; margin-bottom: 12px; } }
@media (min-width: 901px) {
  .ns-manage-aside .ns-manage-title, .ns-manage-main .ns-head { height: 64px; min-height: 0; margin-top: 0; }
  .ns-manage-aside .ns-manage-title svg { margin-bottom: 5px; }
}
/* '가게 관리' 제목은 메뉴 상자 안 맨 위, 아래 구분선 */
.ns-manage-aside .ns-manage-side .ns-manage-title { height: auto; min-height: 0; margin: 2px 6px 12px; padding: 0 0 12px; border-bottom: 2px solid var(--ink); font-size: 20px; align-items: center; }
.ns-manage-aside .ns-manage-side .ns-manage-title svg { margin-bottom: 0; }
/* 가게 관리 폼: 항목 사이 여유, 안내 문구는 포인트 색 계열로 */
.ns-manage-main .ns-write-form { gap: 30px; }
.ns-manage-main .ns-write-form label { gap: 8px; }
.ns-manage-main .ns-form-row { gap: 18px; }
.ns-manage-main .ns-hint, .ns-manage-main small.ns-hint { color: var(--accentText); opacity: .85; font-size: 13px; font-weight: 500; line-height: 1.5; }
.ns-manage-main .ns-hint::before { content: "ⓘ "; }
.ns-field { display: flex; flex-direction: column; gap: 8px; }
.ns-field-label { font-size: 14px; font-weight: 700; }
.ns-profile-prev { width: 96px !important; height: 96px !important; flex-shrink: 0; margin: 0; font-size: 40px; }
/* 가게 관리: 강조할 부분 입력 + 미리보기 */
.ns-emph { gap: 10px; padding: 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; }
.ns-emph .ns-emph-sub { font-size: 13px; font-weight: 600; color: var(--muted, #6b7280); }
.ns-emph-prev { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accentSoft, rgba(0,0,0,.04)); font-size: 12px; font-weight: 700; color: var(--muted, #6b7280); }
.ns-emph-prev span { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.ns-emph-prev span.is-empty { color: var(--muted, #9ca3af); font-weight: 500; }
.ns-emph-prev b { color: var(--accentText); }
.ns-emph-prev small { font-size: 12px; font-weight: 500; color: #E5484D; }
.ns-title2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ns-title2 input { width: 100%; box-sizing: border-box; }
.ns-emph-prev span.is-empty b { opacity: .7; }
.ns-emph-prev small.ns-def { color: var(--muted, #6b7280); }
@media (max-width: 600px) { .ns-title2 { grid-template-columns: 1fr; } }
/* 프로필 사진 바로 올리기 */
.ns-file-btn, .avatar-pick { display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; padding: 9px 16px; border: 1px solid var(--line, #d1d5db); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.ns-file-btn input, .avatar-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ns-file-btn:focus-within, .avatar-pick:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.ns-av-del { margin-left: 6px; padding: 9px 16px; border: 1px solid var(--line, #d1d5db); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.ns-avatar-msg, .avatar-msg { min-height: 1.4em; margin: 8px 0 2px; font-size: 13.5px; font-weight: 700; }
.is-ok { color: #1F8A4C; } .is-err { color: #E5484D; } .is-busy { color: #6b7280; }
[data-avatar-instant].is-busy .ns-logo, [data-avatar-instant].is-busy .av { opacity: .5; }
.avatar-edit-title { margin: 0 0 8px; font-weight: 700; }
[data-avatar-instant] [data-avatar-remove] { color: var(--ink, #111) !important; background: #fff !important; font-size: 14px !important; }
[data-avatar-instant] [data-avatar-remove][hidden] { display: none !important; }
/* 글쓴이(업소회원) 이름 → 그 가게 페이지 */
.ns-author-link { color: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.ns-author-link:hover, .ns-author-link:focus-visible { color: var(--accentText); text-decoration: underline; text-underline-offset: 3px; }
/* 메인 스토리 제목·문구도 누르면 스토리 상세 (사진이 없을 때 특히) */
.ns-headline-link { display: block; color: inherit; text-decoration: none; }
/* 스토리 쓰기: 항목 + 미리보기 (상자 없이 가게 홈과 같은 크기, 폼보다 넓게) */
.ns-story-form { display: flex; flex-direction: column; gap: 30px; }
.ns-sf-preview { width: calc(min(100vw, 1280px) - 48px); max-width: none; margin: 12px 0 8px; padding-top: 28px; border-top: 2px solid var(--ink); }
.ns-sf-preview-label { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.ns-sf-preview-label small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--accentText); }
.ns-sf-preview .ns-hero { margin-top: 16px; }
.ns-sf-preview .ns-hero[hidden], .ns-sf-preview .ns-story-img[hidden] { display: none; }
.ns-sf-preview .ns-headline.no-hero { margin-top: 20px; }
.ns-sf-preview .ns-story { margin-top: 16px; }
@media (max-width: 900px) { .ns-sf-preview { width: 100%; } }
.ns-write-intro { margin: -6px 0 24px; font-size: 14.5px; }
/* 쓰기·등록 화면의 안내 문구도 관리 화면처럼 포인트 색 계열 + ⓘ */
.ns-write-form .ns-hint, .ns-write-intro { color: var(--accentText); opacity: .85; font-size: 13px; font-weight: 500; line-height: 1.5; }
.ns-write-intro { font-size: 14.5px; }
.ns-write-form .ns-hint::before, .ns-write-intro::before { content: "ⓘ "; }
.ns-write-form .ns-hint b, .ns-write-intro b { font-weight: 800; }
.ns-headline-link:hover, .ns-headline-link:hover * { text-decoration: none; }
/* 가게 관리 > 부운영자 */
.ns-managers { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.ns-manager-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.ns-manager-add label { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.ns-manager-add input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); }
.ns-manager-add .ns-btn { min-height: 46px; }
.ns-manager-add .ns-hint, .ns-manager-add .ns-login-error { flex-basis: 100%; margin: 0; }
.ns-manager-h { margin: 6px 0 0; font-size: 17px; }
.ns-manager-h span { margin-left: 4px; font-size: 14px; font-weight: 600; color: var(--sub); }
.ns-manager-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ns-manager-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ns-manager-list li > div { flex: 1; min-width: 0; }
.ns-manager-list b { display: block; }
.ns-manager-list small { font-size: 13px; color: var(--sub); }
/* ⑧ 오시는 길: 테마 연한 색 바탕 + 진한 글씨 (테마마다 다르게, 진하지 않게) */
.ns-visit { background: var(--accentSoft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.ns-visit .ns-chip { background: var(--accent); color: var(--onAccent, #fff); }
.ns-visit dl { border-top-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.ns-visit dt { color: var(--sub); }
.ns-visit dd { color: var(--ink); }
.ns-visit-btns { border-left-color: color-mix(in srgb, var(--accent) 18%, transparent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.ns .ns-visit .ns-btn-white { background: var(--accent); border-color: var(--accent); color: var(--onAccent, #fff); }
.ns .ns-visit .ns-btn-line { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accentText); }
.ns .ns-visit .ns-btn-line:hover { border-color: var(--accent); color: var(--accent); }
.ns-visit-brand { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }   /* 오시는 길 맨 위: 가게 사진 + 이름 */
.ns-visit-logo { box-shadow: 0 0 0 2px var(--surface); background: var(--accent); }
@media (max-width: 768px) { .ns-visit-btns { background: none; } }   /* 좁은 화면: 버튼이 아래로 오므로 바탕 한 가지 색 */
.ns-write-form input[type=time] { width: 234px; max-width: 100%; }   /* 영업 시작·종료 시간 칸: 시간이 들어갈 만큼만 */
.ns-write-form .ns-form-row:has(input[type=time]) { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.ns-write-form .ns-form-row:has(input[type=time]) > label { flex: 0 0 auto; }
/* 아무것도 올리지 않은 가게: 업종별 '예시' 표시 */
.ns-sample-tag { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(20, 20, 20, .72); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ns-sample-tag.is-inline { position: static; display: inline-block; margin-right: 8px; padding: 2px 9px; background: var(--accentSoft); color: var(--accentText); font-size: 12px; vertical-align: 2px; }
.ns-hero, .ns-story-img { position: relative; }
.ns-sample-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 14px 0 0; font-size: 14px; color: var(--sub); }
.ns-sample-note a { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--accentText); }
.ns-story.is-sample .ns-sample-note { margin: 10px 0 4px; font-size: 13.5px; }
.ns-story-card-text .ns-sample-tag.is-inline { align-self: flex-start; }
.ns-visit dd a { color: inherit; }
.ns-visit dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ns-write-form input[type=email], .ns-write-form input[type=search], .ns-write-form input[type=password] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); box-sizing: border-box; }   /* 이메일 칸도 다른 칸과 같은 모양 */
/* 스토리가 없을 때 사장님에게 보이는 '쓰기' 안내 (사진 없이) */
.ns-cta { display: block; color: inherit; text-decoration: none; }
.ns-cta-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--onAccent); font-size: 15.5px; font-weight: 800; }
.ns-cta:hover .ns-cta-btn { filter: brightness(1.08); }
.ns-story.is-cta { border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accentSoft); }
.ns-story.is-cta .ns-story-text { padding: 40px 44px; }
.ns-story.no-img.is-sample .ns-story-text { padding: 40px 44px; }
.ns-cta-tag { align-self: flex-start; display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--onAccent); font-size: 12px; font-weight: 800; }
@media (max-width: 768px) { .ns-story.is-cta .ns-story-text, .ns-story.no-img.is-sample .ns-story-text { padding: 26px 22px; } }
.ns-story-card .ns-story-card-text .ns-cta-tag { color: var(--onAccent); font-size: 12px; font-weight: 800; line-height: 1.6; }
/* 메뉴가 없을 때 사장님에게 보이는 '등록하세요' 상자 */
.ns-cta-box { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 34px 40px; border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 22px; background: var(--accentSoft); }
.ns-cta-box strong { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; color: var(--accentText); }
.ns-cta-box > span:not(.ns-cta-btn) { font-size: 15.5px; color: var(--sub); }
.ns-cta-box .ns-cta-btn { margin-top: 10px; }
@media (max-width: 768px) { .ns-cta-box { padding: 24px 22px; } .ns-cta-box strong { font-size: 21px; } }
