/*
 * Revista Connect Saúde.
 *
 * Página em branco guiada pela fotografia da própria edição. Uma família
 * tipográfica (Albert Sans, no tema), títulos grandes e leves, grade
 * assimétrica de matérias, cor só na marca e nos links. Segue o tema claro ou
 * escuro do sistema. O leitor de PDF é sempre escuro, para a página da
 * revista ficar em destaque.
 */

@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/albert-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/albert-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--bg: #ffffff;
	--soft: #f2f5f4;
	--ink: #121a24;
	--muted: #5d6773;
	--line: #e3e7ea;
	--accent: #0e8574;
	--sans: "Albert Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 48px);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1216;
		--soft: #151b21;
		--ink: #edf0f3;
		--muted: #9ba5b0;
		--line: #252d35;
		--accent: #52c7b1;
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; letter-spacing: -.03em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.pular:focus { left: 8px; }
.sem-foto, .capa-vazia { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; background: var(--soft); color: var(--muted); font-size: 32px; }
.vazio { color: var(--muted); padding-block: 40px 80px; }

.kicker { font-size: 14px; color: var(--muted); }
.kicker b { font-weight: 500; color: var(--accent); }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 16px; border-radius: 2px; border: 0; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .86; }
.arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.arrow:hover { color: var(--accent); }
.arrow::after { content: "→"; transition: transform .2s; }
.arrow:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* ---------------------------------------------------------------- Logo */
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo .wm { display: flex; flex-direction: column; line-height: 1; }
.logo small { font-size: 8.5px; font-weight: 600; letter-spacing: .45em; color: var(--muted); margin-left: 1px; }
.logo b { font-size: 22px; font-weight: 600; letter-spacing: .01em; margin-top: 3px; }

