/* 운명디자인소 — 절기 페이지 전용 서식
   site.css 의 빛깔 체계를 그대로 쓰되, 계절 네 빛깔을 더한다. */

:root{
  --sp:#3f9c72;  --sp-s:rgba(63,156,114,.12);
  --su:#d4544a;  --su-s:rgba(212,84,74,.12);
  --au:#bd8a24;  --au-s:rgba(189,138,36,.12);
  --wi:#3d7fc4;  --wi-s:rgba(61,127,196,.12);
  --jg-card:#ffffff;
  --jg-shadow:0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.05);
}
html[data-theme="dark"]{
  --sp:#5fc294;  --sp-s:rgba(95,194,148,.13);
  --su:#f08479;  --su-s:rgba(240,132,121,.13);
  --au:#e3bb5c;  --au-s:rgba(227,187,92,.13);
  --wi:#72aeea;  --wi-s:rgba(114,174,234,.13);
  --jg-card:#151c26;
  --jg-shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.26);
}
[data-s="spring"]{--c:var(--sp);--cs:var(--sp-s)}
[data-s="summer"]{--c:var(--su);--cs:var(--su-s)}
[data-s="autumn"]{--c:var(--au);--cs:var(--au-s)}
[data-s="winter"]{--c:var(--wi);--cs:var(--wi-s)}

.jg{max-width:1060px;margin:0 auto;padding:0 20px 80px;word-break:keep-all}
.jg-wide{max-width:1180px}

