:root {
  --cream: #FFF9F0;
  --cream-deep: #FBF0DC;
  --orange: #E8812B;
  --orange-deep: #C96A28;
  --green: #1E7A46;
  --ink: #3A2A20;
  --ink-soft: #8A7568;
  --card: #FFFFFF;
  --line: #EDDFC9;
  --peach: #FDEEDD;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { font-size: 110%; } /* 기본 글꼴 10% 확대 (2026-11-05 5% + 2026-11-06 5% 추가) — rem 단위 전체 적용 */

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.8;
  font-size: 17.64px;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 히어로: 대형 라운드 카드 */
.hero-card {
  margin: 32px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(to top right, rgba(255,249,240,.93) 0%, rgba(255,249,240,.58) 45%, rgba(255,249,240,0) 72%), url('hero-bg.webp') 70% center/cover;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-shadow: 0 12px 40px rgba(58,42,32,.18);
}

.hero-inner {
  padding: 34px 40px;
  max-width: 540px;
  text-align: left;
}

.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #9A5410;
  background: rgba(255,255,255,.55);
  border: 1.5px solid rgba(154,84,16,.5);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 14px;
}

.hero-card h1 {
  margin: 0 0 10px;
  color: #33231A;
  word-break: keep-all;
  text-wrap: balance;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-shadow: 0 1px 12px rgba(255,249,240,.95), 0 0 4px rgba(255,249,240,.9);
}

.hero-card h1 .accent { color: #1E7A46; font-size: 1.05em; }
.nb { white-space: nowrap; }

.hero-sub {
  margin: 0 0 18px;
  color: rgba(58,42,32,.92);
  font-weight: 600;
  word-break: keep-all;
  text-wrap: balance;
  font-size: .93rem;
  line-height: 1.65;
  text-shadow: 0 1px 10px rgba(255,249,240,.95), 0 0 4px rgba(255,249,240,.9);
}

/* Louie's Life 미니 로고 */
.logo-mini {
  position: absolute;
  bottom: 74px;
  right: 16px;
  z-index: 3;
  display: inline-block;
  vertical-align: middle;
  width: 46px;
  height: 46px;
  margin-right: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.logo-mini[hidden] { display: none; }
.logo-mini video, .logo-mini img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-mini video[hidden], .logo-mini img[hidden] { display: none; }

.hero-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  /* 모바일에서 길어 두 줄이 될 때 단어 중간이 끊기지 않게 (2026-11-01 사용자 지적 — '신앙생활'이 '신/앙생활'로 끊기던 문제).
     세로 화면에서는 부모(.hero-inner)가 오른쪽 정렬이라 둘째 줄이 오른쪽에 붙어 어색해 보였으므로, pill 안 텍스트는 가운데 정렬한다. */
  word-break: keep-all;
  text-align: center;
}

#next-episode-text {
  text-wrap: balance;
}

.hero-next .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* 방문 통계 */
.visit-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 12px 20px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.visit-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.visit-label {
  font-size: 15.77px;
  font-weight: 800;
  color: var(--ink-soft);
}

.visit-num {
  font-size: 24.26px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
}

.visit-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.visit-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

/* 오늘 방문 마일스톤 배지 (2026-11-07): 1,000회부터 500회 단위 도달 시 표시.
   폭죽을 이미 본 기기에서도 마일스톤 도달 상태는 계속 보여준다. */
.visit-milestone {
  width: 100%;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--orange-deep);
  background: var(--peach);
  border: 1px solid #E8C87A;
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 4px;
}

.visit-note {
  text-align: center;
  font-size: 17.37px;
  color: var(--ink-soft);
}

.visit-notice-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.visit-notice-btn:hover { background: var(--green); color: #fff; }

/* 방문 카드 안 공지사항 버튼 (2026-11-03 사용자 지시 — 카드 안 감사 문구 옆으로 이동) */

/* 방문 통계 모바일 (2026-10-27): 좁은 화면에서 세 통계가 한 줄에 들어가도록
   각 통계의 라벨을 숫자 위로 올려 여유 있게 배치한다. 가로로 나란히 두면
   360px 화면에서 366px이 필요해 함께한 지가 두 번째 줄로 떨어졌던 문제. */
@media (max-width: 480px) {
  .visit-stats {
    gap: 14px;
    padding: 10px 12px 8px;
  }
  .visit-stat {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.3;
  }
  .visit-label {
    font-size: 14.55px;
  }
  .visit-num {
    font-size: 22.05px;
  }
  .visit-sep {
    height: 30px;
  }
  .visit-foot {
    margin-top: 6px;
  }
  .visit-milestone {
    font-size: 16px;
  }
  .visit-note {
    font-size: 16.67px;
  }
}

/* 광고 영역 */
.ad-slot { margin: 40px 0; }

.ad-slot span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100px;
  border: 2px dashed var(--line);
  border-radius: 16px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 14.33px;
  letter-spacing: 4px;
}