/* ---------------------------------------------------------------- Cabeçalho */
.mast { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .mast { top: 32px; }
.mast .wrap { display: flex; align-items: center; gap: 40px; height: 76px; position: relative; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.mast .cta { font-size: 15px; font-weight: 500; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 2px; white-space: nowrap; transition: background .2s, color .2s; }
.mast .cta:hover { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px 0; cursor: pointer; font-weight: 500; }
@media (max-width: 880px) {
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
	.nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
	.nav.aberto { display: flex; }
	.menu-btn { display: block; }
	.mast .cta { display: none; }
}
@media (max-width: 782px) { .admin-bar .mast { top: 46px; } }
@media (max-width: 600px) { .admin-bar .mast { top: 0; } }

/* ---------------------------------------------------------------- Abertura */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -.04em; margin-block: 20px 24px; }
.hero .lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 30em; }
.hero .actions { margin-top: 36px; }
.issue { display: flex; align-items: center; gap: 18px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.issue img { width: 64px; height: 88px; object-fit: cover; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.issue p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.issue p b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.hero figure { margin: 0; }
.hero .photo { aspect-ratio: 5 / 4; overflow: hidden; background: var(--soft); }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 880px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.hero figure { order: -1; }
	.issue { margin-top: 40px; }
}

/* ---------------------------------------------------------------- Seções */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.soft { background: var(--soft); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.head p { color: var(--muted); margin-top: 14px; max-width: 34em; }

/* ---------------------------------------------------------------- Matérias em grade */
.stories { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.story { display: flex; flex-direction: column; gap: 18px; min-width: 0; grid-column: span 4; }
.story .ph { overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.story .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.story:hover .ph img { transform: scale(1.03); }
.story .meta { font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.story .meta b { font-weight: 500; color: var(--accent); }
.story .tt { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -.02em; transition: color .2s; }
.story:hover .tt { color: var(--accent); }
.story .dek { color: var(--muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story .by { font-size: 15px; color: var(--muted); margin-top: -8px; }
.s-lead { grid-column: span 7; }
.s-lead .tt { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.s-tall { grid-column: span 5; }
.s-tall .ph { aspect-ratio: 4 / 5; }
.s-third .ph { aspect-ratio: 1 / 1; }
.lista .s-third .ph { aspect-ratio: 4 / 3; }
.s-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(8px, 2vw, 24px); }
.s-wide .ph { aspect-ratio: 16 / 9; }
.s-wide .txt { display: flex; flex-direction: column; gap: 18px; }
.s-wide .tt { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.03em; }
.s-wide .by { margin-top: 0; }
@media (max-width: 980px) {
	.s-lead, .s-tall { grid-column: 1 / -1; }
	.s-tall .ph { aspect-ratio: 4 / 3; }
	.story { grid-column: span 6; }
}
@media (max-width: 640px) {
	.story, .s-third { grid-column: 1 / -1; }
	.s-third .ph { aspect-ratio: 4 / 3; }
	.s-wide { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Sumário */
details.toc { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink); }
details.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding-block: 22px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary span { margin-left: auto; font-size: 15px; font-weight: 400; color: var(--muted); }
details.toc summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: 1; }
details.toc[open] summary::after { content: "–"; }
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); padding-bottom: 12px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-top: 1px solid var(--line); align-items: baseline; }
.row .n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; }
.row .t { display: block; font-weight: 500; line-height: 1.35; }
.row .s { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.row:hover .t { color: var(--accent); }
@media (max-width: 760px) { .rows { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Capas de edição */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; } }
.ed { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ed .cv { aspect-ratio: 560 / 770; overflow: hidden; background: var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 12px 24px -14px rgba(0, 0, 0, .4); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.ed:hover .cv { transform: translateY(-6px); }
.ed .cv img { width: 100%; height: 100%; object-fit: cover; }
.ed .n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ed .t { font-size: 15px; font-weight: 500; line-height: 1.35; margin-top: -8px; }

/* ---------------------------------------------------------------- Blog na página inicial */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.post-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); align-items: center; }
.post-item img, .post-item .sem-foto { width: 112px; height: 112px; min-height: 0; object-fit: cover; }
.post-item time { font-size: 14px; color: var(--muted); }
.post-item h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; margin-top: 6px; transition: color .2s; }
.post-item:hover h3 { color: var(--accent); }
@media (max-width: 760px) {
	.posts { grid-template-columns: 1fr; }
	.post-item { grid-template-columns: 88px minmax(0, 1fr); }
	.post-item img, .post-item .sem-foto { width: 88px; height: 88px; }
}

/* ---------------------------------------------------------------- Anuncie */
.ad .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); }
.ad h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.ad .intro p { color: var(--muted); margin-top: 20px; max-width: 30em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.facts div { padding: 22px 16px 0 0; }
.facts b { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.facts span { font-size: 14px; color: var(--muted); }
dl.spec { margin: 0; display: grid; align-content: start; }
dl.spec > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
dl.spec dt { color: var(--muted); font-size: 15px; }
dl.spec dd { margin: 0; }
.phone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phone strong { font-weight: 500; font-size: 19px; font-variant-numeric: tabular-nums; }
.phone small { display: block; color: var(--muted); font-size: 14px; }
.copy { border: 1px solid var(--line); padding: 7px 14px; border-radius: 2px; font-size: 14px; transition: border-color .2s; }
.copy:hover { border-color: var(--ink); }
@media (max-width: 880px) { .ad .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
	dl.spec > div { grid-template-columns: 1fr; gap: 4px; }
	.facts { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- Rodapé */
.foot { padding-block: 64px 36px; border-top: 1px solid var(--line); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-tit { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--accent); }
.foot .about { color: var(--muted); margin-top: 18px; max-width: 28em; }
.colophon { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
	.foot .wrap { grid-template-columns: 1fr 1fr; }
	.foot .wrap > div:first-child { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- Cabeçalho das listagens e do acervo */
.a-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); }
.a-head h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1; letter-spacing: -.045em; margin-top: 8px; }
.a-head .lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 36em; margin-top: 24px; }
.lista { padding-bottom: clamp(64px, 9vw, 120px); }
.erro .actions { margin-top: 36px; }
.busca { margin-top: 56px; max-width: 520px; }
.busca label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.busca div { display: flex; gap: 8px; }
.busca input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); font: inherit; }

.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.feature .cv { display: block; box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 30px 50px -24px rgba(0, 0, 0, .45); max-width: 400px; }
.feature .cv img { width: 100%; }
.feature h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; margin-block: 14px 8px; }
.feature ul { list-style: none; padding: 0; margin: 24px 0 36px; max-width: 34em; }
.feature li a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.feature li a:hover { color: var(--accent); }
.feature li span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
	.feature { grid-template-columns: 1fr; }
	.feature .cv { max-width: 260px; }
}
.tabs { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 36px; font-variant-numeric: tabular-nums; }
.tabs button { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted); border-bottom: 1px solid transparent; font-size: 16px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.acervo { padding-bottom: clamp(64px, 9vw, 120px); }
.year { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 24px; padding-block: 40px; border-top: 1px solid var(--line); }
.year h2 { font-size: 30px; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.year h2 span { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); }
@media (max-width: 760px) { .year { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Matéria */
.materia-topo { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 48px); max-width: calc(880px + 2 * var(--gutter)); }
.materia-topo h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.04em; margin-block: 18px 22px; }
.materia-topo .lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 40em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.byline span { color: var(--ink); font-weight: 500; }
.materia-foto { margin: 0 auto clamp(40px, 5vw, 64px); }
.materia-foto img { width: 100%; max-height: 82vh; object-fit: cover; }
.texto { max-width: 680px; margin-inline: auto; font-size: 19px; line-height: 1.7; padding-bottom: clamp(48px, 6vw, 80px); }
.texto > * + * { margin-top: 1.1em; }
.texto h2, .texto h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.25; letter-spacing: -.02em; margin-top: 1.9em; }
.texto a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.texto ul, .texto ol { padding-left: 1.2em; }
.texto li + li { margin-top: .4em; }
.texto blockquote { margin-inline: 0; padding-left: 24px; border-left: 2px solid var(--accent); font-size: 22px; line-height: 1.5; }
.texto figure { margin-inline: 0; }
.texto .wp-block-image img, .texto .wp-block-gallery img { width: 100%; }
.texto .wp-block-gallery, .texto .alignwide { margin-inline: calc(50% - min(50vw - var(--gutter), 600px)); }
.texto .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
/* A galeria do WordPress calcula a largura de cada foto e põe a legenda por
   cima dela; aqui é uma grade simples, com a legenda embaixo. */