/* ── 머리 ── */
.jg-hero{padding:46px 0 10px;text-align:center;position:relative}
.jg-kicker{font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold);font-weight:500;margin-bottom:14px}
.jg-year{font-family:'Noto Serif KR',serif;font-weight:900;line-height:.92;
  font-size:clamp(4.2rem,20vw,9rem);letter-spacing:-.02em;
  background:linear-gradient(170deg,var(--head) 18%,var(--gold) 115%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  margin-bottom:6px}
.jg-h1{font-family:'Noto Serif KR',serif;font-weight:700;color:var(--head);
  font-size:clamp(1.35rem,5.4vw,2.1rem);line-height:1.3;margin-bottom:14px}
.jg-lede{color:var(--text-dim);font-size:clamp(.95rem,3.4vw,1.06rem);
  line-height:1.8;max-width:46rem;margin:0 auto}

/* ── 말 고르기 ── */
.jg-lang{display:inline-flex;gap:2px;padding:3px;border-radius:999px;
  border:1px solid var(--line);background:var(--sunken);margin:22px 0 4px}
.jg-lang button{font:inherit;font-size:.82rem;font-weight:500;letter-spacing:.04em;
  padding:6px 18px;border:0;border-radius:999px;background:transparent;
  color:var(--text-mute);cursor:pointer;transition:.18s}
.jg-lang button[aria-pressed="true"]{background:var(--gold);color:#fff}
html[data-theme="dark"] .jg-lang button[aria-pressed="true"]{color:#0a0d12}
.jg-lang button:hover{color:var(--text)}
:root[data-jg="en"] .k-ko{display:none}
:root:not([data-jg="en"]) .k-en{display:none}

/* ── 바퀴 ── */
.jg-wheelwrap{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;
  align-items:center;margin:34px 0 10px}
@media (max-width:860px){.jg-wheelwrap{grid-template-columns:1fr;gap:18px}}
.jg-wheel{width:100%;max-width:520px;margin:0 auto;display:block}
.jg-wheel text{font-family:'Noto Serif KR',serif}
.jg-wheel .wseg{opacity:.9;transition:.2s}
.jg-wheel g.on .wseg{opacity:1}
.jg-wheel .wlab{font-size:13px;fill:var(--text-dim)}
.jg-wheel g.on .wlab{fill:var(--head);font-weight:700}
.jg-wheel .wmid{font-size:11px;fill:var(--text-mute)}
.jg-wheel .wlab-en{font-size:11.5px;letter-spacing:.01em}
.jg-hub-k{font-family:'Noto Serif KR',serif;font-size:46px;font-weight:900;
  fill:var(--gold);letter-spacing:.04em}
.jg-hub-s{font-size:12px;fill:var(--text-mute);letter-spacing:.14em}

/* ── 다음 절기 ── */
.jg-next{background:var(--jg-card);border:1px solid var(--line-soft);
  border-left:3px solid var(--c,var(--gold));border-radius:14px;
  padding:22px 22px 20px;box-shadow:var(--jg-shadow)}
.jg-next .lbl{font-size:.72rem;letter-spacing:.17em;text-transform:uppercase;
  color:var(--text-mute);margin-bottom:10px}
.jg-next .nm{font-family:'Noto Serif KR',serif;font-size:1.65rem;font-weight:700;
  color:var(--head);line-height:1.15}
.jg-next .nm i{font-style:normal;color:var(--c,var(--gold));margin-right:.3em}
.jg-next .sub{font-size:.88rem;color:var(--text-mute);margin-top:4px}
.jg-next .cd{font-family:'Noto Serif KR',serif;font-size:2.5rem;font-weight:900;
  color:var(--c,var(--gold));line-height:1;margin:16px 0 2px;
  font-variant-numeric:tabular-nums}
.jg-next .when{font-size:.9rem;color:var(--text-dim)}

/* ── 계절 묶음 ── */
.jg-season{margin-top:52px}
.jg-shead{display:flex;align-items:baseline;gap:12px;padding-bottom:10px;
  border-bottom:1px solid var(--line-soft);margin-bottom:18px}
.jg-shead .dot{width:9px;height:9px;border-radius:50%;background:var(--c);flex:none}
.jg-shead h2{font-family:'Noto Serif KR',serif;font-size:1.3rem;font-weight:700;
  color:var(--head)}
.jg-shead .en{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-mute)}

.jg-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:14px}
.jg-card{position:relative;overflow:hidden;background:var(--jg-card);
  border:1px solid var(--line-soft);border-radius:14px;padding:18px 18px 16px;
  box-shadow:var(--jg-shadow);transition:transform .2s,box-shadow .2s}
.jg-card:hover{transform:translateY(-2px)}
.jg-card::before{content:attr(data-han);position:absolute;right:-6px;bottom:-26px;
  font-family:'Noto Serif KR',serif;font-size:7rem;font-weight:900;line-height:1;
  color:var(--c);opacity:.09;pointer-events:none}
.jg-card .top{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.jg-card .han{font-family:'Noto Serif KR',serif;font-size:1.5rem;font-weight:700;
  color:var(--c);line-height:1}
.jg-card .nm{font-size:1.02rem;font-weight:700;color:var(--head)}
.jg-card .rom{font-size:.72rem;color:var(--text-mute);letter-spacing:.06em;margin-left:auto}
.jg-card .dt{font-family:'Noto Serif KR',serif;font-size:1.28rem;font-weight:700;
  color:var(--head);font-variant-numeric:tabular-nums;margin-bottom:2px}
.jg-card .dt small{font-size:.74em;font-weight:400;color:var(--text-dim);margin-left:.35em}
.jg-card .txt{font-size:.86rem;line-height:1.65;color:var(--text-dim);margin-top:9px;
  position:relative}
.jg-card .tag{display:inline-block;margin-top:11px;padding:3px 9px;border-radius:999px;
  background:var(--cs);color:var(--c);font-size:.71rem;font-weight:600;letter-spacing:.03em}

/* ── 정밀 표 ── */
.jg-tablewrap{overflow-x:auto;border:1px solid var(--line-soft);border-radius:12px;
  background:var(--jg-card);box-shadow:var(--jg-shadow)}
table.jg-t{width:100%;border-collapse:collapse;font-size:.89rem;min-width:430px}
table.jg-t th{background:var(--sunken);color:var(--text-mute);font-weight:600;
  font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;
  text-align:left;padding:11px 14px;border-bottom:1px solid var(--line-soft);
  white-space:nowrap}
table.jg-t td{padding:11px 14px;border-bottom:1px solid var(--line-soft);
  color:var(--text-dim);white-space:nowrap}
table.jg-t tr:last-child td{border-bottom:0}
table.jg-t td.nm{color:var(--head);font-weight:600}
table.jg-t td.nm b{color:var(--c);font-family:'Noto Serif KR',serif;
  font-weight:700;margin-right:.35em}
table.jg-t td.tm{font-variant-numeric:tabular-nums;color:var(--head)}
table.jg-t td.op{color:var(--c);font-weight:600}
table.jg-t tr.jeol td{background:var(--cs)}

/* ── 연도 고르기 ── */
.jg-years{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.jg-years a{padding:7px 14px;border-radius:9px;border:1px solid var(--line-soft);
  background:var(--jg-card);color:var(--text-dim);font-size:.9rem;font-weight:500;
  text-decoration:none;font-variant-numeric:tabular-nums;transition:.16s}
.jg-years a:hover{border-color:var(--gold);color:var(--gold)}
.jg-years a.on{background:var(--gold);border-color:var(--gold);color:#fff;font-weight:700}
html[data-theme="dark"] .jg-years a.on{color:#0a0d12}

/* ── 글 묶음 ── */
.jg-prose{max-width:44rem;margin:0 auto}
.jg-prose h2{font-family:'Noto Serif KR',serif;font-size:1.32rem;font-weight:700;
  color:var(--head);margin:40px 0 12px;padding-left:12px;
  border-left:3px solid var(--gold)}
.jg-prose h3{font-size:1.02rem;font-weight:700;color:var(--gold-lt);margin:24px 0 8px}
html[data-theme="dark"] .jg-prose h3{color:var(--gold-lt)}
.jg-prose p{color:var(--text-dim);line-height:1.95;margin-bottom:14px}
.jg-prose strong{color:var(--head);font-weight:700}
.jg-prose a{color:var(--gold-lt);text-decoration:none;border-bottom:1px solid var(--gold-w2)}
.jg-prose a:hover{border-bottom-color:var(--gold)}
.jg-prose ul{margin:0 0 14px 1.1rem;color:var(--text-dim);line-height:1.9}

.jg-note{background:var(--gold-w1);border:1px solid var(--line);border-radius:12px;
  padding:18px 20px;margin:22px 0}
.jg-note .k{font-weight:700;color:var(--gold-lt);margin-bottom:7px;font-size:.95rem}
.jg-note p{margin-bottom:0;font-size:.92rem;line-height:1.85}

/* ── 띠 ── */
.jg-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:1px;background:var(--line-soft);border:1px solid var(--line-soft);
  border-radius:12px;overflow:hidden;margin:26px 0}
.jg-strip div{background:var(--jg-card);padding:15px 14px}
.jg-strip .n{font-family:'Noto Serif KR',serif;font-size:1.5rem;font-weight:900;
  color:var(--gold);line-height:1;margin-bottom:5px;font-variant-numeric:tabular-nums}
.jg-strip .l{font-size:.78rem;color:var(--text-mute);line-height:1.5}

.jg-cta{display:block;text-align:center;margin:40px auto 0;max-width:38rem;
  padding:20px;border-radius:14px;text-decoration:none;
  background:linear-gradient(135deg,var(--gold-w2),var(--gold-w1));
  border:1px solid var(--line);transition:.2s}
.jg-cta:hover{border-color:var(--gold)}
.jg-cta b{display:block;color:var(--head);font-size:1.06rem;margin-bottom:5px;font-weight:700}
.jg-cta span{color:var(--text-mute);font-size:.86rem}

.jg-foot-nav{display:flex;gap:10px;margin-top:34px;flex-wrap:wrap}
.jg-foot-nav a{flex:1 1 180px;padding:14px 16px;border-radius:12px;
  border:1px solid var(--line-soft);background:var(--jg-card);text-decoration:none;
  color:var(--head);font-weight:600;font-size:.94rem}
.jg-foot-nav a span{display:block;font-size:.72rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--text-mute);font-weight:500;margin-bottom:3px}
.jg-foot-nav a:hover{border-color:var(--gold)}

@media (max-width:420px){
  .jg{padding:0 14px 60px}
  .jg-hero{padding:32px 0 6px}
  .jg-card{padding:15px 15px 14px}
  .jg-card::before{font-size:5.6rem;bottom:-18px}
  .jg-next{padding:18px}
  .jg-next .cd{font-size:2.1rem}
}
