/* 길해의 글 — 홈페이지 안에서 바로 읽는 콘텐츠 스타일 */

.article-list-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.article-list-hero h1 {
    margin-top: 0.5rem;
}

.article-not-found {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(220, 80, 80, 0.08);
    color: #a33;
    display: inline-block;
}

.article-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6b4fa0;
    background: rgba(107, 79, 160, 0.1);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.6rem;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card h3 a:hover {
    text-decoration: underline;
}

.article-card p {
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.article-card-meta span {
    font-size: 0.85rem;
    color: #888;
}

/* 글 읽기 화면 */
.article-reader {
    max-width: 720px;
    margin: 0 auto;
}

.article-reader h1 {
    margin-top: 0.4rem;
    line-height: 1.4;
}

.article-summary {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    border-left: 3px solid rgba(107, 79, 160, 0.4);
    padding-left: 1rem;
    margin: 1rem 0;
}

.article-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 1.4rem;
    word-break: keep-all;
}

.article-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.article-cta p {
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-related {
    margin-top: 1rem;
}

/* ── 원문에서 가져온 블록들 ───────────────────────── */
.article-figure {
  margin: 2.4rem 0;
}
.article-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
}
.article-figure figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.article-quote {
  margin: 2rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text);
  white-space: pre-line;
}

.article-hr {
  margin: 2.6rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.article-inline-link a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.article-source {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--muted);
}
.article-source a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.article-source a:hover { color: var(--accent); }

/* ── 원문의 사주 표 ────────────────────────────────
   칸 배경색이 오행을 뜻하므로 원문 색을 그대로 씁니다. */
.article-table-wrap {
  margin: 2.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 320px;
}
.article-table td {
  height: 52px;
  padding: .4rem .3rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
/* 배경색이 채워진 칸은 흰 글씨 */
.article-table td.filled {
  color: #fff;
  border-color: rgba(0, 0, 0, .18);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
}

@media (max-width: 640px) {
  .article-table td { height: 44px; font-size: 1.15rem; }
}
