/* Long-form book summary pages (tools/book_summary.py). Loaded only on those pages, after styles.css. */
.sm-byline { margin: 10px 0 0; color: var(--dim); font-size: 14.5px; font-weight: 700; }
.sm-byline a { color: var(--accent-soft); text-decoration: underline; text-decoration-color: rgba(185, 220, 198, .35); text-underline-offset: 3px; }
.sm-body { max-width: 760px; margin-top: clamp(48px, 6vw, 80px); }
.sm-toc { padding: 22px 26px; border-radius: 22px; background: var(--card); }
.sm-toc .kicker { margin: 0 0 10px; }
.sm-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
.sm-toc a { color: var(--accent-soft); text-decoration: none; }
.sm-toc a:hover { color: var(--text); text-decoration: underline; }
.sm-sec, .sm-idea { margin-top: clamp(48px, 6vw, 72px); scroll-margin-top: 90px; }
.sm-idea { margin-top: clamp(36px, 4.5vw, 52px); }
.smpage .sm-sec p, .smpage .sm-idea p { margin: 0 0 16px; color: var(--muted); font-size: 18px; font-weight: 600; line-height: 1.7; }
.smpage .sm-idea h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(23px, 2.6vw, 30px); }
.sm-num { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(111, 181, 142, .16); color: var(--accent); font-size: 16px; transform: translateY(-3px); }
.sm-try { margin-top: 6px; padding: 18px 22px; border-radius: 18px; background: var(--card); border-left: 4px solid var(--accent); }
.sm-try .kicker { margin: 0 0 4px !important; font-size: 12px !important; }
.smpage .sm-try p:last-child { margin: 0; color: var(--text); font-size: 17px; }
.sm-card { margin: 28px 0 8px; }
.sm-card img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); }
.sm-card figcaption { margin-top: 10px; color: var(--dim); font-size: 14px; font-weight: 700; }
.sm-fig { margin-top: clamp(36px, 4.5vw, 52px); }
.sm-note { font-size: 15px !important; color: var(--dim) !important; }
.sm-quote { margin: 0 0 14px; padding: 22px 26px; border-radius: 22px; background: var(--card); }
.smpage .sm-quote p { margin: 0 0 10px; color: var(--text); font-size: 20px; font-weight: 800; line-height: 1.45; letter-spacing: -0.01em; }
.sm-quote footer { color: var(--dim); font-size: 14.5px; font-weight: 700; }
.sm-quote cite { font-style: italic; }
.sm-parts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sm-parts li { padding: 16px 20px; border-radius: 18px; background: var(--card); color: var(--muted); font-size: 16.5px; font-weight: 600; line-height: 1.6; }
.sm-parts b { display: block; color: var(--text); font-weight: 900; margin-bottom: 2px; }
.sm-likes { display: grid; gap: 12px; }
.sm-like { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border-radius: 20px; background: var(--card); color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: transform .2s var(--ease); }
.sm-like:hover { transform: translateY(-2px); }
.sm-like .rel-cover { width: 72px; box-shadow: none; border-radius: 10px; }
.sm-like b { display: block; color: var(--text); font-size: 18px; font-weight: 900; }
.sm-like em { display: block; margin-bottom: 4px; color: var(--dim); font-style: normal; font-size: 14px; font-weight: 700; }
.sm-applist { max-width: 520px; margin: 22px auto 0; padding: 0 0 0 22px; text-align: left; color: var(--muted); font-size: 16px; font-weight: 700; line-height: 1.7; }
@media (max-width: 620px) {
  .smpage .sm-sec p, .smpage .sm-idea p { font-size: 17px; }
  .sm-like { grid-template-columns: 56px minmax(0, 1fr); }
  .sm-like .rel-cover { width: 56px; }
}
