/* 띠별 오늘의 운세(/magazine/fortune/*) — magazine.css 토큰 위에 얹는다. 본진 story.css .fortune-* 를 매거진 톤으로 옮김 */
.fo { min-width: 0; padding-top: 12px; padding-bottom: 40px; }
.fo-layout { max-width: 1200px; padding-bottom: 60px; }
.fo-hero { position: relative; margin: 0 -20px 18px; aspect-ratio: 1200/630; overflow: hidden; background: #000; container-type: inline-size; color: #fff; }
.fo-hero > img { position: absolute; left: 20%; top: -9.2cqw; width: 80%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.fo-hero::before, .fo-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fo-hero::before { left: 20%; width: 21.7%; background: linear-gradient(90deg, #000, transparent); }
.fo-hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 45%, transparent 72%); }
.fo-hero-text { position: absolute; z-index: 2; left: 5.3%; bottom: 8.9%; display: grid; justify-items: start; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.fo-hero-text small { font-weight: 800; color: var(--pink); font-size: max(11px, 2.67cqw); }
.fo-hero-text strong { font-family: var(--serif); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-size: 9.3cqw; }
.fo-hero-text span { font-size: max(11px, 3.17cqw); color: #ececf0; }
.fo-hero-text em { font-style: normal; font-weight: 800; margin-top: 2.3cqw; font-size: max(10px, 2.25cqw); padding: .45em 1em; border-radius: 999px; background: linear-gradient(100deg, #ffc2d4, #f0508a 55%, #d7192e); text-shadow: none; }

.fo-kicker { font-size: 13px; color: var(--gold); margin-top: 6px; }
.fo-article h1, .fo-title { font-size: 26px; line-height: 1.35; margin: 8px 0 14px; word-break: keep-all; }
.fo-intro, .fo-closing { font-size: 15.5px; line-height: 1.85; color: #dedee6; word-break: keep-all; }
.fo-closing { margin-top: 22px; }
.fo-top { margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.fo-top b { color: var(--pink); }
.fo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.fo-chips a { padding: 6px 11px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.fo-chips a.is-good { background: linear-gradient(100deg, #f0508a, #831843); border-color: transparent; color: #fff; }
.fo-chips a.is-caution { color: var(--muted); background: transparent; }

.fo-ddi { padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.fo-ddi h2 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fo-ddi h2 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.fo-face { width: 52px; height: 52px; border-radius: 50%; flex: none; padding: 4px; background: radial-gradient(circle at 50% 35%, #4a3b5c, #1e1828); }
.fo-face.is-good { background: radial-gradient(circle at 50% 35%, #ffd3e1 0%, #f0508a 60%, #b0123a 100%); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #f0508a, 0 0 14px #f0508a88; }
.fo-face.is-caution { background: radial-gradient(circle at 50% 35%, #ffe2a3 0%, #f59e0b 60%, #7a4a06 100%); }
.fo-name a:hover { color: var(--pink); }
.fo-ddi.is-good .fo-name { color: #ffd3e1; }
.fo-tone { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 800; }
.fo-tone.is-good { background: linear-gradient(100deg, #f0508a, #831843); color: #fff; }
.fo-tone.is-neutral { background: var(--chip); color: var(--muted); }
.fo-tone.is-caution { background: #f59e0b26; color: #fbbf24; }
.fo-head { font-size: 16.5px; font-weight: 700; margin: 12px 0 6px; color: var(--sand); word-break: keep-all; }
.fo-ddi p { font-size: 15px; line-height: 1.85; color: #dedee6; word-break: keep-all; }
.fo-love { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.fo-ddi ul { list-style: none; margin: 12px 0; display: grid; gap: 7px; }
.fo-ddi li { font-size: 14px; line-height: 1.7; color: #cfcfd8; word-break: keep-all; }
.fo-ddi li b { display: inline-block; min-width: 56px; color: var(--muted); font-weight: 600; }
.fo-lucky { font-size: 13px !important; color: var(--muted) !important; }
.fo-cta { display: block; margin-top: 16px; padding: 15px; border-radius: 14px; background: linear-gradient(135deg, var(--burgundy-hi), #5b1d6e); border: 1px solid rgba(244, 114, 182, .35); color: #fff; font-weight: 700; text-align: center; word-break: keep-all; transition: transform .15s; }
.fo-cta:active { transform: scale(.99); }
.fo-nav { display: flex; justify-content: space-between; margin: 26px 0 8px; font-weight: 700; color: var(--pink); }
.fo-more { margin: 18px 0; } .fo-more a { color: var(--pink); font-weight: 700; }

.fo-past { margin: 28px 0; } .fo-past h2 { font-size: 18px; margin-bottom: 10px; }
.fo-past ul { list-style: none; display: grid; gap: 2px; }
.fo-past a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.fo-past b { min-width: 64px; color: var(--sand); font-weight: 600; }

.fo-jump { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0; }
.fo-jump a { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.fo-jump a[aria-current] { border-color: var(--pink); }
.fo-jump .fo-face { width: 36px; height: 36px; padding: 2px; }

.fo-list { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.fo-list a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.fo-list img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.fo-list b { display: block; font-size: 15px; margin-bottom: 4px; word-break: keep-all; }
.fo-list small { font-size: 13px; color: var(--muted); line-height: 1.5; }

@media (min-width: 760px) {
  .fo-hero { margin: 0 0 20px; border-radius: 18px; }
  .fo-article h1, .fo-title { font-size: 32px; }
  .fo-jump { grid-template-columns: repeat(6, 1fr); }
}
.fo-end { margin-top: 26px; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid rgba(245, 185, 66, .25); }
.fo-end h2, .fo-faq h2 { font-size: 19px; margin-bottom: 10px; }
.fo-end p { font-size: 15px; line-height: 1.85; color: #dedee6; word-break: keep-all; }
.fo-end p + p { margin-top: 8px; }
.fo-end a:not(.fo-cta) { color: var(--pink); }
.fo-years { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.fo-years a { padding: 7px 12px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); font-size: 13px; }
.fo-years a[aria-current] { border-color: var(--pink); color: #fff; }

/* 자주 묻는 질문 — 카드형 */
.fo-faq { margin-top: 32px; }
.fo-faq details { margin-top: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.fo-faq details[open] { border-color: rgba(244, 114, 182, .35); background: rgba(40, 22, 40, .7); }
.fo-faq summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; word-break: keep-all; border-radius: 16px; }
.fo-faq summary::-webkit-details-marker { display: none; }
.fo-faq summary::before { content: 'Q'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: 'Cinzel', serif; font-size: 12px; color: var(--pink); background: rgba(240, 80, 138, .14); }
.fo-faq summary::after { content: ''; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.fo-faq details[open] summary::after { transform: rotate(-135deg); }
.fo-faq summary:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.fo-faq details p { padding: 0 18px 18px 56px; font-size: 14.5px; line-height: 1.85; color: #cfc6d4; word-break: keep-all; }

/* 관련 글 */
.fo-related { margin-top: 40px; }
.fo-related h2 { font-size: 20px; margin-bottom: 14px; }
.fo-rel { display: grid; gap: 14px; }
.fo-rel a { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .15s; }
.fo-rel a:hover { border-color: rgba(244, 114, 182, .4); }
.fo-rel img { grid-row: 1 / 4; width: 110px; height: 110px; object-fit: cover; border-radius: 12px; }
.fo-rel small { font-size: 11px; color: var(--pink); margin-top: 4px; }
.fo-rel b { font-size: 15px; line-height: 1.4; margin: 4px 0; word-break: keep-all; }
.fo-rel span { font-size: 13px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 사이드 */
.fo-side { display: grid; gap: 28px; align-content: start; padding-bottom: 20px; }
.fo-side-h { font-family: var(--serif); font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.fo-side-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #3a3a46, transparent); }
.fo-best { list-style: none; display: grid; gap: 4px; }
.fo-best a { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; transition: background .2s; }
.fo-best a:hover { background: var(--panel); }
.fo-best img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.fo-best small { display: block; font-size: 11px; color: var(--pink); }
.fo-best b { font-size: 14px; line-height: 1.4; font-weight: 600; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fo-best em { font-family: 'Cinzel', serif; font-style: normal; font-size: 18px; color: var(--gold); opacity: .8; }
.fo-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fo-prod { display: grid; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .15s; }
.fo-prod:first-child { grid-column: 1 / -1; }
.fo-prod:hover { border-color: rgba(245, 185, 66, .45); }
.fo-prod:active { transform: scale(.99); }
.fo-prod img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.fo-prod:first-child img { aspect-ratio: 16/9; }
.fo-prod span { display: grid; gap: 4px; padding: 10px 12px 12px; }
.fo-prod b { font-size: 13.5px; line-height: 1.35; word-break: keep-all; }
.fo-prod small { font-size: 12px; color: var(--muted); line-height: 1.4; word-break: keep-all; }
.fo-prod em { font-style: normal; font-size: 11.5px; color: var(--gold); }

/* 띠 블록을 살짝 카드처럼 */
.fo-ddi { padding: 22px 18px; margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(24, 24, 32, .6), rgba(24, 24, 32, .25)); }
.fo-ddi.is-good { border-color: rgba(240, 80, 138, .35); background: linear-gradient(180deg, rgba(131, 24, 67, .22), rgba(24, 24, 32, .25)); }

@media (min-width: 1024px) {
  .fo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
  .fo-side { position: sticky; top: 96px; padding-top: 12px; } /* top 은 fortune-pages.mjs 스크립트가 사이드 높이에 맞춘다 */
  .fo-rel { grid-template-columns: repeat(3, 1fr); }
  .fo-rel a { grid-template-columns: 1fr; grid-template-rows: none; }
  .fo-rel img { grid-row: auto; width: 100%; height: auto; aspect-ratio: 4/3; margin-bottom: 6px; }
}

/* 얼굴이 늘 가운데: 세로 그림은 얼굴이 위쪽 1/4 에 있어 잘리는 칸마다 기준점을 맞춘다 */
.fo-rel img, .fo-prod img, .fo-best img, .fo-list img { object-position: 50% 20%; } /* 홈 .card-art 와 같은 기준 */
.fo-hero > img { left: 50%; width: 62%; top: -2cqw; transform: translateX(-12%); } /* 대표 그림: 얼굴을 그림 칸 가운데로 */
.fo-hero::before { left: 42%; width: 22%; } /* 그림 왼쪽 경계를 검은 면과 부드럽게 잇는다(위 대표 그림 위치와 짝) */

/* 사이드를 노트북 화면(높이 768) 안에 다 들어가게 — 따라올 때 위가 잘리지 않도록 */
.fo-side { gap: 22px; }
.fo-best a { grid-template-columns: 56px 1fr auto; padding: 6px 8px; }
.fo-best img { width: 56px; height: 56px; }
.fo-prods { grid-template-columns: 1fr; gap: 8px; }
.fo-prod, .fo-prod:first-child { grid-column: auto; grid-template-columns: 72px 1fr; align-items: center; }
.fo-prod img, .fo-prod:first-child img { width: 72px; height: 100%; min-height: 88px; aspect-ratio: auto; }
.fo-prod span { padding: 10px 12px; gap: 3px; }

/* 년생별 목록 — 배지 + 한 줄씩 나눈 칸 */
.fo-ddi .fo-yl { margin: 14px 0 12px; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: rgba(11, 11, 15, .35); }
.fo-yl li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 11px 14px; }
.fo-yl li + li { border-top: 1px solid var(--line); }
.fo-yb { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--sand); background: var(--chip); border: 1px solid var(--line); white-space: nowrap; transition: border-color .2s, color .2s; }
.fo-yb:hover { border-color: var(--pink); color: #fff; }
.fo-ddi.is-good .fo-yb { color: #ffd3e1; border-color: rgba(240, 80, 138, .35); }
.fo-yl span { font-size: 14px; line-height: 1.65; color: #dedee6; word-break: keep-all; }

/* 콘텐츠 엔진 글(/magazine/post/*) */
.po-hero { margin: 0 0 18px; border-radius: 18px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.po-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.po-body p { font-size: 16px; line-height: 1.95; color: #e2dde6; word-break: keep-all; margin: 0 0 18px; }
.po-body h2 { font-size: 21px; margin: 34px 0 14px; padding-left: 12px; border-left: 3px solid var(--pink); }
.po-body h3 { font-size: 17px; margin: 24px 0 10px; color: var(--sand); }
.po-body strong { color: #ffd3e1; }
.po-body .fo-end { margin-top: 34px; }
.po-body .fo-end h2 { border-left: 0; padding-left: 0; margin: 0 0 12px; font-size: 19px; }
.po-body .fo-end p { margin-bottom: 10px; }
.po .post-actions { margin-top: 26px; }

.fo-wealth { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.fo-work { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.fo-health { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
