/* ─────────────────────────────────────────────
   aulir 공통 스타일
   색: 클로버 초록 + 연한 연두·크림 바탕
   모바일 우선, 본문 18px
   ───────────────────────────────────────────── */

:root {
  --green: #287b47;        /* 주 색 (버튼·강조) */
  --green-dark: #1f6238;   /* 버튼 누를 때 */
  --green-deep: #1d5233;   /* 제목 */
  --green-soft: #f0f5ee;   /* 연한 초록 칸 */
  --green-mist: #f5f9f2;   /* 결과 상자 바탕 */
  --cream: #fff9e8;
  --mint: #edf7e9;
  --ink: #26382b;          /* 본문 글자 */
  --muted: #56655a;        /* 보조 글자 (읽기 쉽게 진하게) */
  --line: #d6e0d4;         /* 테두리 */
  --card: #ffffff;
  --gold: #e8b84a;
  --error: #b52b2b;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(37, 75, 37, 0.08);
  --max: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo",
               "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(160deg, var(--mint) 0%, var(--cream) 100%);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 10;
  background: var(--card); padding: 8px 14px; border-radius: 8px;
}

/* ── 머리말 ───────────────────────────────── */
.site-head {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.site-head-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 800;
  font-size: 22px;
  min-height: 44px;
  white-space: nowrap;
}
.logo-mark { font-size: 26px; }

