/* mate. MY HAIR BOOK 20쪽 — A4 세로. 화면에서도 종이 비율 그대로 줄어들어요 (cqw = 쪽 너비의 1%) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,600&family=Nanum+Pen+Script&family=Gowun+Batang:wght@400;700&display=swap");

.hb { --cream: #FAF8F1; --paper: #FFFDF8; --ink: #33372F; --soft: #6E6A60; --line: #E8DFCF; --butter: #F4E39A; --sage: #A8B59A; --blush: #F3DDE0; --rose: #c0533a; --brown: #4a3a2e;
  --en: "Fraunces", "Gowun Batang", Georgia, serif; --ko: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif; --my: "Gowun Batang", serif; --hand: "Nanum Pen Script", cursive;
  color: var(--ink); font-family: var(--ko); letter-spacing: -.012em; word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
.hb * { box-sizing: border-box; }
.hb p, .hb li, .hb dd { text-wrap: pretty; }
.hb h1, .hb h2, .hb h3 { text-wrap: balance; }

.hb-page { width: min(100%, 794px); aspect-ratio: 210 / 297; margin: 22px auto; background: var(--cream); box-shadow: 0 10px 30px rgba(51,55,47,.14); container-type: inline-size; overflow: hidden; position: relative; }
.hb-in { position: absolute; inset: 0; padding: 7.5cqw 7.5cqw 6cqw; display: flex; flex-direction: column; }
.hb-folio { display: flex; justify-content: space-between; font: 500 calc(1.55cqw * var(--fs, 1))/1 var(--en); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-bottom: 5cqw; }
.hb-folio em { font-style: italic; text-transform: none; letter-spacing: .02em; margin-left: .6cqw; }
.hb-head { margin-bottom: 4.4cqw; }
.hb-kick { font: 600 calc(1.7cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .24em; color: var(--sage); margin: 0 0 1.6cqw; }
.hb-head h2 { font: 400 calc(8.4cqw * var(--fs, 1))/.98 var(--en); letter-spacing: -.035em; margin: 0 0 1.8cqw; }
.hb-sub { font: 500 calc(2.3cqw * var(--fs, 1))/1.55 var(--ko); color: var(--soft); margin: 0; }
.hb-lead { font: 500 calc(2.75cqw * var(--fs, 1))/1.7 var(--ko); margin: 0 0 3cqw; }
.hb-hand { font: 700 calc(3cqw * var(--fs, 1))/1.3 var(--hand); color: var(--rose); margin: auto 0 0; transform: rotate(-1.5deg); }
.hb-hand.big { font-size: calc(4.6cqw * var(--fs, 1)); }
.hb-small { font-size: calc(1.9cqw * var(--fs, 1)); line-height: 1.65; color: var(--soft); }
.hb-logo { font: 600 calc(3.2cqw * var(--fs, 1))/1 var(--en); letter-spacing: -.04em; }
.hb-logo::after { content: ""; }

/* 사진 */
.hb-img { overflow: hidden; background: #ece6da; position: relative; }
.hb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-cell { position: relative; overflow: hidden; aspect-ratio: 1; background: #ece6da; }
.hb-cell .sq { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; transform: translate(-50%, -50%); overflow: hidden; display: block; }
.hb-styles.n4 .hb-cell .sq, .hb-cols .hb-cell .sq { transform: translate(-50%, -43%); }
.hb-cell.tall .sq { width: 133.4%; transform: translate(-50%, -50%); }
.hb-cell i { position: absolute; width: 306%; height: 408%; background-size: 100% 100%; background-repeat: no-repeat; }
.hb-empty { display: grid; place-items: center; color: var(--soft); font-size: calc(1.8cqw * var(--fs, 1)); }
.hb-pola { margin: 0; background: #fff; padding: 1.4cqw 1.4cqw 5.4cqw; box-shadow: 0 1.4cqw 3cqw rgba(51,55,47,.16); position: relative; transform: rotate(-2deg); }
.hb-pola.r { transform: rotate(2.2deg); }
.hb-pola .hb-img, .hb-pola .hb-cell { aspect-ratio: 4 / 5; }
.hb-pola figcaption { position: absolute; left: 0; right: 0; bottom: 1.4cqw; text-align: center; font: 700 calc(2.7cqw * var(--fs, 1))/1 var(--hand); color: var(--brown); }
.hb-tape { position: absolute; top: -1.6cqw; width: 13cqw; height: 3.6cqw; z-index: 2; opacity: .85; }
.t-y { background: rgba(244,227,154,.9); } .t-g { background: rgba(168,181,154,.85); } .t-p { background: rgba(230,175,175,.8); }
.hb-stk { position: absolute; top: 1.2cqw; right: 1.2cqw; z-index: 3; min-width: 4.6cqw; height: 4.6cqw; padding: 0 1.2cqw; border-radius: 99px; display: grid; place-items: center; font: 700 calc(1.8cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .04em; }
.hb-stk.like { background: var(--blush); color: #9b3d4a; } .hb-stk.no { background: rgba(255,255,255,.9); color: #8a857c; } .hb-stk.best { background: var(--butter); color: var(--ink); box-shadow: 0 .4cqw 1cqw rgba(0,0,0,.12); }
.hb-stk.s { position: static; display: inline-grid; min-width: 3.4cqw; height: 3.4cqw; font-size: calc(1.5cqw * var(--fs, 1)); vertical-align: middle; margin: 0 .6cqw 0 1.6cqw; }

/* 01 표지 */
.hb-cover-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-cover-bg.plain { background: radial-gradient(circle at 70% 75%, #efe4c6, var(--cream) 60%); }
.hb-cover, .hb-back { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.hb-cover-top { display: flex; justify-content: space-between; align-items: baseline; font: 500 calc(1.7cqw * var(--fs, 1))/1 var(--en); letter-spacing: .16em; color: var(--ink); }
.hb-cover-top .hb-logo { font-size: calc(4.4cqw * var(--fs, 1)); letter-spacing: -.04em; }
.hb-title { font: 400 calc(17.5cqw * var(--fs, 1))/.86 var(--en); letter-spacing: -.055em; margin: 6cqw 0 2cqw; color: var(--ink); }
.hb-for { font: 700 calc(5.4cqw * var(--fs, 1))/1 var(--hand); color: var(--rose); margin: 0 0 3cqw 1cqw; transform: rotate(-3deg); }
.hb-edition { font: 500 calc(1.7cqw * var(--fs, 1))/1 var(--en); letter-spacing: .26em; margin: 0; }
.hb-lines { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 1.2cqw; width: 44cqw; }
.hb-lines li { font: 600 calc(2.4cqw * var(--fs, 1))/1.35 var(--ko); background: rgba(255,253,248,.88); padding: 1.6cqw 2.2cqw; border-left: .8cqw solid var(--butter); backdrop-filter: blur(2px); }
.hb-lines b { font: 600 calc(3.4cqw * var(--fs, 1))/1 var(--en); margin-right: .4cqw; }

/* 02 인사 */
.hbp-hello .hb-head h2 { font-size: calc(11cqw * var(--fs, 1)); }
.hb-letter { background: var(--paper); border: 1px solid var(--line); padding: 3.6cqw 4.4cqw 2.4cqw; position: relative; margin-bottom: 3.6cqw; box-shadow: 0 1cqw 2.4cqw rgba(51,55,47,.06); }
.hb-letter p { font: calc(2.55cqw * var(--fs, 1))/1.85 var(--my); margin: 0 0 1.6cqw; }
.hb-sign { font: 700 calc(3.4cqw * var(--fs, 1))/1 var(--hand) !important; color: var(--rose); text-align: right; }
.hb-toc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 4cqw; }
.hb-toc li { display: grid; grid-template-columns: 5cqw 1fr; align-items: baseline; padding: .9cqw 0; border-bottom: 1px dashed var(--line); }
.hb-toc span { font: italic 500 calc(2.2cqw * var(--fs, 1))/1 var(--en); color: var(--sage); grid-row: span 2; }
.hb-toc b { font: 500 calc(2.1cqw * var(--fs, 1))/1.2 var(--en); letter-spacing: .04em; }
.hb-toc em { font: calc(1.8cqw * var(--fs, 1))/1.4 var(--ko); font-style: normal; color: var(--soft); }

/* 03 타입 결과지 */
.hb-ticket { background: var(--paper); border-radius: 3cqw; padding: 5cqw 5cqw 4cqw; box-shadow: 0 1.6cqw 4cqw rgba(51,55,47,.1); position: relative; border: 1px solid var(--line); }
.hb-ticket::before, .hb-ticket::after { content: ""; position: absolute; top: 58%; width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--cream); }
.hb-ticket::before { left: -2cqw; } .hb-ticket::after { right: -2cqw; }
.hb-ticket-k { font: 500 calc(2.3cqw * var(--fs, 1))/1 var(--ko); color: var(--soft); margin: 0 0 2cqw; }
.hb-type { font: 600 calc(6.6cqw * var(--fs, 1))/1.15 var(--ko); letter-spacing: -.03em; margin: 0 0 2.6cqw; background: linear-gradient(transparent 62%, var(--butter) 62% 92%, transparent 92%); display: inline; }
.hb-tags { margin: 3cqw 0 3.6cqw; display: flex; flex-wrap: wrap; gap: 1.2cqw; }
.hb-tags span { font: 600 calc(2cqw * var(--fs, 1))/1 var(--ko); padding: 1.4cqw 2.2cqw; border-radius: 99px; background: #f1ecdf; }
.hb-ticket-row { display: grid; grid-template-columns: 26cqw 1fr; gap: 4cqw; padding: 3.4cqw 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.hb-ticket-face { text-align: center; } .hb-ticket-face b { display: block; font-size: calc(2.6cqw * var(--fs, 1)); margin-top: .6cqw; } .hb-ticket-face small { font-size: calc(1.75cqw * var(--fs, 1)); color: var(--soft); line-height: 1.5; display: block; margin-top: .6cqw; }
.hb-face { width: 16cqw; height: auto; } .hb-face.big { width: 30cqw; }
.hb-meters { display: grid; gap: 1.9cqw; align-content: center; }
.hb-meter { display: grid; grid-template-columns: 8cqw 15cqw 1fr; align-items: center; gap: 1.6cqw; font-size: calc(2.1cqw * var(--fs, 1)); }
.hb-meter span { display: flex; gap: .8cqw; } .hb-meter i { flex: 1; height: 1.4cqw; border-radius: 99px; background: #ece5d6; } .hb-meter i.on { background: var(--sage); }
.hb-meter em { font-style: normal; color: var(--soft); font-size: calc(1.9cqw * var(--fs, 1)); }
.hb-ticket-best { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 3.4cqw; }
.hb-ticket-best small { display: block; font: 500 calc(1.5cqw * var(--fs, 1))/1 var(--en); letter-spacing: .16em; color: var(--soft); margin-bottom: 1.2cqw; }
.hb-ticket-best b { font-size: calc(2.7cqw * var(--fs, 1)); display: flex; align-items: center; gap: 1cqw; } .hb-ticket-best i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; display: inline-block; }
.hbp-type .hb-hand { text-align: center; margin-top: 4cqw; }

/* 04 지금 */
.hb-now { display: grid; grid-template-columns: 46cqw 1fr; gap: 6cqw; align-items: start; }
.hb-pola.big .hb-img { aspect-ratio: 4 / 5; }
.hb-now-side { padding-top: 2cqw; }
.hb-note { font: 700 calc(3cqw * var(--fs, 1))/1.2 var(--hand); color: var(--brown); margin: 0 0 2.2cqw; position: relative; padding-left: 4cqw; }
.hb-note::before { content: "←"; position: absolute; left: 0; color: var(--rose); }
.hb-dl { display: grid; grid-template-columns: auto 1fr; gap: 1.4cqw 2.4cqw; margin: 4cqw 0 0; font-size: calc(2.15cqw * var(--fs, 1)); line-height: 1.5; }
.hb-dl dt { color: var(--soft); font-weight: 600; white-space: nowrap; } .hb-dl dd { margin: 0; }
.hb-quote { margin-top: auto; padding: 4cqw 4cqw 3.4cqw; background: var(--butter); position: relative; }
.hb-quote p { font: calc(3.3cqw * var(--fs, 1))/1.6 var(--my); margin: 0 0 1.4cqw; } .hb-quote span { font-size: calc(1.85cqw * var(--fs, 1)); color: var(--brown); }

/* 05 얼굴 */
.hb-face-wrap { display: grid; grid-template-columns: 36cqw 1fr; gap: 5cqw; align-items: center; margin-bottom: 5cqw; }
.hb-face-box { background: var(--paper); border: 1px solid var(--line); padding: 3cqw; text-align: center; }
.hb-face-box p { margin: 1.2cqw 0 0; font-size: calc(2.6cqw * var(--fs, 1)); } .hb-face-box small { font-size: calc(1.8cqw * var(--fs, 1)); color: var(--soft); }
.hb-face-legend { font-size: calc(1.6cqw * var(--fs, 1)) !important; color: var(--soft); }
.hb-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6cqw; }
.hb-points li { display: flex; gap: 2cqw; align-items: baseline; font: 600 calc(2.5cqw * var(--fs, 1))/1.45 var(--ko); }
.hb-points span { font: italic 500 calc(3cqw * var(--fs, 1))/1 var(--en); color: var(--sage); }
.hb-design { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; margin-top: auto; }
.hb-design div { background: var(--paper); border: 1px solid var(--line); padding: 2.6cqw 3cqw; }
.hb-design small { display: block; font: 600 calc(1.7cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .14em; color: var(--sage); margin-bottom: 1.2cqw; }
.hb-design b { font: 500 calc(2.3cqw * var(--fs, 1))/1.55 var(--ko); }

/* 06 · 12 격자 */
.hb-grid12 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2cqw 2cqw; }
.hb-g { position: relative; } .hb-g .hb-cell { border-radius: 1.2cqw; }
.hb-g p { margin: 1.1cqw 0 0; font: 600 calc(1.95cqw * var(--fs, 1))/1.2 var(--ko); text-align: center; display: flex; justify-content: center; align-items: center; gap: .8cqw; }
.hb-g p i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; display: inline-block; }
.hb-legend { margin: auto 0 0; font-size: calc(1.9cqw * var(--fs, 1)); color: var(--soft); text-align: center; }
.hb-g .hb-stk { top: .8cqw; right: .8cqw; min-width: 3.8cqw; height: 3.8cqw; font-size: calc(1.5cqw * var(--fs, 1)); }

/* 07~09 스타일 */
.hb-styles { display: grid; gap: 3.2cqw 3cqw; }
.hb-styles.n3 { grid-template-columns: repeat(3, 1fr); } .hb-styles.n4 { grid-template-columns: 1fr 1fr; }
.hb-st { position: relative; }
.hb-st .hb-cell { border-radius: 1.4cqw; }
.hb-styles.n4 .hb-cell { aspect-ratio: 1.75; }
.hb-styles.n4 .hb-st p { font-size: calc(1.95cqw * var(--fs, 1)); line-height: 1.6; margin-bottom: 1cqw; }
.hb-styles.n4 .hb-st h3 { margin-top: 1.4cqw; }
.hb-styles.n4 { gap: 2.6cqw 3cqw; }
.hb-st h3 { font: 600 calc(2.8cqw * var(--fs, 1))/1.2 var(--ko); margin: 2cqw 0 1cqw; }
.hb-st p { font-size: calc(2.05cqw * var(--fs, 1)); line-height: 1.7; margin: 0 0 1.4cqw; color: #4a4c44; }
.hb-st dl { display: grid; grid-template-columns: auto 1fr; gap: .6cqw 1.6cqw; margin: 0; font-size: calc(1.85cqw * var(--fs, 1)); line-height: 1.5; padding-top: 1.2cqw; border-top: 1px dashed var(--line); }
.hb-st dt { color: var(--sage); font-weight: 700; } .hb-st dd { margin: 0; color: var(--soft); }

/* 10 앞머리 */
.hb-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3cqw; align-items: center; margin: 1cqw 3cqw 5cqw; }
.hb-vs-mark { font: italic 400 calc(6cqw * var(--fs, 1))/1 var(--en); color: var(--rose); }
.hb-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: auto; }
.hb-parts div { background: var(--paper); border: 1px solid var(--line); padding: 2.6cqw; text-align: center; }
.hb-parts svg { width: 10cqw; } .hb-parts b { display: block; font-size: calc(2.3cqw * var(--fs, 1)); margin: 1cqw 0; } .hb-parts p { margin: 0; font-size: calc(1.85cqw * var(--fs, 1)); line-height: 1.6; color: var(--soft); }

/* 11 비포·애프터 */
.hb-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw; position: relative; margin-bottom: 4.6cqw; }
.hb-ba > div { position: relative; } .hb-ba .hb-img, .hb-ba .hb-cell { aspect-ratio: 3 / 4; }
.hb-ba span { position: absolute; left: 2cqw; bottom: 2cqw; font: 600 calc(2cqw * var(--fs, 1))/1 var(--en); letter-spacing: .2em; background: rgba(255,253,248,.92); padding: 1.2cqw 1.8cqw; }
.hb-ba > div:last-of-type span { background: var(--butter); }
.hb-ba-arrow { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); margin: 0; width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font: calc(4cqw * var(--fs, 1))/1 var(--en); box-shadow: 0 .6cqw 1.6cqw rgba(0,0,0,.15); }
.hb-change { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.4cqw; }
.hb-change small { display: block; font: 600 calc(1.7cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .14em; color: var(--sage); margin-bottom: 1.2cqw; }
.hb-change b { font: 500 calc(2.15cqw * var(--fs, 1))/1.65 var(--ko); }

/* 13~14 컬러 */
.hb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4cqw 3cqw; }
.hb-cols article { position: relative; } .hb-cols .hb-cell { aspect-ratio: 1.3; border-radius: 1.4cqw; }
.hb-cols h3, .hb-rank h3 { font: 600 calc(2.75cqw * var(--fs, 1))/1.2 var(--ko); margin: 1.8cqw 0 .8cqw; display: flex; align-items: center; gap: 1.2cqw; }
.hb-cols h3 i { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; display: inline-block; }
.hb-cols p { font-size: calc(2.05cqw * var(--fs, 1)); line-height: 1.6; margin: 0 0 1.2cqw; color: #4a4c44; }
.hb-cols dl { display: grid; grid-template-columns: auto 1fr; gap: .5cqw 1.6cqw; margin: 0; font-size: calc(1.8cqw * var(--fs, 1)); line-height: 1.5; }
.hb-cols dt { color: var(--sage); font-weight: 700; } .hb-cols dd { margin: 0; color: var(--soft); }

/* 15 컬러 TOP 3 · 17 BEST 3 */
.hb-rank, .hb-best { display: grid; gap: 3cqw; }
.hb-rank article, .hb-best article { display: grid; grid-template-columns: 7cqw 24cqw 1fr; gap: 3cqw; align-items: center; padding-bottom: 3cqw; border-bottom: 1px solid var(--line); }
.hb-rank article:last-child, .hb-best article:last-child { border-bottom: 0; }
.hb-big { font: 300 calc(11cqw * var(--fs, 1))/.8 var(--en); color: var(--ink); }
.hb-rank .hb-cell, .hb-best .hb-cell { border-radius: 1.4cqw; }
.hb-rank p, .hb-best p { font-size: calc(2.1cqw * var(--fs, 1)); line-height: 1.7; margin: 0 0 1.2cqw; color: #4a4c44; }
.hb-fashion { display: flex; flex-wrap: wrap; gap: .8cqw; align-items: center; } .hb-fashion small { width: 100%; font-size: calc(1.7cqw * var(--fs, 1)); color: var(--sage); font-weight: 700; }
.hb-fashion span { font-size: calc(1.8cqw * var(--fs, 1)); padding: .8cqw 1.6cqw; border-radius: 99px; background: #f1ecdf; }
.hb-swatch { height: 1.6cqw; border-radius: 99px; margin: 1.2cqw 0 0 !important; }
.hb-best h3 { font: 600 calc(3.4cqw * var(--fs, 1))/1.15 var(--ko); margin: 0 0 1cqw; }
.hb-best .b0 .hb-big { color: var(--rose); }
.hb-why { background: #f4efe2; padding: 1.6cqw 2cqw; } .hb-why b { color: var(--sage); margin-right: .8cqw; }

/* 16 염색 가이드 */
.hb-level { background: var(--paper); border: 1px solid var(--line); padding: 3cqw 3.4cqw 9cqw; margin-bottom: 3.4cqw; position: relative; }
.hb-level > p { margin: 0 0 1.6cqw; font: 600 calc(1.8cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .14em; color: var(--sage); }
.hb-level-bar { display: grid; grid-template-columns: repeat(10, 1fr); height: 4cqw; border-radius: 99px; overflow: hidden; }
.hb-level-marks { position: relative; height: 0; }
.hb-level-marks span { position: absolute; top: 1.4cqw; transform: translateX(-50%); font: 600 calc(1.55cqw * var(--fs, 1))/1.3 var(--en); letter-spacing: .1em; text-align: center; white-space: nowrap; }
.hb-level-marks span::before { content: "▲"; display: block; color: var(--rose); font-size: calc(1.6cqw * var(--fs, 1)); }
.hb-level-marks b { font: 600 calc(1.8cqw * var(--fs, 1))/1.3 var(--ko); letter-spacing: 0; }
.hb-say { display: grid; gap: 2cqw; margin-bottom: 3.4cqw; }
.hb-say div { background: var(--butter); padding: 2.6cqw 3cqw; } .hb-say small { font: 600 calc(1.7cqw * var(--fs, 1))/1 var(--ko); color: var(--brown); letter-spacing: .1em; } .hb-say p { font: calc(2.6cqw * var(--fs, 1))/1.6 var(--my); margin: 1cqw 0 0; }
.hb-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4cqw; }
.hb-check li { font-size: calc(2.15cqw * var(--fs, 1)); line-height: 1.55; padding-left: 4.2cqw; position: relative; }
.hb-check li::before { content: ""; position: absolute; left: 0; top: .3cqw; width: 2.6cqw; height: 2.6cqw; border: 1.5px solid var(--ink); border-radius: .5cqw; }

/* 18 데일리 */
.hb-daily { display: grid; grid-template-columns: 34cqw 1fr; gap: 5cqw; flex: 1; min-height: 0; }
.hb-img.tall { height: 100%; min-height: 60cqw; border-radius: 1.6cqw; }
.hb-min { font: 300 calc(13cqw * var(--fs, 1))/.9 var(--en); margin: 0 0 3cqw; letter-spacing: -.04em; }
.hb-time { list-style: none; padding: 0; margin: 0 0 3cqw; display: grid; gap: 2.2cqw; }
.hb-time li { display: grid; grid-template-columns: 11cqw 1fr; gap: .4cqw 2cqw; }
.hb-time span { grid-row: span 2; font: 600 calc(1.8cqw * var(--fs, 1))/1 var(--ko); background: var(--butter); padding: 1.2cqw 0; text-align: center; border-radius: 99px; align-self: start; }
.hb-time b { font-size: calc(2.4cqw * var(--fs, 1)); } .hb-time p { margin: 0; font-size: calc(2cqw * var(--fs, 1)); line-height: 1.6; color: #4a4c44; }

/* 19 미용실 카드 */
.hbp-card .hb-in { display: grid; grid-template-columns: 52cqw 1fr; grid-template-rows: auto auto 1fr; column-gap: 5cqw; }
.hbp-card .hb-folio, .hbp-card .hb-head { grid-column: 1 / -1; }
.hb-phone { background: #1f211c; border-radius: 6cqw; padding: 2cqw; box-shadow: 0 2cqw 5cqw rgba(0,0,0,.22); align-self: start; }
.hb-phone-in { background: var(--paper); border-radius: 4.4cqw; padding: 4cqw 3.6cqw 3.4cqw; }
.hb-phone-top { font: 600 calc(1.6cqw * var(--fs, 1))/1 var(--en); letter-spacing: .2em; text-align: center; margin: 0 0 2.6cqw; }
.hb-cell.phone { border-radius: 2cqw; aspect-ratio: 1; }
.hb-phone dl { display: grid; grid-template-columns: auto 1fr; gap: 1.4cqw 2cqw; margin: 3cqw 0 2.4cqw; font-size: calc(2.05cqw * var(--fs, 1)); line-height: 1.5; }
.hb-phone dt { font-weight: 700; color: var(--sage); white-space: nowrap; } .hb-phone dd { margin: 0; }
.hb-phone-name { text-align: center; font-size: calc(1.7cqw * var(--fs, 1)); color: var(--soft); margin: 0; }
.hb-phone-side { align-self: center; display: grid; gap: 4cqw; }
.hb-phone-side .hb-hand { margin: 0; }

/* 20 뒤표지 */
.hb-back { justify-content: space-between; }
.hb-back-q { font: 400 calc(9cqw * var(--fs, 1))/1.05 var(--en); letter-spacing: -.04em; margin: 6cqw 0 0; font-family: var(--my); font-size: calc(7.4cqw * var(--fs, 1)); line-height: 1.35; }
.hb-back-card { background: rgba(255,253,248,.94); padding: 4cqw 4.4cqw; width: 60cqw; box-shadow: 0 1.4cqw 3cqw rgba(0,0,0,.1); }
.hb-back-card b { display: block; font-size: calc(2.6cqw * var(--fs, 1)); margin-bottom: 2cqw; }
.hb-back-foot { font-size: calc(2cqw * var(--fs, 1)); line-height: 1.7; margin: 0; } .hb-back-foot small { font-size: calc(1.6cqw * var(--fs, 1)); color: var(--soft); }
.hbp-back .hb-cover-bg + .hb-back .hb-back-foot, .hbp-back .hb-cover-bg + .hb-back .hb-back-q { color: var(--ink); }

.hb.is-demo .hb-page::after { content: "SAMPLE"; position: absolute; right: 3cqw; bottom: 2.4cqw; font: 600 calc(1.4cqw * var(--fs, 1))/1 var(--en); letter-spacing: .3em; color: rgba(51,55,47,.35); z-index: 5; }

@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: none !important; }
  .hb-page { width: 210mm; height: 296mm; aspect-ratio: auto; margin: 0; box-shadow: none; break-after: page; break-inside: avoid; }
  .hb-page:last-child { break-after: auto; }
  .hb { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 내 매력 3 · 편지 인용 */
.hb-charm { margin-top: auto; background: var(--butter); padding: 3.4cqw 4cqw 2.6cqw; }
.hb-charm-h { font: 500 calc(2.2cqw * var(--fs, 1))/1 var(--ko); margin: 0 0 2.4cqw; } .hb-charm-h b { font-weight: 700; }
.hb-charm ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; }
.hb-charm li span { font: italic 500 calc(2.4cqw * var(--fs, 1))/1 var(--en); color: var(--brown); }
.hb-charm li b { display: block; font: 700 calc(2.5cqw * var(--fs, 1))/1.3 var(--ko); margin: 1cqw 0 .8cqw; }
.hb-charm li p { margin: 0; font-size: calc(1.85cqw * var(--fs, 1)); line-height: 1.6; color: #4a4434; }
.hb-letter-q { font: calc(3cqw * var(--fs, 1))/1.6 var(--my) !important; color: var(--brown); border-left: .6cqw solid var(--butter); padding-left: 2.4cqw; }
.hb-back-sub { font: calc(2.4cqw * var(--fs, 1))/1.7 var(--ko); margin: 2.4cqw 0 0; max-width: 60cqw; }
.hb-back-foot { background: rgba(255,253,248,.9); padding: 2.4cqw 3cqw; margin-right: 20cqw !important; }

/* 글씨체 다듬기 — 손글씨는 나눔손글씨 펜(굵기 대신 크기로), 한글 제목은 자간을 조금 더 좁게 */
.hb-hand { font-weight: 400 !important; font-size: calc(4cqw * var(--fs, 1)); letter-spacing: 0; }
.hb-hand.big { font-size: calc(6cqw * var(--fs, 1)); }
.hb-for { font-weight: 400 !important; font-size: calc(7.4cqw * var(--fs, 1)) !important; letter-spacing: 0; }
.hb-pola figcaption { font-weight: 400 !important; font-size: calc(3.6cqw * var(--fs, 1)) !important; letter-spacing: 0; }
.hb-note { font-weight: 400 !important; font-size: calc(3.9cqw * var(--fs, 1)) !important; letter-spacing: 0; }
.hb-sign { font-weight: 400 !important; font-size: calc(4.4cqw * var(--fs, 1)) !important; letter-spacing: 0; }
.hb-type, .hb-st h3, .hb-cols h3, .hb-rank h3, .hb-best h3, .hb-charm li b { letter-spacing: -.035em; }
.hb-sub, .hb-lead { letter-spacing: -.02em; }
.hb-letter p, .hb-quote p, .hb-say p, .hb-back-q { letter-spacing: -.01em; }
.hb-head h2 { font-optical-sizing: auto; }
.hb-note { padding-left: 5.6cqw !important; }

/* 휴대폰 읽기 모드 (홈페이지 샘플에서만 .hb-flow) — 글씨 1.5배, 쪽 길이는 글에 맞춰 늘어나요. PDF·컴퓨터는 그대로 */
@media (max-width: 640px) {
  .hb-flow .hb { --fs: 1.5; }
  .hb-flow .hb-page:not(.hbp-cover):not(.hbp-back) { aspect-ratio: auto; }
  .hb-flow .hb-page:not(.hbp-cover):not(.hbp-back) .hb-in { position: relative; inset: auto; padding-bottom: 8cqw; }
  .hb-flow .hb-head h2 { font-size: calc(8.4cqw * 1.15); }
  .hb-flow .hbp-hello .hb-head h2 { font-size: 13cqw; }
  .hb-flow .hb-toc { grid-template-columns: 1fr; }
  .hb-flow .hb-now, .hb-flow .hb-face-wrap, .hb-flow .hb-daily { grid-template-columns: 1fr; }
  .hb-flow .hb-now .hb-pola { width: 78%; margin: 0 auto 4cqw; }
  .hb-flow .hb-charm ol, .hb-flow .hb-change, .hb-flow .hb-parts, .hb-flow .hb-design { grid-template-columns: 1fr; }
  .hb-flow .hb-styles.n3 { grid-template-columns: 1fr 1fr; }
  .hb-flow .hb-styles.n4, .hb-flow .hb-cols { grid-template-columns: 1fr 1fr; }
  .hb-flow .hb-grid12 { grid-template-columns: repeat(3, 1fr); }
  .hb-flow .hb-rank article, .hb-flow .hb-best article { grid-template-columns: 9cqw 30cqw 1fr; }
  .hb-flow .hb-ticket-row { grid-template-columns: 1fr; }
  .hb-flow .hb-meter { grid-template-columns: 12cqw 20cqw 1fr; }
  .hb-flow .hb-ticket-best { grid-template-columns: 1fr; gap: 3cqw; }
  .hb-flow .hbp-card .hb-in { grid-template-columns: 1fr; }
  .hb-flow .hb-phone { width: 82%; margin: 0 auto 5cqw; }
  .hb-flow .hb-img.tall { min-height: 70cqw; }
  .hb-flow .hb-lines { width: 62cqw; }
  .hb-flow .hb-back-card { width: 80cqw; }
}
/* 휴대폰 읽기 모드 다듬기 — 사진 아래 글씨가 사진에 붙지 않게, 아래로 밀리던 칸에 숨 쉴 틈 */
@media (max-width: 640px) {
  .hb-flow .hb-pola { padding-bottom: 10cqw; }
  .hb-flow .hb-pola figcaption { bottom: 2.6cqw; }
  .hb-flow .hb-note { padding-left: 9cqw !important; margin-bottom: 2.6cqw; }
  .hb-flow .hb-now-side { padding: 2cqw 2cqw 0; }
  .hb-flow .hb-charm, .hb-flow .hb-quote, .hb-flow .hb-design, .hb-flow .hb-parts, .hb-flow .hb-legend { margin-top: 7cqw; }
  .hb-flow .hb-dl { grid-template-columns: auto 1fr; gap: 2cqw 4cqw; }
  .hb-flow .hb-charm { padding: 5cqw 5cqw 4cqw; }
  .hb-flow .hb-charm ol { gap: 4.4cqw; }
  .hb-flow .hb-vs { margin: 2cqw 0 6cqw; gap: 2cqw; }
  .hb-flow .hb-face-box { width: 70%; margin: 0 auto; }
}
/* 휴대폰: 메모가 사진 아래로 내려가니 화살표가 위(사진)를 가리키게 */
@media (max-width: 640px) {
  .hb-flow .hb-now .hb-pola { margin-bottom: 2cqw; }
  .hb-flow .hb-now-side { padding-top: 0; }
  .hb-flow .hb-now-side { display: flex; flex-wrap: wrap; gap: 0 5cqw; justify-content: center; }
  .hb-flow .hb-note { padding-left: 0 !important; padding-top: 6cqw; text-align: center; margin: 0 0 3cqw; }
  .hb-flow .hb-note::before { content: "↑"; left: 50%; top: 0; transform: translateX(-50%); font-family: var(--ko); font-size: calc(3cqw * var(--fs, 1)); }
  .hb-flow .hb-now-side .hb-dl { width: 100%; }
}
/* 편지 — 문단을 짧게, 인용은 줄 길이를 고르게 */
.hb-letter p { margin: 0 0 1.4cqw; }
.hb-letter-q { text-wrap: balance; margin-bottom: 2.6cqw !important; }
.hb-letter .hb-sign { margin-top: 2cqw; }
/* 편지 글씨 — 바탕체 대신 깔끔한 프리텐다드 (서명 손글씨는 그대로) */
.hb-letter p:not(.hb-sign) { font-family: var(--ko) !important; font-weight: 400; font-size: calc(2.45cqw * var(--fs, 1)) !important; line-height: 1.85 !important; letter-spacing: -.015em; color: #3d3f37; }
.hb-letter .hb-letter-q { font-weight: 600 !important; font-size: calc(2.8cqw * var(--fs, 1)) !important; line-height: 1.6 !important; color: var(--ink) !important; letter-spacing: -.025em; }
.hb-say p { font-family: var(--ko) !important; font-weight: 600; letter-spacing: -.02em; }
.hb-quote p { font-family: var(--ko) !important; font-weight: 600; letter-spacing: -.02em; }
/* 2쪽 — 편지가 길어져도 한 쪽에 들어가게 */
.hbp-hello .hb-head h2 { font-size: 9.6cqw; }
.hbp-hello .hb-head { margin-bottom: 3cqw; }
.hb-toc li { grid-template-columns: 4.6cqw auto 1fr; align-items: baseline; gap: 0 1.4cqw; padding: .7cqw 0; }
.hb-toc span { grid-row: auto; }
.hb-toc em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-gama { background: var(--paper); border-left: .8cqw solid var(--sage); padding: 2cqw 2.6cqw; margin: 0 0 3cqw; font-size: calc(2.1cqw * var(--fs, 1)); line-height: 1.6; }
.hb-gama b { margin-right: 1cqw; }
/* 휴대폰 읽기 모드에서도 표지·뒤표지는 원래 크기 그대로 */
@media (max-width: 640px) { .hb-flow .hbp-cover, .hb-flow .hbp-back { --fs: 1; } }
/* 줄바꿈 — 편지는 문장마다 한 줄, 짧은 설명은 줄 길이를 고르게 */
.hb-letter .ln { display: block; text-wrap: balance; }
.hb-letter p { margin-bottom: 2cqw; }
.hb-st p, .hb-cols p, .hb-rank p, .hb-best p, .hb-lead, .hb-sub, .hb-charm li p, .hb-time p, .hb-parts p, .hb-change b, .hb-design b, .hb-why, .hb-gama, .hb-small, .hb-quote p, .hb-say p, .hb-back-sub, .hb-ticket-face small, .hb-check li { text-wrap: balance; }
.hbp-hello .hb-head h2 { font-size: 8.4cqw; }
.hbp-hello .hb-head { margin-bottom: 2.4cqw; }
.hbp-hello .hb-folio { margin-bottom: 4cqw; }
.hb-letter { padding-top: 3cqw; padding-bottom: 2cqw; margin-bottom: 3cqw; }
.hb-letter p { margin-bottom: 1.4cqw; }
.hb-letter .hb-letter-q { margin-bottom: 2cqw !important; }

/* 19 HAIR CARE */
.hb-cares { display: grid; gap: 3cqw; }
.hb-care { background: var(--paper); border: 1px solid var(--line); padding: 3.4cqw 4cqw; }
.hb-care-en { font: 600 calc(1.7cqw * var(--fs, 1))/1 var(--en); letter-spacing: .24em; color: var(--sage); margin: 0 0 1.2cqw; }
.hb-care h3 { font: 600 calc(3cqw * var(--fs, 1))/1.2 var(--ko); margin: 0 0 2cqw; letter-spacing: -.03em; }
/* 20 OCCASION */
.hb-occ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; margin-bottom: 4cqw; }
.hb-occ-n { display: block; font: 600 calc(1.6cqw * var(--fs, 1))/1 var(--en); letter-spacing: .22em; color: var(--rose); margin-bottom: 1.4cqw; }
.hb-occ-pic .hb-cell { aspect-ratio: 3 / 4; border-radius: 1.4cqw; }
.hb-occ-pic .hb-cell .sq { width: 133.4%; transform: translate(-50%, -50%); }
.hb-occ h3 { font: 600 calc(2.7cqw * var(--fs, 1))/1.2 var(--ko); margin: 2cqw 0 1cqw; }
.hb-occ p { font-size: calc(2cqw * var(--fs, 1)); line-height: 1.65; margin: 0; color: #4a4c44; text-wrap: balance; }
/* 21 PLAN */
.hb-plan { list-style: none; padding: 0 0 0 1cqw; margin: 0 0 5cqw; display: grid; gap: 3.4cqw; border-left: 2px dashed var(--line); }
.hb-plan li { position: relative; padding-left: 7cqw; }
.hb-plan-dot { position: absolute; left: -3.4cqw; top: -.4cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--butter); display: grid; place-items: center; font: 600 calc(2.4cqw * var(--fs, 1))/1 var(--en); }
.hb-plan b { font-size: calc(2.8cqw * var(--fs, 1)); display: block; margin-bottom: .8cqw; }
.hb-plan p { margin: 0; font-size: calc(2.2cqw * var(--fs, 1)); line-height: 1.65; color: #4a4c44; text-wrap: balance; }
.hb-plan-cal { margin-top: auto; background: var(--paper); border: 1px solid var(--line); padding: 3cqw 4cqw; }
.hb-plan-cal p { margin: 0 0 2cqw; font-weight: 700; font-size: calc(2.2cqw * var(--fs, 1)); }
.hb-plan-cal div { display: flex; gap: 4cqw; flex-wrap: wrap; font: calc(2.4cqw * var(--fs, 1))/1.6 var(--ko); color: var(--soft); }
/* 23 SALON TALK */
.hb-talk { display: grid; gap: 3.6cqw; }
.hb-talk-n { font: italic 500 calc(3cqw * var(--fs, 1))/1 var(--en); color: var(--sage); margin: 0 0 .6cqw; }
.hb-talk h3 { font: 600 calc(2.8cqw * var(--fs, 1))/1.2 var(--ko); margin: 0 0 1.6cqw; }
.hb-bubble { display: block; width: fit-content; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 2.4cqw 2.4cqw 2.4cqw .4cqw; padding: 1.6cqw 2.6cqw; margin: 0 0 1.2cqw; font-size: calc(2.2cqw * var(--fs, 1)); line-height: 1.55; text-wrap: balance; }
/* 24 NOTE */
.hb-note-lines { display: grid; gap: 5cqw; margin: 2cqw 0 6cqw; }
.hb-note-lines i { display: block; border-bottom: 1px dashed #d6ccba; height: 1px; }
.hb-friend { margin-top: auto; background: var(--butter); padding: 4cqw 4.4cqw; }
.hb-friend-k { font: 600 calc(1.7cqw * var(--fs, 1))/1 var(--en); letter-spacing: .24em; margin: 0 0 1.4cqw; color: var(--brown); }
.hb-friend h3 { font: 600 calc(3.2cqw * var(--fs, 1))/1.25 var(--ko); margin: 0 0 1.6cqw; letter-spacing: -.03em; }
.hb-friend p { margin: 0 0 1.2cqw; font-size: calc(2.2cqw * var(--fs, 1)); line-height: 1.7; text-wrap: balance; }
.hb-friend-id { font-weight: 700; }
@media (max-width: 640px) {
  .hb-flow .hb-occ { grid-template-columns: 1fr 1fr; }
}
/* 20 OCCASION — 큰 사진 하나 + 상황 3개 */
.hb-occ2 { display: grid; grid-template-columns: 40cqw 1fr; gap: 5cqw; align-items: center; margin-bottom: 4cqw; }
.hb-occ2 .hb-pola .hb-cell { aspect-ratio: 3 / 4; }
.hb-occ-list { display: grid; gap: 3.4cqw; }
.hb-occ-list article { border-bottom: 1px dashed var(--line); padding-bottom: 2.6cqw; }
.hb-occ-list h3 { font: 600 calc(2.8cqw * var(--fs, 1))/1.2 var(--ko); margin: 0 0 1cqw; }
.hb-occ-list p { font-size: calc(2.15cqw * var(--fs, 1)); line-height: 1.65; margin: 0; color: #4a4c44; text-wrap: balance; }
/* 10 가마 + 정수리 사진 */
.hb-gama-box { display: grid; grid-template-columns: auto 1fr; gap: 3cqw; align-items: center; margin: 0 0 3cqw; }
.hb-gama-box .hb-gama { margin: 0; }
.hb-gama span { display: block; color: var(--soft); margin-top: .6cqw; }
.hb-gama-pic { margin: 0; width: 18cqw; } .hb-gama-pic .hb-img { aspect-ratio: 1; border-radius: 50%; }
.hb-gama-pic figcaption { text-align: center; font: calc(1.7cqw * var(--fs, 1))/1.4 var(--ko); color: var(--soft); margin-top: 1cqw; }
@media (max-width: 640px) { .hb-flow .hb-occ2 { grid-template-columns: 1fr; } .hb-flow .hb-occ2 .hb-pola { width: 70%; margin: 0 auto; } }

/* ===== 12/6 풍성하게: 문장 줄바꿈 · 꿀팁 · 머릿결 체크 · 용어 사전 · 염색 상식 ===== */
.hb .ln { display: block; text-wrap: balance; }
.hb-tip { margin: auto 0 0; background: #fff6d8; border-left: .8cqw solid var(--butter); padding: 2.4cqw 3cqw; font-size: calc(2.1cqw * var(--fs, 1)); line-height: 1.7; }
.hb-tip b { display: block; font: 700 calc(1.7cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .14em; color: var(--brown); margin-bottom: 1cqw; }
.hb-st-tip { margin: 1.2cqw 0 0 !important; font-size: calc(1.8cqw * var(--fs, 1)) !important; line-height: 1.55 !important; color: #5a4d3e !important; background: #fbf4de; padding: 1.2cqw 1.6cqw; border-radius: 1cqw; }
.hb-st-tip b { color: var(--rose); margin-right: .8cqw; font-weight: 700; }
.hb-styles.n4 .hb-st dl { display: none; }
/* 비포·애프터 설명 */
.hb-change2 { display: grid; grid-template-columns: 1fr; gap: 2.4cqw; margin-bottom: 3cqw; }
.hb-change2 div { display: grid; grid-template-columns: 20cqw 1fr; gap: 2cqw; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 2cqw; }
.hb-change2 small { font: 700 calc(1.8cqw * var(--fs, 1))/1.4 var(--ko); color: var(--sage); letter-spacing: .04em; }
.hb-change2 p { margin: 0; font-size: calc(2.3cqw * var(--fs, 1)); line-height: 1.7; }
/* 머릿결 체크 */
.hb-check-list { display: grid; gap: 2.4cqw; }
.hb-check-list article { display: grid; grid-template-columns: 22cqw 1fr; gap: 3cqw; background: var(--paper); border: 1px solid var(--line); padding: 2.6cqw 3cqw; }
.hb-ck-h small { display: block; font: 700 calc(1.7cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .16em; color: var(--sage); margin-bottom: 1cqw; }
.hb-ck-h b { display: block; font: 600 calc(2.8cqw * var(--fs, 1))/1.2 var(--ko); margin-bottom: 1.2cqw; letter-spacing: -.03em; }
.hb-dots { display: flex; gap: .8cqw; } .hb-dots i { flex: 1; height: 1.2cqw; border-radius: 99px; background: #ece5d6; } .hb-dots i.on { background: var(--sage); }
.hb-ck-mean { margin: 0 0 1cqw; font-size: calc(2.15cqw * var(--fs, 1)); line-height: 1.6; font-weight: 600; }
.hb-ck-so { margin: 0; font-size: calc(2cqw * var(--fs, 1)); line-height: 1.65; color: #4a4c44; }
.hb-ck-so b { display: inline-block; font-size: calc(1.6cqw * var(--fs, 1)); background: var(--butter); padding: .3cqw 1.2cqw; border-radius: 99px; margin-right: 1cqw; }
.hb-ck-top { margin: 3cqw 0 0; display: flex; gap: 3cqw; align-items: center; } .hb-ck-top .hb-img { width: 16cqw; aspect-ratio: 1; border-radius: 50%; } .hb-ck-top figcaption { font-size: calc(1.9cqw * var(--fs, 1)); color: var(--soft); }
/* 용어 사전 */
.hb-words { display: grid; grid-template-columns: 24cqw 1fr; gap: 0; margin: 0 0 3cqw; }
.hb-words dt { font: 600 calc(2.4cqw * var(--fs, 1))/1.4 var(--ko); padding: 2.2cqw 0; border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.hb-words dd { margin: 0; padding: 2.2cqw 0; border-bottom: 1px solid var(--line); font-size: calc(2.1cqw * var(--fs, 1)); line-height: 1.65; color: #4a4c44; }
/* 염색 상식 */
.hb-basics { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; margin-bottom: 3cqw; }
.hb-basics article { background: var(--paper); border: 1px solid var(--line); padding: 2.6cqw 3cqw; }
.hb-basics span { font: italic 500 calc(2.4cqw * var(--fs, 1))/1 var(--en); color: var(--sage); }
.hb-basics h3 { font: 600 calc(2.5cqw * var(--fs, 1))/1.3 var(--ko); margin: 1cqw 0; }
.hb-basics p { margin: 0; font-size: calc(1.95cqw * var(--fs, 1)); line-height: 1.65; color: #4a4c44; }
.hb-mine { margin: auto 0 0; background: var(--butter); padding: 3cqw 3.4cqw; font-size: calc(2.2cqw * var(--fs, 1)); line-height: 1.7; }
.hb-mine b { display: block; font-weight: 700; margin-bottom: 1cqw; }
@media (max-width: 640px) {
  .hb-flow .hb-check-list article, .hb-flow .hb-words, .hb-flow .hb-change2 div { grid-template-columns: 1fr; }
  .hb-flow .hb-basics { grid-template-columns: 1fr; }
}
.hb hb-ln { display: block; text-wrap: balance; }
/* 12/6 대조 — 인쇄 때 사진이 칸 밖으로 새는 것 막기 · 4칸 색 카드 높이 */
.hb-cell, .hb-cell .sq { contain: paint; }
.hbp-cols .hb-cols .hb-cell { aspect-ratio: 1.75; }
.hbp-cols .hb-cols { gap: 2.6cqw 3cqw; }
.hbp-cols .hb-cols h3 { margin-top: 1.4cqw; }
.hb-best { gap: 2cqw; }
.hb-best article { grid-template-columns: 6cqw 19cqw 1fr; padding-bottom: 2cqw; }
.hb-best .hb-cell { aspect-ratio: 4 / 5; }
.hb-best p { margin-bottom: .9cqw; }
.hb-pola .hb-cell, .hb-pola .hb-cell .sq { clip-path: inset(0); }
.hb-page { clip-path: inset(0); }
/* 넘치는 쪽 자동 맞춤 (hairbook20.js fit) */
.hb-page[data-fit] :is(.hb-styles, .hb-cols) .hb-cell { aspect-ratio: 2; }
.hb-page[data-fit="2"] :is(.hb-styles, .hb-cols) .hb-cell, .hb-page[data-fit="3"] :is(.hb-styles, .hb-cols) .hb-cell, .hb-page[data-fit="4"] :is(.hb-styles, .hb-cols) .hb-cell { aspect-ratio: 2.4; }
.hb-page[data-fit="3"] .hb-best article, .hb-page[data-fit="4"] .hb-best article { grid-template-columns: 6cqw 15cqw 1fr; }
.hb-page[data-fit="3"] :is(.hb-st, .hb-cols article) > p:not(.hb-st-tip), .hb-page[data-fit="4"] :is(.hb-st, .hb-cols article) > p:not(.hb-st-tip) { margin-bottom: .6cqw; }
.hb-page[data-fit="4"] .hb-st-tip { font-size: calc(1.65cqw * var(--fs, 1)) !important; padding: .9cqw 1.4cqw; }
/* 12/6 대조 — 차례가 길어져 인사 쪽 아래가 잘림 · 앞머리 쪽 아래 카드 잘림 */
.hbp-hello .hb-toc li { padding: .5cqw 0; }
.hbp-hello .hb-letter p:not(.hb-sign) { line-height: 1.75 !important; }
.hbp-hello .hb-letter { margin-bottom: 2.4cqw; }
.hbp-bangs .hb-vs { margin: 0 9cqw 3.4cqw; }
/* 12/6 휴대폰 — 본문 글씨가 10px 아래로 내려가지 않게 */
@media (max-width: 640px) {
  .hb-flow .hb-page:not(.hbp-cover):not(.hbp-back) :is(.hb-st p, .hb-cols p, .hb-cols dd, .hb-best p, .hb-rank p, .hb-tip, .hb-why, .hb-words dd, .hb-gama, .hb-check li, .hb-ck-so, .hb-ck-mean, .hb-mine, .hb-bubble, .hb-plan-cal p, .hb-dl dd, .hb-small, .hb-occ-list p, .hb-time p, .hb-basics p, .hb-parts p) { font-size: 12.5px !important; line-height: 1.6 !important; }
  .hb-flow .hb-page:not(.hbp-cover):not(.hbp-back) :is(.hb-st-tip, .hb-cols dt, .hb-dl dt, .hb-g p, .hb-fashion span, .hb-meter em, .hb-legend, .hb-tags span) { font-size: 11.5px !important; }
  .hb-flow .hb-page:not(.hbp-cover):not(.hbp-back) :is(.hb-st-tip, .hb-tip, .hb-why) b { font-size: inherit; }
}
@media (max-width: 640px) { .hb-flow :is(.hb-styles, .hb-cols) + .hb-tip { margin-top: 6cqw !important; } }

/* ---------- 덤 · 관상풀이 4쪽 (gs-) ---------- */
.gs-bonus { display: inline-block; font: 600 1.6cqw/1 var(--ko); letter-spacing: .2em; background: var(--butter); padding: 1.1cqw 1.8cqw; margin: 0 0 1.8cqw; }
.gs-p { font: 1.95cqw/1.7 var(--ko); margin: 0; }
.gs-lab { font: 600 1.6cqw/1 var(--ko); letter-spacing: .18em; color: var(--sage); margin: 0 0 1.4cqw; }
.gs-card { background: var(--paper); border: 1px solid var(--line); padding: 2.6cqw 3cqw; }
.hb mark { background: #F7ECBC; color: inherit; padding: .05em .25em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* 1쪽: 총평 · 삼정 · 오행 */
.gs-sum { background: var(--paper); border: 1px solid var(--line); padding: 3.4cqw 4cqw; position: relative; box-shadow: 0 1cqw 2.4cqw rgba(51,55,47,.06); }
.gs-sum h3 { font: 700 3.3cqw/1.35 var(--ko); margin: 0 0 1.6cqw; letter-spacing: -.02em; }
.gs-sum .hb-tape { left: auto; right: 4cqw; top: -1.8cqw; width: 11cqw; }
.gs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin-top: 3cqw; }
.gs-sam { display: grid; grid-template-columns: 13cqw 1fr; gap: 2.4cqw; align-items: stretch; }
.gs-sam svg { width: 100%; height: auto; }
.gs-sam ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3cqw; align-content: center; }
.gs-sam li b { font: 700 1.95cqw/1.3 var(--ko); display: block; }
.gs-sam li small { font: 1.65cqw/1.5 var(--ko); color: var(--soft); display: block; }
.gs-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 1.4cqw; margin: 1.4cqw 0 .8cqw; border-radius: 99px; overflow: hidden; }
.gs-bar i:nth-child(1){background:#e9dfc4}.gs-bar i:nth-child(2){background:var(--butter)}.gs-bar i:nth-child(3){background:#d9e0cf}
.gs-five { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8cqw; margin: 1.2cqw 0 1.6cqw; }
.gs-five span { text-align: center; padding: 1.3cqw 0 1.1cqw; border-radius: 1.4cqw; background: #f1ecdf; font: 700 2.2cqw/1 var(--my); color: var(--soft); }
.gs-five span small { display: block; font: 500 1.4cqw/1 var(--ko); margin-top: .7cqw; }
.gs-five span.on { background: var(--ink); color: var(--cream); }
.gs-five span.half { background: var(--butter); color: var(--ink); }
.gs-keys { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.gs-keys div { border-top: 2px solid var(--ink); padding-top: 1.6cqw; }
.gs-keys b { font: 400 3.4cqw/1 var(--en); display: block; letter-spacing: -.02em; }
.gs-keys strong { font: 700 2.2cqw/1.4 var(--ko); display: block; margin: 1cqw 0 .6cqw; }
.gs-keys p { margin: 0; font: 1.75cqw/1.6 var(--ko); color: var(--soft); }
/* 2쪽: 십이궁 */
.gs-palace { display: block; }
.gs-ptop { display: grid; grid-template-columns: 30cqw 1fr; gap: 4cqw; align-items: center; margin-bottom: 2.6cqw; }
.gs-ptop .gs-star { margin-top: 0; }
.gs-pl { grid-template-columns: 1fr 1fr; column-gap: 3cqw !important; }
.gs-pl li:nth-last-child(2) { border-bottom: 0; }
.gs-palace svg { width: 26cqw; margin: 0 auto; height: auto; display: block; }
.gs-palace .gs-legend { font: 700 2.8cqw/1.3 var(--hand); color: var(--rose); text-align: center; margin: 1.6cqw 0 0; transform: rotate(-2deg); }
.gs-pl { list-style: none; padding: 0; margin: 0; display: grid; gap: .95cqw; }
.gs-pl li { display: grid; grid-template-columns: 3.4cqw 1fr; gap: 1.4cqw; padding-bottom: .95cqw; border-bottom: 1px dashed var(--line); }
.gs-pl li:last-child { border-bottom: 0; }
.gs-pl li > span { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font: 600 1.6cqw/1 var(--en); }
.gs-pl b { font: 700 2.05cqw/1.2 var(--ko); }
.gs-pl em { font-style: normal; font: 500 1.55cqw/1 var(--ko); color: var(--sage); margin-left: .8cqw; }
.gs-pl p { margin: .5cqw 0 0; font: 1.75cqw/1.55 var(--ko); }
.gs-star { margin-top: 2.6cqw; background: var(--butter); padding: 2.2cqw 3cqw; font: 600 2.05cqw/1.6 var(--ko); }
.gs-star b { font: 700 1.6cqw/1 var(--ko); letter-spacing: .16em; display: block; margin-bottom: .8cqw; }
/* 3쪽: 운 네 가지 */
.gs-luck { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.gs-luck .gs-card { position: relative; padding: 3cqw 3cqw 2.6cqw; }
.gs-luck h3 { margin: 0 0 .4cqw; font: 400 3.6cqw/1 var(--en); letter-spacing: -.03em; }
.gs-luck h4 { margin: 0 0 1.4cqw; font: 700 2.1cqw/1.3 var(--ko); }
.gs-luck .from { font: 500 1.55cqw/1.4 var(--ko); color: var(--sage); margin: 0 0 1.2cqw; }
.gs-luck p { margin: 0; font: 1.8cqw/1.65 var(--ko); }
.gs-luck .tip { margin-top: 1.4cqw; padding-top: 1.2cqw; border-top: 1px dashed var(--line); font: 600 1.75cqw/1.55 var(--ko); }
.gs-luck .tip::before { content: "TIP  "; font: 600 1.5cqw/1 var(--en); letter-spacing: .12em; color: var(--rose); }
.gs-dots { position: absolute; right: 3cqw; top: 3.2cqw; display: flex; gap: .6cqw; }
.gs-dots i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--line); } .gs-dots i.on { background: var(--rose); }
.gs-when { margin-top: 2.6cqw; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.gs-when div { background: var(--paper); border: 1px solid var(--line); padding: 2.2cqw 2.4cqw; }
.gs-when b { font: italic 500 2.2cqw/1 var(--en); color: var(--sage); display: block; margin-bottom: .8cqw; }
.gs-when strong { font: 700 1.95cqw/1.4 var(--ko); display: block; margin-bottom: .6cqw; }
.gs-when p { margin: 0; font: 1.7cqw/1.55 var(--ko); color: var(--soft); }
/* 4쪽: 복을 살리는 머리 · 소품 */
.gs-rows { display: grid; gap: 1cqw; }
.gs-row { display: grid; grid-template-columns: 8cqw 1fr; gap: 2.4cqw; padding-bottom: 1cqw; border-bottom: 1px dashed var(--line); }
.gs-row .n { font: italic 400 5.4cqw/.9 var(--en); color: var(--sage); }
.gs-row .why { margin: 0 0 .6cqw; font: 500 1.6cqw/1.4 var(--ko); color: var(--sage); }
.gs-row h3 { margin: 0 0 .4cqw; font: 700 2.4cqw/1.3 var(--ko); }
.gs-row p { margin: 0; font: 1.75cqw/1.55 var(--ko); }
.gs-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8cqw; margin-top: 1.8cqw; }
.gs-items > div { background: var(--paper); border: 1px solid var(--line); padding: 2cqw 2.2cqw; }
.gs-items b { font: 600 1.5cqw/1 var(--en); letter-spacing: .14em; color: var(--sage); display: block; margin-bottom: 1cqw; }
.gs-items strong { font: 700 2cqw/1.35 var(--ko); display: block; margin-bottom: .6cqw; }
.gs-items p { margin: 0; font: 1.65cqw/1.55 var(--ko); color: var(--soft); }
.gs-sw { display: flex; gap: .8cqw; margin: 0 0 1cqw; } .gs-sw i { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.gs-bottom { margin-top: auto; display: grid; grid-template-columns: 15cqw 1fr; gap: 4cqw; align-items: end; }
.gs-msg { background: var(--butter); padding: 2.8cqw 3.4cqw; }
.gs-msg p { margin: 0; font: 2.05cqw/1.65 var(--my); }
.gs-msg .hb-sign { margin-top: 1.2cqw; font-size: 3cqw !important; }
.gs-foot { margin: 1.8cqw 0 0; font: 1.5cqw/1.5 var(--ko); color: var(--soft); text-align: center; }
.hbp-gs .hb-head { margin-bottom: 3.4cqw; }
.gs-cap { margin: 0; }
.gs-rule { margin: 0 0 1.4cqw; font-size: 1.55cqw; }
.gs-five-t { font-size: 1.8cqw; }
.gs-pintro { margin-top: 2cqw; }
.gs-keys { margin-top: 3.4cqw; }
.gs-bottom { margin-top: 2cqw; }
.gs-bottom .hb-tape { left: 2cqw; width: 10cqw; }
.gs-pl li.best > span { background: var(--rose); }
.gs-face12 { width: 26cqw; margin: 0 auto; height: auto; display: block; }
/* 덤 관상풀이 — 휴대폰(흐름 보기)에서는 한 줄로 쌓고 글자를 읽기 좋은 크기로 */
@media (max-width: 640px) {
  .hb-flow .hbp-gs :is(.gs-two, .gs-luck, .gs-when, .gs-items, .gs-ptop, .gs-pl, .gs-keys) { grid-template-columns: 1fr !important; gap: 3cqw; }
  .hb-flow .hbp-gs .gs-bottom { grid-template-columns: 26cqw 1fr; }
  .hb-flow .hbp-gs :is(p, li small, .gs-pl p, .gs-keys p, .gs-when p, .gs-items p, .gs-row p, .gs-luck p) { font-size: 12.5px !important; line-height: 1.65; }
  .hb-flow .hbp-gs :is(.gs-lab, .gs-bonus, .from, .why, .gs-pl em, .gs-rule, .gs-cap, .gs-foot, .gs-items b, .gs-star b) { font-size: 11.5px !important; }
  .hb-flow .hbp-gs :is(.gs-pl b, .gs-sam li b, .gs-keys strong, .gs-when strong, .gs-items strong, .gs-luck h4, .gs-star) { font-size: 14px !important; }
  .hb-flow .hbp-gs :is(.gs-sum h3, .gs-row h3) { font-size: 17px !important; }
  .hb-flow .hbp-gs .gs-five span { font-size: 16px; } .hb-flow .hbp-gs .gs-five span small { font-size: 11px; }
  .hb-flow .hbp-gs .gs-face12 { width: 52cqw; }
  .hb-flow .hbp-gs .gs-pl li { grid-template-columns: 24px 1fr; } .hb-flow .hbp-gs .gs-pl li > span { width: 24px; height: 24px; font-size: 11px; }
  .hb-flow .hbp-gs .gs-pl li:nth-last-child(2) { border-bottom: 1px dashed var(--line); }
  .hb-flow .hbp-gs .gs-dots i { width: 9px; height: 9px; }
  .hb-flow .hbp-gs .gs-sw i { width: 22px; height: 22px; }
}
/* 12/6 대조 — 넓은 칸에서 머리 위·턱이 잘림 → 사진 한 장 통째로 + 양옆은 흐린 같은 사진 */
.hb-cell .sq-bg { display: none; }
:is(.hb-styles, .hb-cols) .hb-cell { container-type: size; }
:is(.hb-styles, .hb-cols) .hb-cell .sq:not(.sq-bg) { width: 100cqh; height: 100cqh; transform: translate(-50%, -50%); }
:is(.hb-styles, .hb-cols) .hb-cell { background: linear-gradient(180deg, #dedddb, #d3d2cf); }
:is(.hb-styles, .hb-cols) .hb-cell .sq:not(.sq-bg) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
/* 12/6 대조 — 칸이 눌려 줄어들면 넘침을 못 잡아 「알아 두면 좋아요」가 꿀팁을 덮음 → 안 줄어들게(넘치면 fit 이 사진 칸을 낮춤) */
.hb-in > * { flex-shrink: 0; }
/* 12/6 대조 — 사진 칸들과 「알아 두면 좋아요」 사이가 0 이 되어 붙어 보임 → 최소 간격 */
.hb-in > :is(.hb-styles, .hb-cols) { margin-bottom: 2cqw; }
/* 맞춤 2단계는 한 번에 2.4 로 확 줄이지 않고 2.2 (아래가 비지 않게) */
.hb-page[data-fit="2"] :is(.hb-styles, .hb-cols) .hb-cell { aspect-ratio: 2.2; }

/* ===== 가마 사용법 쪽 (MY CROWN) ===== */
.hb-gm-top { display: flex; gap: 4cqw; align-items: center; margin: 0 0 4cqw; padding: 3cqw; background: var(--paper); border: 1px solid var(--line); }
.hb-gm-top .hb-gama-pic { width: 22cqw; flex: none; }
.hb-gm-fig { margin: 0; width: 20cqw; flex: none; text-align: center; }
.hb-gm-fig svg { width: 100%; display: block; }
.hb-gm-fig figcaption { font: calc(1.7cqw * var(--fs, 1))/1.4 var(--ko); color: var(--soft); margin-top: 1cqw; }
.hb-gm-me small { display: block; font: 700 calc(1.7cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .16em; color: var(--sage); margin-bottom: 1.2cqw; }
.hb-gm-me b { display: block; font: 600 calc(4cqw * var(--fs, 1))/1.15 var(--ko); letter-spacing: -.03em; margin-bottom: 1.4cqw; }
.hb-gm-me p { margin: 0; font-size: calc(2.2cqw * var(--fs, 1)); line-height: 1.65; text-wrap: balance; }
.hb-gm-list { display: grid; gap: 3cqw; }
.hb-gm-list article { display: grid; grid-template-columns: 22cqw 1fr; gap: 3cqw; border-bottom: 1px dashed var(--line); padding-bottom: 3cqw; }
.hb-gm-list h3 { margin: 0; font: 600 calc(3cqw * var(--fs, 1))/1.2 var(--ko); }
.hb-gm-list h3 small { display: block; font: 500 calc(1.8cqw * var(--fs, 1))/1.4 var(--ko); color: var(--soft); margin-top: .8cqw; }
.hb-gm-list p { margin: 0; font-size: calc(2.3cqw * var(--fs, 1)); line-height: 1.75; text-wrap: pretty; }
.hb-gm-say { margin: auto 0 0; background: #fff6d8; border-left: .8cqw solid var(--butter); padding: 3cqw 3.4cqw; }
.hb-gm-say small { display: block; font: 700 calc(1.7cqw * var(--fs, 1))/1 var(--ko); letter-spacing: .14em; color: var(--brown); margin-bottom: 1.4cqw; }
.hb-gm-say p { margin: 0; font: 600 calc(2.6cqw * var(--fs, 1))/1.6 var(--ko); }
.hb-gm-fig.sm { width: 14cqw; }
