/* 말씀묵상 — 2026 매일 말씀 읽기 */
.reading-main { padding: 7.3rem 0 5.5rem; background: var(--bg); }
.reading-shell { --psalm: #946313; --corinthians: #3d4f46; --isaiah: #9c3a2c; }
.reading-back { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-soft); font-size: .88rem; font-weight: 600; margin-bottom: 2rem; }
.reading-back:hover { color: var(--accent); }
.reading-back:focus-visible, .reading-reference a:focus-visible, .today-passage:focus-visible, .today-audio-link:focus-visible, .audio-toggle:focus-visible, .audio-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.reading-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--text); }
.reading-heading h1 { color: var(--text); font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1.2; font-weight: 800; letter-spacing: -.05em; word-break: keep-all; }
.reading-instructions { flex: 0 0 auto; font-size: .92rem; color: var(--text-soft); }

/* 오늘의 묵상 */
.reading-today { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin: 1.75rem 0 2.25rem; background: var(--surface); border-radius: 6px; }
.reading-today[hidden], .today-audio[hidden], .audio-player[hidden], .today-audio-error[hidden], .reading-month-links a[hidden] { display: none; }
.today-reading { padding: 2rem 2.25rem 2.1rem; display: flex; flex-direction: column; align-items: flex-start; }
.today-label { color: var(--accent); font-size: .88rem; font-weight: 750; letter-spacing: .02em; margin-bottom: .3rem; }
.today-date { color: var(--text-soft); font-size: .98rem; margin-bottom: 1.1rem; }
.today-passage { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .55rem; color: var(--text); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.3; letter-spacing: -.045em; word-break: keep-all; }
.today-passage:hover .today-verses { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.today-arrow { font-size: .55em; font-weight: 600; color: var(--muted); }
.today-hint { margin-top: 1rem; font-size: .84rem; color: var(--muted); }
.today-audio { padding: 2rem 2.25rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; border-left: 1px solid var(--line); }
.today-audio-title { color: var(--text); font-size: .98rem; font-weight: 750; letter-spacing: -.02em; }
.audio-player { display: flex; align-items: center; gap: .9rem; }
.audio-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--text); color: #fff; cursor: pointer; }
.audio-toggle:hover { background: var(--accent-deep); }
.audio-toggle .icon-pause, .audio-player.is-playing .icon-play { display: none; }
.audio-player.is-playing .icon-pause { display: block; }
.audio-seek { flex: 1 1 auto; min-width: 0; height: 24px; margin: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
.audio-seek:disabled { cursor: default; opacity: .55; }
.audio-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: #cfcfcf; }
.audio-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border: 0; border-radius: 50%; background: var(--text); }
.audio-seek::-moz-range-track { height: 3px; border-radius: 2px; background: #cfcfcf; }
.audio-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--text); }
.audio-time { flex: 0 0 auto; font-size: .84rem; color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-audio-note { font-size: .82rem; line-height: 1.6; color: var(--muted); }
.today-audio-error { font-size: .88rem; color: var(--isaiah); font-weight: 600; }
.today-audio-link { align-self: flex-start; color: var(--text); font-size: .9rem; font-weight: 650; border-bottom: 1px solid var(--text); padding-bottom: 1px; }
.today-audio-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* 범례 · 진행 */
.reading-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-bottom: 1.1rem; }
.reading-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; font-size: .85rem; color: var(--text-soft); }
.reading-legend span { display: inline-flex; align-items: center; white-space: nowrap; gap: .4rem; }
.reading-legend strong { font-weight: 700; color: var(--text); }
.legend-mark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--psalm); }
.legend-mark.corinthians { background: var(--corinthians); }
.legend-mark.isaiah { background: var(--isaiah); }
.reading-progress-area { display: flex; align-items: center; gap: 1rem; }
.reading-progress-area p { font-size: .88rem; color: var(--text-soft); white-space: nowrap; }
.reading-progress-area strong { color: var(--text); font-variant-numeric: tabular-nums; }
.reading-progress-area progress { width: 180px; height: 4px; border: 0; border-radius: 2px; overflow: hidden; appearance: none; background: #e4e4e4; }
.reading-progress-area progress::-webkit-progress-bar { background: #e4e4e4; }
.reading-progress-area progress::-webkit-progress-value { background: var(--accent); }
.reading-progress-area progress::-moz-progress-bar { background: var(--accent); }
.reading-month-nav, .reading-scroll-hint, .reading-mobile-hint, .reading-mobile-date { display: none; }

/* 읽기표 */
.reading-calendar-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.reading-calendar-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reading-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line-soft); }
.reading-weekday { color: var(--muted); font-size: .8rem; font-weight: 650; text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--text); }
.reading-weekday.sunday { color: var(--isaiah); }
.reading-day, .reading-empty { min-height: 88px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.reading-empty { background: var(--surface); }
.reading-day { padding: .6rem .7rem .7rem .8rem; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; background: var(--bg); transition: background-color .15s ease; }
.reading-month-label { display: none; }
.reading-day.is-today { background: #fbf6ea; box-shadow: inset 0 0 0 1.5px var(--accent); position: relative; z-index: 1; }
.reading-day.is-read .reading-reference { opacity: .55; }
.reading-day-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; gap: .25rem; }
.reading-day-number { color: var(--text); font-weight: 600; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reading-day-number.sunday { color: var(--isaiah); }
.reading-day.is-month-start .reading-day-number { font-weight: 800; }
.reading-holiday { font-size: .7rem; color: var(--isaiah); font-weight: 700; white-space: nowrap; margin-right: auto; margin-left: .4rem; }
.reading-checkbox-label { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: -2px -4px -2px 0; cursor: pointer; flex-shrink: 0; }
.reading-checkbox-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; z-index: 1; }
.reading-checkbox-visual { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border: 1.5px solid #9a9a9a; border-radius: 3px; background: #fff; transition: background-color .12s, border-color .12s; pointer-events: none; }
.reading-checkbox-label:hover .reading-checkbox-visual { border-color: var(--text); }
.reading-checkbox-label input:checked + .reading-checkbox-visual { background: var(--text); border-color: var(--text); }
.reading-checkbox-label input:checked + .reading-checkbox-visual::after { content: ''; width: 8px; height: 4px; border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.reading-checkbox-label input:focus-visible + .reading-checkbox-visual { outline: 2px solid var(--accent); outline-offset: 2px; }
.reading-reference a { display: inline-flex; flex-direction: column; gap: .1rem; color: var(--text); line-height: 1.35; }
.reading-book { font-size: .74rem; font-weight: 700; color: var(--psalm); white-space: nowrap; }
.reading-day.corinthians .reading-book { color: var(--corinthians); }
.reading-day.isaiah .reading-book { color: var(--isaiah); }
.reading-passage { font-size: clamp(.82rem, 1.05vw, 1rem); font-weight: 750; letter-spacing: -.03em; white-space: nowrap; }
.reading-open-arrow { display: none; }
.reading-reference a:hover .reading-passage { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.reading-loading { padding: 2rem; grid-column: 1/-1; }
.reading-storage-note { padding: 1.1rem 0 1rem; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.reading-storage-note.reading-storage-warning { color: var(--isaiah); font-weight: 650; }
.reading-sheet-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; border-top: 1px solid var(--line); padding-top: .9rem; font-size: .85rem; color: var(--muted); }
.reading-sheet-footer strong { font-size: .8rem; color: var(--text); letter-spacing: .2em; white-space: nowrap; }

@media (max-width: 1100px) {
  .reading-calendar-grid { min-width: 1000px; }
  .reading-scroll-hint { display: block; padding: 0 0 .6rem; font-size: .8rem; color: var(--muted); }
}
@media (max-width: 860px) {
  .reading-today { grid-template-columns: 1fr; }
  .today-audio { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .reading-main { padding-top: 6rem; padding-bottom: 3rem; }
  .reading-back { margin-bottom: 1.2rem; min-height: 44px; }
  .reading-heading { flex-direction: column; align-items: flex-start; gap: .35rem; padding-bottom: 1rem; }
  .reading-heading h1 { font-size: 2rem; }
  .reading-instructions { font-size: .87rem; }
  .reading-today { margin: 1.4rem 0 1.6rem; }
  .today-reading, .today-audio { padding: 1.5rem 1.3rem; }
  .today-passage { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .reading-toolbar { flex-direction: column; align-items: stretch; gap: .9rem; padding-bottom: 1rem; }
  .reading-legend { font-size: .8rem; gap: .4rem 1rem; }
  .reading-progress-area { justify-content: space-between; }
  .reading-progress-area progress { width: 48%; }
  .reading-month-nav { position: sticky; top: 5rem; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--bg); padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .reading-month-nav > span { flex: 0 0 auto; color: var(--text-soft); font-size: .8rem; font-weight: 700; }
  .reading-month-links { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; }
  .reading-month-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .3rem .6rem; border-radius: 6px; color: var(--text); font-size: .88rem; font-weight: 700; background: var(--surface); white-space: nowrap; }
  .reading-month-links a:last-child:not([hidden]) { background: var(--text); color: #fff; }
  .reading-month-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .reading-scroll-hint { display: none; }
  .reading-mobile-hint { display: block; font-size: .85rem; line-height: 1.65; color: var(--muted); padding: .9rem 0 .7rem; }
  .reading-calendar-scroll { overflow: visible; }
  .reading-calendar-grid { display: flex; flex-direction: column; min-width: 0; border: 0; gap: .6rem; }
  .reading-weekday, .reading-empty { display: none; }
  .reading-day { min-height: 96px; padding: .7rem 1rem .85rem; border: 1px solid var(--line); border-radius: 8px; gap: .3rem; scroll-margin-top: 9rem; }
  .reading-day.is-month-start:not(:first-of-type) { margin-top: 1.25rem; }
  .reading-month-label { display: block; font-size: 1.05rem; font-weight: 800; color: var(--text); margin: 0 0 .25rem; }
  .reading-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }
  .reading-day.is-read { background: var(--surface); }
  .reading-day-top { min-height: 44px; }
  .reading-day-number { display: none; }
  .reading-mobile-date { display: inline; font-size: .98rem; font-weight: 700; white-space: nowrap; }
  .reading-mobile-date.sunday { color: var(--isaiah); }
  .reading-checkbox-label { width: 44px; height: 44px; margin: 0 -8px 0 0; }
  .reading-checkbox-visual { width: 24px; height: 24px; border-width: 2px; border-radius: 4px; }
  .reading-reference a { width: 100%; min-height: 44px; flex-direction: row; align-items: center; gap: .25rem .6rem; font-size: 1.08rem; }
  .reading-book { font-size: .92rem; }
  .reading-passage { font-size: 1.08rem; }
  .reading-open-arrow { display: inline; font-size: 1.05rem; color: var(--muted); margin-left: auto; }
  .reading-storage-note { font-size: .79rem; }
  .reading-sheet-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .reading-month-nav > span { display: none; }
  .reading-month-links { justify-content: space-between; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .reading-day, .reading-checkbox-visual { transition: none; } }
