/* Shared styles for Logan English Academy Reading Library book pages.
   Edit this one file to restyle every book/audio page. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #faf8f5;
  --card:         #ffffff;
  --border:       #e8e2d9;
  --text:         #2d2a26;
  --muted:        #6e6659;
  --accent:       #3d6b4f;
  --accent-light: #eaf2ed;
  --r: 12px;
}

body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Site header (shared site-wide design) ── */
.site-header { background: var(--card); border-bottom: 2px solid var(--border); padding: 14px 28px; display: flex; align-items: center; gap: 14px; }
.site-header img { height: 40px; width: auto; }
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-name { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-header nav a { font-weight: 700; font-size: 0.9rem; color: var(--accent); text-decoration: none; padding: 6px 14px; border-radius: 8px; background: var(--accent-light); transition: background .15s; }
.site-header nav a:hover { background: #d0e8d8; }

/* ── Book banner ── */
.ban, .banner { background: var(--card); border-bottom: 2px solid var(--border); padding: 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.bdg, .banner-badge { width: 52px; height: 52px; border-radius: 10px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 26px; }
.bt, .banner-title { font-family: 'Lora', serif; font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.bs, .banner-author { font-size: 14px; color: var(--muted); margin-top: 2px; }
.bm, .banner-meta { margin-left: auto; text-align: right; flex-shrink: 0; }
.mn, .meta-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.ml, .meta-label { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ── Track / chapter list ── */
.lst, .track-list, .chapter-list { max-width: 720px; margin: 1.5rem auto; padding: 0 1rem 3rem; display: flex; flex-direction: column; gap: 10px; }
.ch, .track-item, .chapter-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ct, .track-top, .chapter-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.cn, .track-num, .ch-num { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-light); color: var(--accent); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cti, .track-title, .ch-title { font-size: 15px; font-weight: 700; flex: 1; color: var(--text); }
.cdl, .download-btn, .ch-download { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 6px 14px; border-radius: 8px; border: 2px solid var(--accent); transition: all .15s; white-space: nowrap; flex-shrink: 0; }
.cdl:hover, .download-btn:hover, .ch-download:hover { background: var(--accent); color: #fff; }
.cdl svg, .download-btn svg, .ch-download svg { width: 14px; height: 14px; }
.cp, .track-player, .ch-player { padding: 0 1.25rem 1rem; }
.cp audio, .track-player audio, .ch-player audio { width: 100%; height: 40px; border-radius: 8px; display: block; }

/* ── Footer (shared site-wide design) ── */
.site-footer { padding: 36px 28px 26px; font-size: .88rem; color: var(--muted); border-top: 2px solid var(--border); background: var(--card); text-align: left; margin-top: 20px; }
.site-footer a { color: var(--accent); text-decoration: none; }
.footer-inner { max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; }
.footer-name { font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 4px; }
.footer-brand p { margin: 0; }
.footer-brand a { font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-nav a { font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 8px; background: var(--accent-light); transition: background .15s; }
.footer-nav a:hover { background: #d0e8d8; }
.footer-copy { max-width: 720px; margin: 24px auto 0; padding-top: 18px; border-top: 1.5px solid var(--border); font-size: .8rem; }

@media (max-width: 560px) {
  .cdl span, .download-btn span, .ch-download span { display: none; }
  .cdl, .download-btn, .ch-download { padding: 6px 10px; }
}
