/* 빨간 날 — 시안 B '쉬는 날 지도'(사용자 2026-11-22 고름). 종이 바탕 · 먹 · 빨강 한 색. 둥근 카드·칩·형광 라임 없음. */
:root {
  --bg: #f3f2ec; --ink: #151612; --muted: #5f6157; --faint: #8f9186; --line: #151612; --hair: #d6d6cc;
  --red: #c2321f; --red-soft: #c2321f2b; --sat: #2f5d8a;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
body::after { content: ""; position: fixed; inset: 0; opacity: .03; pointer-events: none; z-index: 60; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(100%, 1280px); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* 머리줄 */
.mast { border-bottom: 3px solid var(--line); }
.mast-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 54px; }
.brand { text-decoration: none; font-size: 17px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--red); }
.brand small { font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--faint); margin-left: 8px; }
.mast nav { display: flex; gap: 20px; font-size: 13px; font-weight: 700; }
.mast nav a { text-decoration: none; color: var(--muted); }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--ink); }
.mast nav a[aria-current] { box-shadow: inset 0 -2px var(--red); }
@media (max-width: 760px) { .mast nav a:not(.keep) { display: none; } .brand small { display: none; } }

.kicker { font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--red); }

/* 해 쪽 제목 */
.title { display: grid; grid-template-columns: 1fr minmax(0, 320px); gap: 20px; align-items: end; padding-top: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.title .kicker { margin-bottom: 10px; }
.title h1 { font-size: clamp(44px, 8.4vw, 112px); font-weight: 900; letter-spacing: -.055em; line-height: .92; }
.title h1 em { font-style: normal; color: var(--red); }
.title > p { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.65; text-align: right; }
@media (max-width: 760px) { .title { grid-template-columns: 1fr; } .title > p { text-align: left; } }

/* 연차 단추 줄 */
.bar { border-bottom: 1px solid var(--hair); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); z-index: 30; }
.bar-in { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding-block: 12px; }
.bar-in > span { font-size: 13px; font-weight: 800; }
.seg { display: inline-flex; border: 1.5px solid var(--line); }
.seg button { border: 0; background: transparent; height: 38px; min-width: 50px; padding: 0 11px; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.legend { display: flex; gap: 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 5px; }
.legend .l1 { background: var(--red); } .legend .l2 { border: 1.5px dashed var(--ink); } .legend .l3 { background: var(--red-soft); }
.ys { margin-left: auto; display: flex; border: 1.5px solid var(--line); }
.ys a { text-decoration: none; font-size: 13px; font-weight: 800; padding: 0 10px; height: 32px; display: flex; align-items: center; color: var(--muted); }
.ys a + a { border-left: 1.5px solid var(--line); }
.ys a[aria-current] { background: var(--ink); color: var(--bg); }
@media (max-width: 760px) { .bar { position: static; } .legend { width: 100%; order: 3; } .ys { margin-left: 0; } }

/* 열두 달 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; padding-top: 22px; padding-bottom: 34px; }
@media (max-width: 1040px) { .layout { grid-template-columns: 1fr; } }
.year { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; align-content: start; }
@media (max-width: 1040px) { .year { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .year { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; } }
.mo-h { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 5px; margin-bottom: 6px; min-height: 34px; font-size: inherit; }
.mo-h b { font-size: 26px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.mo-h span { font-size: 11px; font-weight: 700; color: var(--red); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.g i { font-style: normal; text-align: center; font-size: 12.5px; font-weight: 600; height: 24px; line-height: 24px; position: relative; font-variant-numeric: tabular-nums; }
.g i.w { font-size: 10px; color: var(--faint); height: 18px; line-height: 18px; }
.g i.red { color: var(--red); } .g i.sat { color: var(--sat); }
.g i.hol { background: var(--red); color: #fff; font-weight: 800; }
.g i.run:not(.hol) { background: var(--red-soft); }
.g i.lv { outline: 1.5px dashed var(--ink); outline-offset: -2px; color: var(--ink); background: #fff8; }
.g i.today { box-shadow: inset 0 -3px var(--ink); }
@media (max-width: 620px) { .g i { font-size: 11.5px; height: 22px; line-height: 22px; } }

/* 옆 칸 */
.rail h2 { font-size: 12px; letter-spacing: 1.2px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.rail h2.gap { margin-top: 22px; }
.big { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--hair); }
.big div { padding: 14px 0 12px; } .big div + div { border-left: 1px solid var(--hair); padding-left: 14px; }
.big b { display: block; font-size: 44px; font-weight: 900; letter-spacing: -.05em; line-height: 1; } .big b.r { color: var(--red); }
.big span { font-size: 12px; font-weight: 700; color: var(--muted); }
.rank li { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.rank .rk { font-weight: 900; color: var(--red); } .rank .rn { font-size: 14px; } .rank .rn b { font-weight: 900; }
.rank .rl { font-size: 12px; font-weight: 800; border: 1.5px solid var(--line); padding: 1px 6px; height: 22px; white-space: nowrap; }
.rank .rd { grid-column: 2 / 4; font-size: 12px; color: var(--muted); font-weight: 600; }
.cta { margin-top: 22px; display: grid; gap: 8px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 800; text-decoration: none; background: transparent; cursor: pointer; text-align: center; }
.btn.solid { background: var(--ink); color: var(--bg); }
.apps { margin-top: 22px; border-top: 2px solid var(--line); }
.apps-h { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; padding: 8px 0 2px; }
.apps a { display: block; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.apps b { display: block; font-size: 14px; font-weight: 800; } .apps span { font-size: 12.5px; color: var(--muted); }
.apps a:hover b { color: var(--red); }

/* 해 쪽 아래 글 */
.notes { border-top: 3px solid var(--line); padding-top: 22px; padding-bottom: 40px; }
.notes h2 { font-size: 22px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 10px; }
.notes ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.notes li { padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.65; }
@media (max-width: 760px) { .notes ul { grid-template-columns: 1fr; } }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 14px; }

/* 첫 화면 */
.hero { padding-top: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(40px, 7.4vw, 96px); font-weight: 900; letter-spacing: -.055em; line-height: .98; margin-top: 10px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 12px; }
.upcoming { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.upcoming li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 0; border-top: 1px solid var(--hair); }
.upcoming .ud { font-size: 13px; font-weight: 700; } .upcoming .un { grid-row: 2; font-size: 15px; font-weight: 800; }
.upcoming .ul { grid-row: 1 / 3; align-self: center; font-size: 13px; font-weight: 800; color: var(--red); }
@media (max-width: 760px) { .upcoming { grid-template-columns: 1fr; } }
.block { padding-top: 28px; padding-bottom: 8px; }
.bh { font-size: 12px; letter-spacing: 1.2px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.ycards { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .ycards { grid-template-columns: 1fr; } }
.yc { display: grid; gap: 4px; padding: 18px 18px 18px 0; text-decoration: none; border-bottom: 1px solid var(--hair); }
.yc + .yc { padding-left: 18px; border-left: 1px solid var(--hair); }
@media (max-width: 760px) { .yc + .yc { padding-left: 0; border-left: 0; } }
.yc-y { font-size: 15px; font-weight: 900; } .yc.on .yc-y { color: var(--red); }
.yc-n b { font-size: 52px; font-weight: 900; letter-spacing: -.05em; line-height: 1; } .yc-n { font-size: 15px; font-weight: 800; }
.yc-s { font-size: 13px; color: var(--muted); font-weight: 600; } .yc-go { font-size: 13px; font-weight: 800; margin-top: 6px; }
.yc:hover .yc-go { color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.links a { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.links b { font-size: 15px; font-weight: 800; } .links span { font-size: 13px; color: var(--muted); }
.links a:hover b { color: var(--red); }
.about-short { padding-bottom: 40px; }
.about-short p { font-size: 14.5px; line-height: 1.75; margin-top: 12px; max-width: 760px; }
.about-short .apps { max-width: 760px; }

/* 글 쪽 */
.doc { max-width: 820px; padding-top: 30px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 900; letter-spacing: -.045em; line-height: 1.15; margin: 8px 0 14px; }
.doc h2 { font-size: 21px; font-weight: 900; letter-spacing: -.03em; margin: 34px 0 10px; padding-top: 12px; border-top: 2px solid var(--line); }
.doc h3 { font-size: 16px; font-weight: 800; margin: 18px 0 6px; }
.doc p { font-size: 15px; line-height: 1.8; margin: 10px 0; }
.doc ul { margin: 8px 0; }
.doc li { font-size: 15px; line-height: 1.75; padding: 6px 0 6px 16px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 2px; background: var(--red); }
.doc a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.doc .ys { display: inline-flex; margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--line); border-bottom: 1px solid var(--hair); margin: 4px 0 14px; }
.facts div { padding: 12px 0 10px; } .facts div + div { border-left: 1px solid var(--hair); padding-left: 14px; }
.facts b { display: block; font-size: 38px; font-weight: 900; letter-spacing: -.05em; line-height: 1; } .facts b.r { color: var(--red); }
.facts span { font-size: 12px; font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--hair); } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
.tbl th { text-align: left; font-size: 12px; font-weight: 800; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 2px solid var(--line); }
.tbl td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl td.red { color: var(--red); font-weight: 800; } .tbl td.sat { color: var(--sat); font-weight: 800; }
.tbl tr.sub td:nth-child(3) { color: var(--red); font-weight: 800; }
.tbl tr.wk td:first-child { color: var(--muted); }
.tbl td.note { color: var(--muted); font-size: 13px; }
.scroll { overflow-x: auto; }
.terms { min-width: 640px; }
.src li { font-size: 13.5px; }
.rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.rows > div span:first-child { color: var(--muted); font-weight: 700; }
@media (max-width: 560px) { .rows > div { grid-template-columns: 1fr; gap: 2px; } }

/* 음력 도구 */
.tool { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); margin: 18px 0 8px; background: #fff6; }
@media (max-width: 680px) { .tool { grid-template-columns: 1fr; } }
.conv { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.conv + .conv { border-left: 1.5px solid var(--line); }
.conv.wide { grid-column: 1 / -1; border-left: 0; border-top: 1.5px solid var(--line); }
@media (max-width: 680px) { .conv + .conv { border-left: 0; border-top: 1.5px solid var(--line); } }
.doc .conv h2 { margin: 0; padding: 0; border: 0; font-size: 17px; }
.conv label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.conv input[type=date], .conv input[type=number] { height: 44px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 16px; font-weight: 700; color: var(--ink); min-width: 0; }
.conv input[type=number] { width: 92px; }
.conv .row { display: flex; gap: 8px; flex-wrap: wrap; }
.conv .chk { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); }
.conv .chk input { width: 18px; height: 18px; accent-color: var(--ink); }
.conv .out { font-size: 15px; line-height: 1.6; min-height: 24px; margin: 0; }
.conv .out b { font-size: 18px; font-weight: 900; }
.conv .out .err { color: var(--red); font-weight: 700; }
.bday { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 18px; }
.bday li { padding: 7px 0 !important; border-bottom: 1px solid var(--hair); font-size: 14px !important; }
.bday li::before { display: none; }
.conv .out .bday b { font-size: 15px; font-weight: 900; }
.conv .out .bday span { color: var(--muted); font-size: 13px; }

/* 내려받기 */
.dl { border-top: 2px solid var(--line); margin-top: 26px; padding-top: 12px; scroll-margin-top: 20px; }
.doc .dl h2 { border: 0; margin: 0; padding: 0; font-size: 26px; }
.dl > p { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.dl-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 바닥 */
.foot { border-top: 3px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-block: 20px 44px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.foot-in b { color: var(--ink); } .foot-in > div { max-width: 520px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; align-content: flex-start; }
.foot nav a { text-decoration: none; } .foot nav a:hover { color: var(--ink); }
