/* 일주 정보 페이지 공통 스타일 (메인 화면과 같은 색·글꼴) */
:root {
  --paper: #EEF1EE; --surface: #FFFFFF; --ink: #17201C; --muted: #5A6560; --line: #D3D9D4;
  --accent: #1F5E58; --accent-ink: #FFFFFF;
  --wood: #3E7C4A; --fire: #B53A2E; --earth: #A87A22; --metal: #6E757D; --water: #24364F;
  --display: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111614; --surface: #19201E; --ink: #E6ECE8; --muted: #9AA6A0; --line: #2C3632;
    --accent: #62B5AA; --accent-ink: #0C1312;
    --wood: #72B57F; --fire: #E2735F; --earth: #D6A94A; --metal: #B1B7BE; --water: #84A3CF;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 64px;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 680px; margin: 0 auto; display: grid; gap: 28px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 900; font-size: 22px; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 7vw, 40px); line-height: 1.25; margin: 0; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 900; font-size: 21px; margin: 0 0 10px; text-wrap: balance; }
p { margin: 0 0 12px; }
.lede { font-size: 17px; color: var(--muted); margin: 0; }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.pair { display: grid; gap: 6px; }
.ch { width: 76px; border-radius: 12px; padding: 6px 0 4px; text-align: center; background: color-mix(in srgb, var(--el) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--el) 35%, transparent); }
.ch b { display: block; font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1.1; color: var(--el); }
.ch small { font-size: 12px; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.cta { background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; }
.cta p { margin: 0; }
.cta a { display: inline-block; justify-self: start; background: var(--accent-ink); color: var(--accent); font-weight: 600; text-decoration: none; border-radius: 10px; padding: 10px 16px; }
ul.points { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.advice { margin: 0; border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.6; }
.dates { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; font-variant-numeric: tabular-nums; }
.dates li { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 2px 12px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; }
.nav { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.grid a { text-decoration: none; text-align: center; border-radius: 8px; padding: 6px 0; font-size: 14px; color: var(--ink); background: color-mix(in srgb, var(--el) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--el) 30%, transparent); }
.grid a b { display: block; font-family: var(--display); font-size: 20px; color: var(--el); line-height: 1.2; }
.grid a[aria-current] { outline: 2px solid var(--accent); }
footer { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(4, 1fr); } .hero { grid-template-columns: 1fr; } .pair { grid-auto-flow: column; justify-content: start; } }
