/* === 사주쌤 60갑자 일주 사전 (/ilju/ & /ilju/<slug>/) === */
.ss-ij-page { max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 14px 4px 36px; color: #182131; }
.ss-ij-eyebrow { display: block; font-size: 12px; font-weight: 800; color: #8b6a3e; margin-bottom: 5px; }
.ss-ij-hero {
  padding: 26px 24px; border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border: 1px solid #e5dfd4; margin-bottom: 18px;
}
.ss-ij-hero h1 { margin: 0 0 10px; font-family: 'Gowun Batang', Georgia, serif; font-size: 27px; line-height: 1.38; color: #182131; word-break: keep-all; text-wrap: balance; }
.ss-ij-lead { margin: 0 0 16px; font-size: 14.5px; line-height: 1.72; color: #364050; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.ss-ij-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 12px; background: #182131; color: #f8f5ef; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.ss-ij-btn-primary:hover { background: #26354d; }
.ss-ij-btn-soft {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 12px; background: #ffffff; border: 1px solid #d5cab7; color: #182131; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.ss-ij-btn-soft:hover { background: #f2ece0; }

.ss-ij-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.ss-ij-tab {
  padding: 8px 14px; border-radius: 999px; border: 1px solid #dfd8ca; background: #ffffff;
  color: #3f4959; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: all .18s cubic-bezier(0.22,1,0.36,1);
}
.ss-ij-tab:hover { border-color: #8b6a3e; color: #182131; }
.ss-ij-tab.is-active { background: #182131; border-color: #182131; color: #f8f5ef; }

.ss-ij-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.ss-ij-card {
  display: flex; flex-direction: column; padding: 14px 14px 15px; border-radius: 15px;
  background: #ffffff; border: 1px solid #e5dfd4; text-decoration: none; color: #182131;
  transition: transform .22s cubic-bezier(0.22,1,0.36,1), border-color .2s ease, box-shadow .2s ease;
}
.ss-ij-card:hover { transform: translateY(-2px); border-color: #8b6a3e; box-shadow: 0 8px 20px rgba(24,33,49,.07); }
.ss-ij-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ss-ij-num { font-size: 11.5px; font-weight: 700; color: #555e6d; }
.ss-ij-el-pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f2ece0; color: #6e5028; }
.ss-ij-el-목 .ss-ij-el-pill { background: #edf5f0; color: #2b664b; }
.ss-ij-el-화 .ss-ij-el-pill { background: #fbf0ee; color: #b24337; }
.ss-ij-el-토 .ss-ij-el-pill { background: #f8f1e1; color: #946622; }
.ss-ij-el-금 .ss-ij-el-pill { background: #f0f2f6; color: #4a576b; }
.ss-ij-el-수 .ss-ij-el-pill { background: #ecf2f8; color: #28537a; }
.ss-ij-hanja { font-family: 'Gowun Batang', Georgia, serif; font-size: 26px; font-weight: 700; color: #182131; line-height: 1.2; margin-bottom: 4px; }
.ss-ij-name { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.ss-ij-sub { font-size: 12.5px; line-height: 1.48; color: #4b5565; word-break: keep-all; }

.ss-ij-bc { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; color: #545d6c; margin-bottom: 14px; }
.ss-ij-bc a { color: #3d4654; text-decoration: none; }
.ss-ij-bc a:hover { text-decoration: underline; }
.ss-ij-detail-hero {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 24px; border-radius: 20px; background: #ffffff; border: 1px solid #e5dfd4; margin-bottom: 18px;
}
.ss-ij-pillar-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 22px 14px; border-radius: 16px; background: #182131; color: #f8f5ef; text-align: center;
}
.ss-ij-big-hanja { font-family: 'Gowun Batang', Georgia, serif; font-size: 46px; font-weight: 700; letter-spacing: .06em; line-height: 1.1; }
.ss-ij-pillar-badge small { font-size: 12.5px; color: #f2dfb8; font-weight: 700; }
.ss-ij-detail-head h1 { margin: 0 0 8px; font-family: 'Gowun Batang', Georgia, serif; font-size: 24px; line-height: 1.38; word-break: keep-all; text-wrap: balance; }
.ss-ij-tagline { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: #364050; word-break: keep-all; text-wrap: pretty; }
.ss-ij-qchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.ss-ij-qchip {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px;
  background: #f8f5ef; border: 1px solid #dfd3bd; color: #4d3b21; font-size: 12.5px; font-weight: 700;
  word-break: keep-all;
}
.ss-ij-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ss-ij-specs > div { padding: 10px 12px; border-radius: 11px; background: #f8f5ef; border: 1px solid #ebe4d7; }
.ss-ij-specs span { display: block; font-size: 11.5px; font-weight: 700; color: #7a5c32; margin-bottom: 3px; }
.ss-ij-specs strong { font-size: 13.5px; color: #182131; word-break: keep-all; }

.ss-ij-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ss-ij-sec { padding: 19px 20px; border-radius: 16px; background: #ffffff; border: 1px solid #e5dfd4; }
.ss-ij-sec h2 { margin: 0 0 10px; font-family: 'Gowun Batang', Georgia, serif; font-size: 18px; color: #182131; line-height: 1.38; word-break: keep-all; }
.ss-ij-sec p { margin: 0; font-size: 14.5px; line-height: 1.76; color: #242e3e; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.ss-ij-sec p + p { margin-top: 10px; }
.ss-ij-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.68; color: #242e3e; word-break: keep-all; overflow-wrap: break-word; text-wrap: pretty; }
.ss-ij-safety { padding: 15px 18px; border-radius: 14px; background: #f8f5ef; border: 1px solid #e5dfd4; margin-bottom: 16px; }
.ss-ij-safety strong { display: block; font-size: 13px; color: #7a5c32; margin-bottom: 4px; }
.ss-ij-safety p { margin: 0; font-size: 13.5px; line-height: 1.66; color: #3f4959; word-break: keep-all; text-wrap: pretty; }

.ss-ij-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, #f8f5ef 0%, #f2ece0 100%);
  border: 1px solid #dfd5c2; margin-bottom: 20px;
}
.ss-ij-cta h2 { margin: 0 0 6px; font-family: 'Gowun Batang', Georgia, serif; font-size: 19.5px; word-break: keep-all; text-wrap: balance; }
.ss-ij-cta p { margin: 0; font-size: 14px; line-height: 1.64; color: #3a4454; word-break: keep-all; text-wrap: pretty; }
.ss-ij-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.ss-ij-peers h3 { margin: 0 0 10px; font-size: 15.5px; font-weight: 800; color: #182131; }
.ss-ij-peer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.ss-ij-peer {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px;
  background: #ffffff; border: 1px solid #e5dfd4; text-decoration: none; color: #182131;
}
.ss-ij-peer:hover { border-color: #8b6a3e; background: #faf7f0; }
.ss-ij-peer strong { font-size: 13.5px; }
.ss-ij-peer span { font-size: 12px; color: #4b5565; word-break: keep-all; }

.ss-ij-pager { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ss-ij-page-link {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; border-radius: 12px;
  background: #ffffff; border: 1px solid #e5dfd4; text-decoration: none; color: #182131;
}
.ss-ij-page-link:hover { border-color: #8b6a3e; }
.ss-ij-page-link span { font-size: 11.5px; color: #7a5c32; font-weight: 700; }
.ss-ij-page-link strong { font-size: 14px; }
.ss-ij-page-link.is-center { text-align: center; background: #f8f5ef; }
.ss-ij-page-link.is-right { text-align: right; }

@media (min-width: 1024px) {
  html.ss-right-open body.user-body .app-main:has(.ss-ij-page) {
    padding-right: calc(var(--ss-right-rail, 54px) + var(--ss-panel-w, 304px));
  }
}
@media (max-width: 820px) {
  .ss-ij-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-ij-detail-hero, .ss-ij-sections { grid-template-columns: 1fr; }
  .ss-ij-peer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-ij-pager { grid-template-columns: 1fr; }
  .ss-ij-page-link.is-right { text-align: left; }
}
