/* 시술 후 주의사항 (/notice/) — 고정 헤더 아래 여유 (약관 페이지와 유사) */
.notice-page {
	max-width: 800px;
	margin: 0 auto;
	padding: 220px 24px 88px;
}

.notice-back-bar {
	margin: 0 0 16px;
	font-size: 15px;
}

.notice-back-bar a {
	color: inherit;
	text-decoration: underline;
}

/* #앵커로 열었을 때: 해당 시술 블록만 표시 */
.notice-page.notice-page--single h1.tit,
.notice-page.notice-page--single .notice-intro,
.notice-page.notice-page--single .notice-toc {
	display: none !important;
}

.notice-page.notice-page--single .notice-section {
	display: none;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.notice-page.notice-page--single .notice-section.is-active {
	display: block;
}

.notice-page h1.tit {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.notice-intro {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
	margin-bottom: 22px;
}

.notice-share-hint {
	font-size: 14px;
	color: #666;
	line-height: 1.55;
	margin: 0 0 20px;
}

.notice-share-hint a {
	color: #111;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* 시술 탭 — 웹: flex-wrap 줄바꿈 / 모바일(768↓): 가로 스크롤 한 줄 */
.notice-tabs-wrap {
	margin: 0 0 28px;
	overflow-x: visible;
	padding-bottom: 4px;
}

.notice-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	padding: 2px 0 25px;
	border-bottom: 1px solid #e5e5e5;
}

.notice-tab {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #444;
	background: #f4f4f4;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	font-family: inherit;
	line-height: 1.2;
}

.notice-tab:hover {
	background: #ececec;
	border-color: #d0d0d0;
	color: #111;
}

.notice-tab:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.notice-tab[aria-selected="true"],
.notice-tab.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 탭 모드: 선택된 시술 주의사항만 표시 */
.notice-page--tabs .notice-section {
	display: none;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
	scroll-margin-top: 100px;
}

.notice-page--tabs .notice-section.is-active {
	display: block;
}

.notice-page--tabs .notice-section.is-active h2 {
	margin-top: 0;
}

.notice-toc-group {
	margin-bottom: 22px;
}

.notice-toc-group:last-child {
	margin-bottom: 0;
}

.notice-toc-group-title {
	font-size: 13px;
	font-weight: 700;
	color: #888;
	text-transform: none;
	letter-spacing: 0.02em;
	margin: 0 0 10px;
}

.notice-toc {
	background: #f7f7f7;
	border-radius: 12px;
	padding: 22px 22px 18px;
	margin-bottom: 40px;
}

.notice-toc-main-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 18px;
	color: #111;
}

.notice-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.notice-toc li {
	margin: 0;
}

.notice-toc a {
	display: inline-block;
	font-size: 14px;
	color: #333;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 4px 0;
}

.notice-toc a:hover {
	color: #000;
}

.notice-section {
	scroll-margin-top: 100px;
	padding-top: 36px;
	margin-top: 12px;
	border-top: 1px solid #e8e8e8;
}

.notice-section:first-of-type {
	border-top: none;
	padding-top: 8px;
	margin-top: 0;
}

.notice-section h2 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 16px;
	color: #111;
	letter-spacing: -0.02em;
}

/* 본문 전체를 한 덩어리로 */
.notice-body {
	font-size: 16px;
	line-height: 1.75;
	color: #2a2a2a;
	background: #fafafa;
	border: 1px solid #ebebeb;
	border-radius: 14px;
	padding: 22px 24px 24px;
	margin: 0 0 4px;
}

.notice-body .notice-lead {
	font-size: 16px;
	line-height: 1.75;
	color: #444;
	margin: 0 0 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e5e5;
}

.notice-body .notice-lead p {
	margin: 0 0 8px;
}

.notice-body .notice-lead p:last-child {
	margin-bottom: 0;
}

/* 번호 목록: 1. 2. 3. … (common.css 의 li { list-style:none } 덮어씀) */
.notice-body > ol {
	list-style: decimal;
	list-style-position: outside;
	margin: 0 0 18px;
	padding-left: 1.6em;
	font-variant-numeric: tabular-nums;
}

.notice-body > ol > li {
	list-style: inherit;
	display: list-item;
	margin: 0 0 14px;
	padding-left: 0.35em;
}

.notice-body > ol > li:last-child {
	margin-bottom: 0;
}

.notice-body > ol:last-child {
	margin-bottom: 0;
}

/* 하위 설명(필러 코/팔자 등) */
.notice-body .notice-sub {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.notice-body .notice-sub li {
	margin: 0 0 8px;
	padding-left: 1em;
	position: relative;
	font-size: 14px;
	line-height: 1.65;
	color: #555;
}

.notice-body .notice-sub li:last-child {
	margin-bottom: 0;
}

.notice-body .notice-sub li::before {
	content: '-';
	position: absolute;
	left: 0;
	color: #999;
}

.notice-body .notice-note {
	margin: 0 0 16px;
	padding-top: 16px;
	border-top: 1px solid #e5e5e5;
	font-size: 14px;
	line-height: 1.75;
	color: #444;
}

.notice-body .notice-foot {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid #e5e5e5;
}

@media (max-width: 768px) {
	.notice-page {
		padding: 100px 20px 72px;
	}

	.notice-page h1.tit {
		font-size: 20px;
		margin: 0;
	}

	.notice-intro{
		font-size: 14px;
	}

	.notice-section h2{
		font-size: 17px;
		margin: 0 0 8px 0;
	}

	/* 탭: 한 줄 + 가로 스크롤 */
	.notice-tabs-wrap {
		margin-bottom: 10px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		box-sizing: border-box;
		overscroll-behavior-x: contain;
	}

	.notice-tabs {
		flex-wrap: nowrap;
		width: max-content;
		min-width: min-content;
		max-width: none;
		padding-bottom: 14px;
		border-bottom: none;
	}

	.notice-section {
		scroll-margin-top: 96px;
	}

	.notice-page--tabs .notice-section {
		scroll-margin-top: 96px;
	}

	.notice-tab {
		padding: 8px 12px;
		font-size: 12px;
		flex-shrink: 0;
	}

	.notice-body {
		padding: 18px 18px 20px;
		border-radius: 12px;
	}

	.notice-body{
		font-size: 14px;
	}

	.notice-body .notice-lead{
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.notice-page {
		padding-top: 170px;
	}
}