.texto .wp-block-gallery.has-nested-images figure.wp-block-image { width: 100% !important; margin: 0; flex-direction: column; }
.texto .wp-block-gallery.has-nested-images figure.wp-block-image img { height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }
.texto .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--muted); padding: 8px 0 0; margin: 0; max-height: none; overflow: visible; text-align: left; text-shadow: none; font-size: 14px; }
.texto .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
.texto figcaption, .texto .wp-element-caption { font-size: 14px; }
.na-edicao { max-width: 680px; margin: 0 auto clamp(64px, 8vw, 104px); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 28px; border-top: 1px solid var(--ink); }
.na-edicao .cv { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }
.na-edicao .t { font-size: 20px; font-weight: 500; letter-spacing: -.015em; line-height: 1.3; margin-block: 4px 12px; }

/* ---------------------------------------------------------------- Paginação */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- Leitor */
.pagina-leitor { background: #141414; color: #f1f1f1; color-scheme: dark; overflow: hidden; }
.leitor { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #141414; color: #f1f1f1; --r-line: #2a2a2a; --r-muted: #9a9a9a; --r-accent: #52c7b1; }
.admin-bar .leitor { top: 32px; }
@media (max-width: 782px) { .admin-bar .leitor { top: 46px; } }
.leitor svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.r-bar { display: flex; align-items: center; gap: 16px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
.r-title { min-width: 0; line-height: 1.3; }
.r-title b { display: block; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-title span { display: block; font-size: 13px; color: var(--r-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-tools { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.ib { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 2px; border: 0; background: transparent; color: #f1f1f1; cursor: pointer; font-size: 14px; white-space: nowrap; }
.ib:hover { background: #262626; }
.ib[aria-pressed="true"] { background: #f1f1f1; color: #141414; }
.r-stage { position: relative; display: flex; min-height: 0; }
.r-view { position: relative; flex: 1; min-width: 0; overflow: auto; display: grid; place-items: center; padding: 8px 64px 24px; }
.leitor.zoom .r-view { place-items: start center; }
.spread { display: flex; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
.spread canvas { display: block; background: #fff; cursor: zoom-in; }
.leitor.zoom .spread canvas { cursor: zoom-out; }
.spread:not(.unica) canvas:first-child { -webkit-mask-image: linear-gradient(90deg, #000 94%, rgba(0, 0, 0, .82)); mask-image: linear-gradient(90deg, #000 94%, rgba(0, 0, 0, .82)); }
.leitor.carregando .spread { opacity: .6; transition: opacity .2s; }
.r-status { display: grid; gap: 16px; justify-items: center; text-align: center; color: var(--r-muted); padding: 24px; }
.r-status img { width: 170px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.r-status a { color: #f1f1f1; text-decoration: underline; }
.r-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(38, 38, 38, .9); color: #f1f1f1; cursor: pointer; display: grid; place-items: center; }
.r-arrow:hover:not(:disabled) { background: #3a3a3a; }
.r-arrow:disabled { opacity: .25; cursor: default; }
.r-arrow.prev { left: 8px; }
.r-arrow.next { right: 8px; }
.leitor.com-side .r-arrow.next { right: 348px; }
.leitor.zoom .r-arrow { display: none; }
.r-side { display: none; width: 340px; flex: none; border-left: 1px solid var(--r-line); background: #1a1a1a; overflow: auto; padding: 20px 20px 40px; }
.r-side.aberto { display: block; }
.r-side-tit { font-size: 14px; color: var(--r-muted); margin-bottom: 12px; }
.r-side .row { border-top-color: var(--r-line); grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-block: 11px; }
.r-side .row .n, .r-side .row .s { color: var(--r-muted); }
.r-side .row .t { font-size: 15px; }
.r-side .row:hover .t { color: var(--r-accent); }
@media (max-width: 1100px) {
	.r-side { position: absolute; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 5; box-shadow: -20px 0 40px rgba(0, 0, 0, .5); }
	.leitor.com-side .r-arrow.next { right: 8px; }
}
.r-foot { padding: 6px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.r-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: thin; }
.r-thumbs button { flex: none; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--r-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.r-thumbs .mini-pag { display: block; width: 48px; height: 66px; background: #262626; outline: 2px solid transparent; outline-offset: 2px; }
.r-thumbs .mini-pag canvas { width: 100%; height: 100%; display: block; }
.r-thumbs button[aria-current="true"] .mini-pag { outline-color: var(--r-accent); }
.r-thumbs button[aria-current="true"] { color: #f1f1f1; }
.r-nav { display: flex; align-items: center; gap: 14px; }
.r-nav input[type=range] { flex: 1; min-width: 0; accent-color: #f1f1f1; }
.r-count { font-size: 14px; color: var(--r-muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 96px; text-align: right; }
@media (max-width: 640px) {
	.hide-sm { display: none; }
	.r-view { padding: 4px 8px 12px; }
	.r-arrow { width: 40px; height: 40px; top: auto; bottom: 12px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
