/* =====================================================================
   Séries Técnicas — leitor com lista de artigos, PDF ao lado e autor
   ===================================================================== */
.sr-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.sr-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sr-hero-meta .ico { color: #7fd3ff; }

.sr-wrap { padding-top: 40px; }
.sr-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.sr-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding-bottom: 4px; scrollbar-width: thin; }

.sr-list-card, .sr-author, .sr-chapter { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.sr-list-card { padding: 16px; }
.sr-list-title { display: flex; align-items: center; gap: 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-600); margin: 4px 4px 12px; }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sr-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; color: var(--ink); transition: .2s; }
.sr-item:hover { background: var(--bg-soft); color: var(--ink); }
.sr-item.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: var(--shadow); }
.sr-n { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--blue-600); font-family: var(--font-head); font-weight: 800; font-size: .88rem; }
.sr-item.active .sr-n { background: var(--accent); color: var(--navy-950); }
.sr-item-txt strong { display: block; font-size: .93rem; line-height: 1.35; }
.sr-item-txt small { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-size: .76rem; color: var(--muted); }
.sr-item.active .sr-item-txt small { color: rgba(255, 255, 255, .7); }

.sr-author { padding: 18px; }
.sr-author-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.sr-avatar { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grad-navy); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent-50); }
.sr-avatar { position: relative; }
.sr-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-author-top small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-600); font-weight: 700; }
.sr-author-top strong { display: block; color: var(--navy-900); font-size: 1.02rem; line-height: 1.3; }
.sr-author-top span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.sr-author p { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.6; }

.sr-chapter { padding: 24px; }
.sr-ch-n { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 6px; }
.sr-ch-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 10px; }
.sr-summary { color: var(--ink-2); line-height: 1.65; margin: 0 0 14px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: .95rem; }
.sr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sr-viewer { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #525659; }
.sr-viewer iframe { display: block; width: 100%; height: calc(100vh - var(--header-h) - 120px); min-height: 620px; border: 0; }
.sr-mobile-tip { display: none; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.sr-text { border-top: 1px solid var(--line); padding-top: 18px; }
.sr-text img { height: auto; max-width: 100%; border-radius: 10px; }
.sr-text figure { margin: 18px 0; }
.sr-locked { text-align: center; padding: 48px 20px; background: var(--bg-soft); border-radius: 14px; color: var(--ink-2); }
.sr-locked .ico { color: var(--accent-600); }
.sr-locked h3 { margin: 10px 0 6px; }
.sr-locked .btn { margin: 6px 4px 0; }

.sr-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sr-pager a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy-900); font-weight: 700; font-size: .92rem; line-height: 1.35; transition: .2s; }
.sr-pager a:hover { border-color: var(--accent); background: var(--accent-50); }
.sr-pager small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.sr-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.sr-pager .ico { flex-shrink: 0; color: var(--accent-600); }

.sr-others { margin-top: 44px; }
.sr-others h2 { font-size: 1.3rem; margin-bottom: 14px; }
.sr-others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sr-other { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: var(--ink); box-shadow: var(--shadow-sm); transition: .2s; }
.sr-other:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.sr-other > span:nth-child(2) { flex: 1; }
.sr-other strong { display: block; color: var(--navy-900); }
.sr-other small { color: var(--muted); font-size: .82rem; }
.sr-other-ico { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-navy); color: #fff; }

/* Série na página do documento */
.sr-doc-card .sr-mini { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 4px; counter-reset: c; }
.sr-doc-card .sr-mini li { font-size: .86rem; line-height: 1.4; padding: 6px 8px; border-radius: 8px; }
.sr-doc-card .sr-mini li.on { background: var(--accent-50); font-weight: 700; color: var(--navy-900); }
.sr-doc-card .sr-mini a { color: var(--ink-2); }

/* Card da série na página da categoria principal */
.cover-card .cover-author { display: block; font-size: .78rem; opacity: .85; margin-top: 2px; }

@media (max-width: 999px) {
  .sr-grid { grid-template-columns: 1fr; }
  .sr-side { position: static; max-height: none; overflow: visible; }
  .sr-author { order: 2; }
  .sr-viewer iframe { height: 75vh; min-height: 480px; }
  .sr-mobile-tip { display: flex; }
}
@media (max-width: 600px) {
  .sr-chapter { padding: 16px; }
  .sr-pager { grid-template-columns: 1fr; }
  .sr-next { grid-column: 1; }
  .sr-actions .btn { flex: 1 1 auto; justify-content: center; }
}