.gnb {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.gnb a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 6px 2px;
  border-radius: 12px;
  background: var(--green-soft);
  color: #3a5a43;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.gnb a span { font-size: 20px; }
.gnb a:hover { background: #e3eee0; }
.gnb a[aria-current="page"] {
  background: var(--green);
  color: #fff;
}
.gnb .gnb-board { background: #fdf3d6; color: #6b5414; }

@media (min-width: 640px) {
  .site-head {          /* 넓은 화면에서만 위에 붙어 다니게 */
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(6px);
  }
  .tool #result { scroll-margin-top: 90px; }
  .site-head-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .gnb { display: flex; margin-top: 0; }
  .gnb a {
    flex-direction: row;
    gap: 4px;
    min-height: 46px;
    padding: 6px 12px;
    font-size: 16px;
  }
  .gnb a span { font-size: 17px; }
}

/* ── 본문 틀 ──────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.page-head {
  text-align: center;
  padding: 12px 4px 8px;
}
.page-icon { font-size: 52px; line-height: 1.2; }

h1, h2, h3 { color: var(--green-deep); line-height: 1.4; }
h1 { font-size: 30px; margin: 6px 0 10px; }
h2 { font-size: 24px; margin: 44px 0 14px; }
h3 { font-size: 20px; margin: 30px 0 10px; }

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto;
  max-width: 34em;
}

@media (min-width: 640px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

/* ── 카드 ─────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: 22px;
  padding: 24px 18px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
@media (min-width: 640px) { .card { padding: 30px; } }

.card > h2:first-child { margin-top: 0; }

/* ── 글 본문 ──────────────────────────────── */
.article {
  background: var(--card);
  border-radius: 22px;
  padding: 26px 18px;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
@media (min-width: 640px) { .article { padding: 34px 38px; } }

.article > h2:first-child { margin-top: 0; }
.article p { margin: 0 0 1.1em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.4em; }
.article strong { color: var(--green-deep); }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 17px;
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 10px 8px;
  text-align: center;
}
.article th { background: var(--green-soft); }

.meta { color: var(--muted); font-size: 16px; margin: 0 0 12px; }

.notice {
  background: #fdf6e3;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 17px;
  color: #5a4a1c;
}

.tip {
  background: var(--green-mist);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ── 버튼 ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 12px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-full { width: 100%; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-line { background: #fff; color: var(--green); border-color: #cbdcca; }
.btn-line:hover { background: var(--green-soft); }

.back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 0;
}

/* ── 광고 상자 ────────────────────────────── */
.ad-box {
  margin: 34px 0;
  min-height: 100px;
  text-align: center;
}

/* ── 첫 화면 ──────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}
@media (min-width: 560px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

.menu-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
}
.menu-card:hover { border-color: #b9d5bd; transform: translateY(-2px); color: var(--ink); }
.menu-card .mc-icon { font-size: 40px; line-height: 1.2; }
.menu-card h2 { margin: 6px 0 4px; font-size: 22px; }
.menu-card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.menu-card .mc-go { display: inline-block; margin-top: 10px; color: var(--green); font-weight: 700; }

.board-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fdf3d6;
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: #5a4a1c;
  margin: 24px 0;
}
.board-banner .bb-icon { font-size: 36px; }
.board-banner strong { display: block; color: #4a3b10; font-size: 19px; }

/* ── 로또 도구 ────────────────────────────── */
.tool label,
.tool .field-title {
  display: block;
  margin: 20px 0 8px;
  font-weight: 700;
  font-size: 18px;
}
.tool .opt { color: var(--muted); font-weight: 400; font-size: 16px; }

.tool input,
.tool select {
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  font: inherit;
  font-size: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.date-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
}
.date-row input { min-width: 0; }

.choice-row {
  display: flex;
  gap: 8px;
}
.choice-row button {
  flex: 1;
  min-height: 52px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  background: var(--green-soft);
  color: #42614a;
  border: 1px solid var(--line);
  cursor: pointer;
}
.choice-row button.active,
.choice-row button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-weight: 700;
  cursor: pointer;
}
.tool .check-row input {
  width: 26px;
  min-height: 26px;
  height: 26px;
  accent-color: var(--green);
  margin: 0;
}

.help { font-size: 16px; color: var(--muted); margin: 6px 0 0; line-height: 1.6; }

.hidden { display: none !important; }

.tool .btn-primary { margin-top: 28px; }

#result { margin-top: 26px; scroll-margin-top: 16px; }

.result-card {
  background: var(--green-mist);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
}
.result-card h2 { margin: 0 0 4px; font-size: 22px; }
.result-date { font-size: 16px; color: var(--muted); margin: 0; }

.line {
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  margin: 12px 0;
}
.line-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.balls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}
.ball.fav { outline: 3px solid var(--green); outline-offset: 1px; }
.b1 { background: #f7cf52; }   /* 1~10 노랑 */
.b2 { background: #78b8ee; }   /* 11~20 파랑 */
.b3 { background: #f18b76; }   /* 21~30 빨강 */
.b4 { background: #b6b6c5; }   /* 31~40 회색 */
.b5 { background: #8bcca0; }   /* 41~45 초록 */

.plus { font-weight: 800; color: var(--muted); padding: 0 2px; }

.message {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
}

.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.error {
  color: var(--error);
  font-weight: 700;
  text-align: center;
}

.ball-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  list-style: none;
  padding: 0 !important;
}
.ball-legend li { display: flex; align-items: center; gap: 8px; }
.ball-legend .ball { width: 34px; height: 34px; font-size: 14px; }

/* 휴대폰: 번호 6개 + 보너스가 한 줄에 들어가도록 */
@media (max-width: 480px) {
  .result-card { padding: 18px 8px; }
  .line { padding: 10px 4px; }
  .line .balls { gap: 4px; }
  .line .ball { width: 35px; height: 35px; font-size: 16px; }
  .plus { padding: 0; }
}
@media (max-width: 360px) {
  .line .ball { width: 31px; height: 31px; font-size: 14px; }
  .gnb a { font-size: 13px; }
}

/* ── 꼬리말 ───────────────────────────────── */
.site-foot {
  background: #fff;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.site-foot-in {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 16px 34px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
}
.foot-links a {
  display: inline-block;
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 600;
}
.foot-note { line-height: 1.7; margin: 12px 0 6px; }
.foot-copy { margin: 0; }

/* ── 사주보기 ─────────────────────────────── */
.result-anchor { scroll-margin-top: 16px; }
@media (min-width: 640px) { .tool .result-anchor { scroll-margin-top: 90px; } }

.saju-result { text-align: left; padding: 22px 14px; }
@media (min-width: 640px) { .saju-result { padding: 28px 26px; } }

.saju-summary { text-align: center; }
.saju-summary h2 { margin: 0 0 6px; }

.saju-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 6px;
}
.saju-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-deep);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.saju-sec {
  background: #fff;
  border-radius: 16px;
  padding: 18px 14px;
  margin-top: 16px;
  scroll-margin-top: 16px;
}
@media (min-width: 640px) { .saju-sec { padding: 22px 22px; scroll-margin-top: 90px; } }
.saju-sec h3 { margin: 0 0 12px; font-size: 21px; }
.saju-sec h4 { margin: 0 0 6px; font-size: 18px; color: var(--green-deep); line-height: 1.5; }
.saju-sec p { margin: 0 0 10px; }

/* 사주표 */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}
.pillar {
  background: var(--green-mist);
  border-radius: 12px;
  padding: 8px 4px;
}
.pillar.is-me { background: #fdf3d6; box-shadow: inset 0 0 0 2px var(--gold); }
.p-name { font-weight: 800; color: var(--green-deep); font-size: 17px; line-height: 1.3; }
.p-sub { font-size: 13px; color: var(--muted); line-height: 1.3; margin-bottom: 4px; }
.p-god { font-size: 14px; font-weight: 700; color: #4a5a4e; line-height: 1.4; min-height: 1.4em; }

.gz {
  border-radius: 10px;
  margin: 4px 0;
  padding: 6px 2px 4px;
  line-height: 1.1;
}
.gz b { display: block; font-size: 30px; font-weight: 800; font-family: "Noto Serif KR", "Batang", serif; }
.gz small { display: block; font-size: 13px; margin-top: 3px; }
.gz.unknown { background: #eee; color: #999; font-size: 30px; font-weight: 800; padding: 10px 2px; }

.el-wood  { background: #4f9d5d; color: #fff; }
.el-fire  { background: #e0614a; color: #fff; }
.el-earth { background: #e8b84a; color: #3d2f0a; }
.el-metal { background: #c9cdd2; color: #2d3136; }
.el-water { background: #33506f; color: #fff; }

.me-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--green-mist);
  border-left: 5px solid var(--gold);
}
.me-box p { margin: 0; }

/* 오행 막대 */
.five-bars { display: grid; gap: 10px; margin-bottom: 14px; }
.five-row {
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.five-name { font-weight: 700; }
.five-track { background: #eef2ec; height: 18px; border-radius: 999px; overflow: hidden; }
.five-fill { display: block; height: 100%; border-radius: 999px; min-width: 0; }
.five-num { text-align: right; font-weight: 700; }

.lucky {
  background: #fdf6e3;
  border-radius: 12px;
  padding: 14px 16px;
}
.lucky ul { margin: 0; padding-left: 1.2em; }

/* 운세 카드 */
.luck-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 6px;
  margin-top: 12px;
}
.luck-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.luck-top h4 { margin: 0; }
.stars { color: #e3a21a; font-size: 20px; letter-spacing: 1px; white-space: nowrap; }
.luck-sub { font-size: 15px; color: var(--muted); margin: 2px 0 8px !important; line-height: 1.5; }
.luck-note {
  font-size: 16px;
  background: var(--green-mist);
  border-radius: 8px;
  padding: 8px 12px;
}
.luck-areas { list-style: none; padding: 0; margin: 4px 0 10px; }
.luck-areas li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 17px; line-height: 1.6; }
.good-days {
  font-size: 16px;
  font-weight: 700;
  color: #5a4a1c;
  background: #fdf6e3;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px !important;
}

/* 대운 */
.daeun {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
  text-align: center;
}
.daeun-item {
  background: var(--green-mist);
  border-radius: 12px;
  padding: 10px 4px;
  line-height: 1.4;
}
.daeun-item.now { background: var(--green); color: #fff; }
.daeun-item.now .dy-hj, .daeun-item.now .dy-year, .daeun-item.now .dy-age { color: #e6f3e8; }
.dy-age { font-size: 14px; color: var(--muted); }
.dy-gz { font-size: 20px; font-weight: 800; }
.dy-hj { font-size: 15px; color: var(--muted); }
.dy-god { font-size: 14px; font-weight: 700; }
.dy-year { font-size: 13px; color: var(--muted); }

/* 별자리 */
.star-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.star-sym {
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #33506f; color: #fff;
  font-size: 30px;
}
.star-head strong { font-size: 20px; color: var(--green-deep); }

.saju-result > .notice { margin: 18px 0 0; }

@media (max-width: 380px) {
  .gz b { font-size: 24px; }
  .five-row { grid-template-columns: 82px 1fr 36px; font-size: 15px; }
}

/* 휴대폰에서 사주 결과를 넓게 */
@media (max-width: 480px) {
  .card.tool { padding: 20px 12px; }
  .saju-result { padding: 16px 6px; }
  .saju-sec { padding: 16px 12px; }
  .saju-nav { gap: 6px; }
  .saju-nav a { padding: 6px 11px; font-size: 15px; }
  .p-sub { display: none; }
  .pillars { gap: 4px; }
  .me-box { padding: 12px; }
}
@media (max-width: 480px) {
  .saju-sec { padding: 16px 10px; }
  .luck-card { padding: 12px 12px 4px; }
}

/* ── 원하는 날의 운세 ─────────────────────── */
.pick-box {
  background: var(--green-mist);
  border-radius: 14px;
  padding: 4px 14px 16px;
}
.pick-box .btn-primary { margin-top: 18px; }
.chip-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 560px) { .chip-row { grid-template-columns: repeat(3, 1fr); } }
.chip-row button {
  min-height: 50px;
  padding: 6px 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  background: #fff;
  color: #42614a;
  border: 1px solid var(--line);
  cursor: pointer;
}
.chip-row button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.pick-out { scroll-margin-top: 16px; }
.good-list {
  margin-top: 16px;
  background: #fdf6e3;
  border-radius: 12px;
  padding: 14px 14px 6px;
}
.good-list ul { list-style: none; padding: 0; margin: 8px 0; }
.good-list li { margin-bottom: 6px; }
.link-btn {
  width: 100%;
  min-height: 48px;
  text-align: left;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-deep);
  background: #fff;
  border: 1px solid #ecdcae;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.link-btn:hover { background: #fffaf0; }

/* ── 꿈해몽 ───────────────────────────────── */
.tool textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  font: inherit;
  font-size: 18px;
  line-height: 1.6;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.tool form .btn-primary { margin-top: 16px; }
.dream-chips { margin-top: 4px; }

.dream-result { text-align: left; }
.dream-result h2 { text-align: center; margin: 0 0 6px; }
.dream-quote {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 12px;
}
.dream-tags { font-size: 16px; color: var(--muted); }
.tag {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  margin: 2px 4px 2px 0;
  font-weight: 700;
  font-size: 15px;
}
.dream-hit {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px 4px;
  margin-top: 12px;
}
.dream-hit h3 { margin: 0 0 6px; font-size: 20px; }
.dream-hit p { margin: 0 0 10px; }
.dream-act {
  background: #fdf6e3;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
}
.dream-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dream-links .btn { min-height: 48px; font-size: 16px; padding: 8px 14px; }
.more-link { font-weight: 700; }
.dream-result > .notice { margin-top: 16px; }

.cat-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 26px 0 8px;
}
@media (min-width: 560px) { .cat-nav { grid-template-columns: repeat(4, 1fr); } }
.cat-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 700;
  color: var(--green-deep);
}

.dream-cat { scroll-margin-top: 16px; }
@media (min-width: 640px) { .dream-cat, .dream-item { scroll-margin-top: 90px; } }
.dream-cat > h2 { margin-top: 40px; }
.dream-item {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 8px;
  margin: 12px 0;
  box-shadow: 0 4px 16px rgba(37, 75, 37, 0.06);
  scroll-margin-top: 16px;
}
.dream-item h3 { margin: 0 0 6px; font-size: 20px; }
.dream-item p { margin: 0 0 10px; }
.dream-item ul { margin: 0 0 10px; padding-left: 1.2em; }
.dream-item li { margin-bottom: 4px; }
.dream-item:target { box-shadow: 0 0 0 3px var(--gold); }

.post-list { padding-left: 1.2em; margin: 0; }
.post-list li { margin-bottom: 8px; }

/* ── 불교이야기 글 목록 (가로 2 × 세로 3) ─────── */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0 10px;
  scroll-margin-top: 16px;
}
@media (min-width: 640px) {
  .post-grid { grid-template-columns: 1fr 1fr; gap: 24px; scroll-margin-top: 90px; }
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
  background: #fff;
  border: 1px solid #e3dccb;
  border-top: 3px solid #a8862a;
  padding: 26px 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s, transform .15s;
}
.post-card:hover {
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(90, 74, 28, 0.12);
  transform: translateY(-2px);
}
.post-card[hidden] { display: none; }
.pc-date { color: #a8862a; font-weight: 700; font-size: 16px; }
.pc-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  color: #2b2a24;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
}
.pc-desc { color: #5d5a50; font-size: 17px; line-height: 1.7; }

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 10px;
}
.pager button {
  min-width: 48px;
  min-height: 48px;
  padding: 0 10px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-deep);
  cursor: pointer;
}
.pager button.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.pager button:disabled { opacity: .35; cursor: default; }

.topic {
  display: inline-block;
  background: #f6efdc;
  color: #7a6220;
  border-radius: 999px;
  padding: 0 10px;
  font-weight: 700;
}