.ad-badge {
  font-size: 11.03px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--ink-soft);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
}

/* 블레싱 2026 광고판 (2026-10-27 서비스 차원 시범 — 보드 전체 클릭 시 외부 초대장 페이지로 이동) */
.ad-board-wrap { margin: 40px 0; border-radius: 20px; background: linear-gradient(135deg, #FF9A3D, #E8812B 55%, #C96A28); box-shadow: 0 8px 24px rgba(232,129,43,.35); overflow: hidden; }
.ad-board { display: block; padding: 30px 24px 8px; color: #fff; text-align: center; text-decoration: none; word-break: keep-all; }
.ad-inquiry-row { padding: 10px 24px 20px; text-align: center; }
.ad-inquiry-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.75); background: rgba(255,255,255,.16); color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
.ad-board-tag { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: 2px; background: rgba(255,255,255,.22); border-radius: 999px; padding: 4px 14px; }
.ad-board-title { display: block; margin: 14px 0 8px; font-size: 1.45rem; font-weight: 800; line-height: 1.4; }
.ad-board-dates { display: block; font-size: .92rem; line-height: 1.7; opacity: .94; }
.ad-board-note { display: block; margin-top: 8px; font-size: .82rem; opacity: .8; }
.ad-board-btn { display: inline-block; margin-top: 16px; padding: 10px 26px; border-radius: 999px; background: #fff; color: #C96A28; font-weight: 800; font-size: .95rem; }
.ad-board-contact { display: block; margin-top: 14px; font-size: .78rem; opacity: .75; }
.ad-board:active { transform: scale(.99); }

/* 광고판: 모바일 세로 화면에서는 높이를 줄여 compact하게 (2026-10-27) */
@media (max-width: 860px) and (orientation: portrait) {
  .ad-board { padding: 20px 20px 4px; }
  .ad-board-title { margin: 10px 0 6px; font-size: 1.25rem; }
  .ad-board-dates { line-height: 1.6; }
  .ad-board-note { margin-top: 6px; }
  .ad-board-btn { margin-top: 12px; padding: 9px 22px; }
  .ad-board-contact { margin-top: 10px; }
  .ad-inquiry-row { padding: 8px 20px 14px; }
  .ad-inquiry-btn { padding: 6px 16px; }
}

/* 섹션 공통 */
section.block { margin: 44px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.section-head .hint {
  font-size: .9rem;
  color: var(--ink-soft);
}

/* 시리즈 카드 2열 (2×2) */
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 성경 웹툰 서가 라벨 (편 묶음) */
.shelf-label {
  grid-column: 1 / -1;
  font-size: 1.08rem;
  font-weight: 800;
  color: #5b4632;
  margin: 4px 0 -6px;
}

.shelf-label span {
  font-size: .88rem;
  font-weight: 600;
  color: #a08b76;
  margin-left: 6px;
}

.series-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(58,42,32,.07);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.series-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(58,42,32,.12);
}

.series-card .thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70.56px;
}

.series-card .thumb.psalm { background-image: url('/thumb-psalm.jpg'); background-position: center 38%; }
.series-card .thumb.bible { background-image: url('/thumb-bible.jpg'); background-position: center 60%; }
.series-card .thumb.exodus { background-image: url('/thumb-exodus2.jpg'); background-position: center 30%; }
.series-card .thumb.bizeng { background-image: url('/thumb-bizeng.jpg'); background-position: center 35%; }
.series-card .thumb.couple { background-image: url('/thumb-couple.jpg'); background-position: center 8%; }
.series-card .thumb.proverbs { background-image: url('/thumb-proverbs.jpg'); background-position: center 45%; }
.series-card .thumb.second-life { background-image: url('/thumb-second-life.jpg'); }
.series-card .thumb.prayer { background-image: url('/thumb-prayer.jpg'); }

/* 모바일 썸네일 (2026-10-27): 모바일에서는 축소본을 받아 로딩을 줄인다.
   썸네일은 CSS 배경이라 lazy/srcset이 안 먹히므로, 미디어 쿼리로 이미지를 교체한다.
   잠언은 가로로 넓은 원본이라 너비 1200px본, 나머지는 너비 800px본. */
@media (max-width: 860px) {
  .series-card .thumb.psalm { background-image: url('/thumb-psalm-m.jpg?v=20261101'); }
  .series-card .thumb.bible { background-image: url('/thumb-bible-m.jpg?v=20261101'); }
  .series-card .thumb.exodus { background-image: url('/thumb-exodus2-m.jpg?v=20261101'); }
  .series-card .thumb.bizeng { background-image: url('/thumb-bizeng-m.jpg?v=20261101'); }
  .series-card .thumb.couple { background-image: url('/thumb-couple-m.jpg?v=20261101'); }
  .series-card .thumb.proverbs { background-image: url('/thumb-proverbs-m.jpg?v=20261101'); }
  .series-card .thumb.second-life { background-image: url('/thumb-second-life-m.jpg?v=20261101'); }
  .series-card .thumb.prayer { background-image: url('/thumb-prayer-m.jpg?v=20261103'); }
}

/* PC 썸네일 높이 (2026-10-28): PC는 2열 카드라 썸네일 박스가 가로로 넓어
   세로 이미지가 위아래로 크게 잘렸다(180px 기준 세로 28%만 노출 — 시편 지우 얼굴
   하단 잘림, 출애굽기 서준 턱 잘림). PC에서만 높이를 280px로 키워 노출 범위를
   43%까지 넓힌다. 위치(%)는 그대로라 기존에 보이던 내용은 모두 그대로 보인다.
   모바일은 180px 유지 (모바일에서는 얼굴이 잘 보인다는 확인이 있음). */
@media (min-width: 861px) {
  .series-card .thumb { height: 280px; }
}

.series-card .body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }

.tag-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.tag {
  font-size: .897rem;
  font-weight: 700;
  background: var(--peach);
  color: var(--orange-deep);
  border-radius: 999px;
  padding: 4px 12px;
}

/* 11월 1일 연재 시작 알약 태그: 테두리만 가볍게 반짝임 (2026-10-28) */
.tag.launch-announce {
  border: 1.5px solid rgba(232,129,43,.35);
  animation: launch-border-pulse 2.4s ease-in-out infinite;
}

@keyframes launch-border-pulse {
  0%, 100% { border-color: rgba(232,129,43,.35); }
  50% { border-color: rgba(232,129,43,1); }
}

@media (prefers-reduced-motion: reduce) {
  .tag.launch-announce { animation: none; border-color: var(--orange); }
}

/* 보러가기 버튼: 태그와 같은 알약 모양 + 회전하는 그라데이션 테두리 */
@property --tag-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.tag-go {
  font-size: .897rem;
  font-weight: 700;
  color: var(--orange-deep);
  text-decoration: none;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from var(--tag-angle), var(--orange), #FFD9A8, var(--orange-deep), var(--orange)) border-box;
  animation: tag-border-spin 2.8s linear infinite;
}

@keyframes tag-border-spin { to { --tag-angle: 360deg; } }

.tag-go:hover { color: var(--orange); }

a.tag-go.neon {
  background: linear-gradient(135deg, #FF9A3D, #E8812B 55%, #C96A28);
  color: #fff;
  border-color: #FFE3B3;
  animation: neon-blink 1.5s ease-in-out infinite;
}

a.tag-go.neon:hover { color: #fff; }

@keyframes neon-blink {
  0%, 100% { box-shadow: 0 0 5px rgba(232,129,43,.55), 0 0 12px rgba(232,129,43,.35), inset 0 0 6px rgba(255,255,255,.35); filter: brightness(1); }
  50% { box-shadow: 0 0 13px rgba(232,129,43,.95), 0 0 32px rgba(255,154,61,.75), inset 0 0 10px rgba(255,255,255,.55); filter: brightness(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .tag-go { animation: none; }
}

/* 1화부터 보기: 보러가기 옆의 조용한 보조 버튼 (2026-10-29) */
.tag-first {
  font-size: .897rem;
  font-weight: 700;
  color: var(--orange-deep);
  text-decoration: none;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1.5px solid rgba(232,129,43,.45);
  background: #fff;
}

.tag-first:hover { color: var(--orange); border-color: var(--orange); }

.series-card h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; }

.series-card .desc { margin: 0 0 16px; font-size: .95rem; color: var(--ink-soft); flex: 1; }

/* 회차 라벨 20% 확대 (2026-10-26) — 최신 회차·제목·소개 링크 간격 축소 (2026-11-06 사용자 지적: <p> 기본 위쪽 여백이 남아 벌어 보였음) */
.series-card .latest-label {
  font-size: .936rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin: 0 0 2px;
}


.series-card .latest-title { font-weight: 700; margin: 0 0 10px; }
/* 최신 회차 제목 링크 효과 (2026-10-26 전 시리즈 확대, 비즈영 제외 — 비즈영 제목은 링크가 아니라 plain 텍스트) */
.series-card .latest-title a { color: inherit; font-size: 110%; text-decoration: underline; text-underline-offset: 3px; }

/* 최신 회차 옆 쇼츠 버튼 (2026-10-27, 잠언 2화부터 — 최신 회차 제목 오른쪽에 표시) */
.series-card .latest-title .shorts-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 24px; padding: 3px 10px; border: 1.5px solid var(--orange); border-radius: 999px; background: #fff; color: var(--orange-deep); font-size: .8rem; line-height: 1.3; font-weight: 700; text-decoration: none; white-space: nowrap; vertical-align: middle; transform: translateY(-4px); }
.series-card .latest-title .shorts-btn:active { transform: translateY(-4px) scale(.95); }

/* 쇼츠 버튼 네온 (2026-10-27 — 새 쇼츠 발행 당일에만 반짝임, 보러가기 네온과 동일 효과) */
.series-card .latest-title .shorts-btn.neon { background: linear-gradient(135deg, #FF9A3D, #E8812B 55%, #C96A28); color: #fff; border-color: #FFE3B3; animation: neon-blink 2s ease-in-out infinite; }
.series-card .latest-title .shorts-btn.neon:hover { color: #fff; }



.series-card .go {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
}

.series-card .go:hover { color: var(--orange-deep); }

/* 커밍순: 따뜻한 스타일로 */
.coming-soon {
  background: linear-gradient(135deg, #FFF3E0 0%, var(--peach) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(58,42,32,.07);
}

.coming-soon-badge {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--orange-deep);
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  padding: 7px 20px;
  margin: 0 0 20px;
  background: rgba(255,255,255,.6);
}

.coming-soon h2 {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.coming-soon-hook {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 600;
}

.coming-soon-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.coming-soon-cta {
  font-size: .95rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin: 0 0 24px;
}

.coming-soon-subscribe {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(232,129,43,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.coming-soon-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,129,43,.45);
  background: var(--orange-deep);
}

/* 시리즈 상세 */
.series-detail {
  background: var(--card);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: 0 6px 24px rgba(58,42,32,.07);
  margin-bottom: 32px;
}

.series-detail h2 { margin: 0 0 6px; font-size: 1.6rem; font-weight: 800; }

.series-detail .series-tagline {
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 20px;
  font-size: 1.02rem;
}

.series-detail p { margin: 0 0 14px; }

.cta {
  display: inline-block;
  margin: 12px 0 24px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(232,129,43,.3);
}

.cta:hover { background: var(--orange-deep); }

details.eps { border-top: 1px solid var(--line); }

details.eps > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 4px;
  list-style: none;
}

details.eps > summary::-webkit-details-marker { display: none; }
details.eps > summary::before { content: "▸ "; color: var(--orange); }
details.eps[open] > summary::before { content: "▾ "; }

details.ep {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 8px 0;
  background: var(--cream);
}

details.ep > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 13px 18px;
  list-style: none;
}

details.ep > summary::-webkit-details-marker { display: none; }
details.ep > summary::before { content: "+ "; color: var(--orange); font-weight: 800; }
details.ep[open] > summary::before { content: "– "; }

details.ep p { padding: 0 18px 16px; margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* 연재 일정 */
.schedule-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 24px rgba(58,42,32,.07);
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-row:last-child { border-bottom: none; }

.schedule-time {
  font-weight: 800;
  color: var(--orange);
  font-size: 1.05rem;
  min-width: 200px;
}

.schedule-time .cap {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.schedule-desc { flex: 1; }

.schedule-badge {
  font-size: .8rem;
  font-weight: 700;
  background: var(--peach);
  color: var(--orange-deep);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}

/* 사이트 소개 */
.about-card {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.about-card h2 { margin: 28px 0 16px; font-size: 1.35rem; font-weight: 800; }
.about-card h2:first-of-type { margin-top: 0; }
.about-card p { margin: 0 0 14px; color: var(--ink); }
.about-card a { color: var(--orange-deep); }
.about-card a.cta, .about-card a.cta:link, .about-card a.cta:visited { color: #fff !important; }
.about-card a.cta:hover, .about-card a.cta:active { color: #fff !important; }

/* 공유·구독 */
.share-card, .subscribe-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 6px 24px rgba(58,42,32,.07);
  text-align: center;
}

.share-card h2, .subscribe-card h2 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; }
.share-card p, .subscribe-card p { color: var(--ink-soft); margin: 0 0 16px; }

/* 카드 안 한글 줄바꿈 (2026-11-03 사용자 지시 — 음절 끊김 해소) */
.share-card h2, .subscribe-card h2, .share-card p, .subscribe-card p { word-break: keep-all; text-wrap: balance; }
.about-card p, .schedule-desc, .series-card .body { word-break: keep-all; }

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.share-btn:hover { border-color: var(--orange); color: var(--orange-deep); }

.share-kakao { background: #FEE500; border-color: #FEE500; }
.share-kakao:hover { background: #F5DC00; color: var(--ink); border-color: #F5DC00; }

.share-toast {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-size: .9rem;
  color: var(--orange-deep);
  font-weight: 600;
}

.subscribe-btn { background: var(--orange); border-color: var(--orange); color: #fff; }
.subscribe-btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }

/* 푸터 */
footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

footer .brand { font-weight: 900; font-size: 1.16rem; }

footer .links { display: flex; gap: 10px 18px; flex-wrap: wrap; }

footer .links a { color: var(--ink-soft); text-decoration: none; font-size: 1.01rem; font-weight: 600; white-space: nowrap; }
footer .links a:hover { color: var(--orange-deep); }

footer .copy {
  width: 100%;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: .90rem;
  font-weight: 500;
  word-break: keep-all;
}

footer .copy a { color: var(--ink-soft); }

/* 후원하기·공지사항은 눈에 띄게 초록 + 굵게 (2026-10-27) */
footer .links a[href="donate.html"], footer .links a[href="notices.html"],
footer .copy a[href="donate.html"], footer .copy a[href="notices.html"] { color: var(--green); font-weight: 800; }

@media (max-width: 860px) {
  .series-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 360px; }
  .hero-inner { padding: 26px 24px; }
  .hero-card h1 { font-size: 1.5rem; }
  .hero-sub { font-size: .9rem; }
  section.block { margin: 28px 0; }
  .schedule-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .schedule-time { min-width: auto; }
  .schedule-desc { flex: none; width: 100%; }
}

/* 히어로 적응형: 모바일 세로 = 세로형 일러스트, 가로 = 가로형 일러스트 */
@media (max-width: 860px) and (orientation: portrait) {
  /* 제목·소개글이 그림과 겹치는 곳 가독성 (2026-11-05 사용자 지적): 아래쪽 크림막을 제목 높이까지 올려 글자색이 뜨게 하고, 제목·소개글을 키움 */
  .hero-card { min-height: 600px; justify-content: flex-end; background-image: linear-gradient(0deg, rgba(255,249,240,.92) 0%, rgba(255,249,240,.78) 38%, rgba(255,249,240,.35) 55%, rgba(255,249,240,0) 72%), url('hero-bg-portrait.webp?v=3'); background-position: center top; }
  .hero-inner { padding: 20px 22px; text-align: right; }
  .hero-card h1 { font-size: 1.62rem; margin-bottom: 28px; position: relative; top: -8px; }
  .hero-sub { font-size: .95rem; line-height: 1.65; margin-bottom: 14px; }
  .hero-badge { margin-bottom: 10px; }
  .logo-mini { top: 14px; bottom: auto; }
}
@media (max-width: 860px) and (orientation: landscape) {
  .hero-card { background-image: linear-gradient(0deg, rgba(255,249,240,.94) 0%, rgba(255,249,240,.55) 58%, rgba(255,249,240,0) 88%), url('hero-bg.webp'); background-position: 72% center; }
}

/* 새로고침 버튼 (홈 화면 앱용, 2026-10-22) */
#refresh-btn { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 999px; border: 1px solid #F0E2D2; background: rgba(255,255,255,.94); color: var(--ink); font-size: .88rem; font-weight: 700; font-family: inherit; box-shadow: 0 4px 16px rgba(58,42,32,.20); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#refresh-btn svg { width: 17px; height: 17px; stroke: var(--orange); }
#refresh-btn:active { transform: scale(.95); }

/* 맨 위로 버튼 (2026-10-27, 아래로 많이 스크롤한 뒤 첫 화면으로) */
#top-btn { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: none; align-items: center; gap: 7px; padding: 11px 18px; border-radius: 999px; border: 1px solid #F0E2D2; background: rgba(255,255,255,.94); color: var(--ink); font-size: .88rem; font-weight: 700; font-family: inherit; box-shadow: 0 4px 16px rgba(58,42,32,.20); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#top-btn.show { display: inline-flex; }
#top-btn svg { width: 17px; height: 17px; stroke: var(--green); }
#top-btn:active { transform: scale(.95); }

/* PWA 설치 안내 (2026-10-21) */
.install-btn { background: var(--orange); border-color: var(--orange); color: #fff; }
.install-btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
#app-install p { margin-bottom: 12px; }

/* 오늘 올라온 새 회차 스트립 (2026-11-03 UX 개편) */
/* 오늘 올라온 새 회차 스트립 (2026-11-03 사용자 지시 — 힌트 문구·크기·간격·버튼 테두리 애니메이션) */
.today-strip .section-head { margin-bottom: 16px; }
.today-strip .section-head .hint { font-size: .945rem; }
.today-strip .today-list { display: flex; flex-wrap: wrap; gap: 10px; }
.today-item { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.4; }
.today-item .today-series { color: var(--orange); white-space: nowrap; }
.today-item .today-title { word-break: keep-all; }
.today-item { animation: schedule-toggle-glow 2.4s ease-in-out infinite; }

/* 오늘 올라온 새 회차 제목 (2026-11-03 사용자 지시 — 모바일 줄바꿈 수정) */
.today-strip .section-head h2,
.today-strip .section-head .hint { word-break: keep-all; }
.today-strip .section-head h2 { text-wrap: balance; }
@media (max-width: 860px) {
  .today-strip .section-head { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* 시리즈 서가 탭 + 그룹 (2026-11-03 UX 개편) */
.series-tabs { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.series-tab { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; color: var(--ink); font-size: 0.95rem; }
.series-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.series-group { margin-bottom: 28px; }
.series-group:last-child { margin-bottom: 0; }
.series-group-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.series-group-head h3 { margin: 0; font-size: 1.15rem; }
.series-group-head span { color: var(--ink-soft); font-size: 0.9rem; }

/* 하단 소개 접기 (2026-11-03 UX 개편) */
.about-toggle { margin-top: 6px; border: 0; background: transparent; color: var(--orange); font-weight: 800; cursor: pointer; font-size: 1rem; padding: 4px 0; }

/* 연재 일정 접기 버튼 (2026-11-03 사용자 지시 — 텍스트 강조·테두리 애니메이션) */
.schedule-toggle { margin-top: 10px; border: 2px solid var(--orange); background: transparent; color: var(--orange); font-weight: 900; cursor: pointer; font-size: 1.1rem; padding: 10px 22px; border-radius: 999px; }
.schedule-toggle[aria-expanded="false"] { animation: schedule-toggle-glow 2.4s ease-in-out infinite; }
@keyframes schedule-toggle-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,129,43,0); }
  50% { box-shadow: 0 0 14px 2px rgba(232,129,43,.35); }
}
@media (prefers-reduced-motion: reduce) {
  .schedule-toggle[aria-expanded="false"] { animation: none; }
  .today-item { animation: none; }
}
