/* Biblioteca MJN — Kindle (v102) */
:root{--k-mustard:#E9C77B;--k-mustard-line:#D7AE55;--k-ink:#2E2410;--k-eink:#D9DAD5;--k-eink-2:#CBCCC6}

/* Moldura do Kindle: a capa fica por baixo, na área da tela. */
.cover-slot.k-device,.v84-cover-slot.k-device{aspect-ratio:900/1247!important;height:auto!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;overflow:visible!important;position:relative;filter:drop-shadow(0 10px 14px rgba(30,20,8,.28))}
.k-device::after{content:"";position:absolute;inset:0;background:url(/assets/kindle-moldura.webp?v=102) center/100% 100% no-repeat;z-index:4;pointer-events:none}
.k-device>img,.k-device>.cover,.k-device>.v84-cover-fallback{position:absolute!important;left:7.3%!important;top:4.8%!important;right:auto!important;bottom:auto!important;width:85.1%!important;height:82.1%!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.k-device>img{object-fit:cover!important;background:var(--k-eink)!important;z-index:1}
.k-device>.cover-watermark{display:none!important}
/* Sem capa: a tela apagada do Kindle com título e autor. */
.k-device>.cover,.k-device>.v84-cover-fallback{background:linear-gradient(var(--k-eink),var(--k-eink-2))!important;color:#2b2d2f!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:.7em;padding:12% 10%!important;box-sizing:border-box;z-index:2}
.k-device.has-cover>.cover{visibility:hidden}
.k-device>.cover .small{display:none!important}
.k-device>.cover .ctitle,.k-device>.v84-cover-fallback b{order:1;font:600 clamp(12px,1.25vw,19px)/1.2 Literata,Georgia,serif!important;color:#26282a!important;-webkit-line-clamp:5}
.k-device>.cover .cauthor,.k-device>.v84-cover-fallback span{order:2;font:italic 400 clamp(10px,.9vw,13px)/1.3 Literata,Georgia,serif!important;letter-spacing:0!important;text-transform:none!important;color:#4a4d50!important}
.k-device>.v84-cover-fallback b{font-size:22px!important}
.k-device>.v84-cover-fallback span{font-size:14px!important}
#results.list .k-device>.cover .ctitle,#results.list .k-device>.cover .cauthor{display:none}
.v97-catalog #results.grid .cover-slot.k-device{border-radius:0!important;box-shadow:none!important}

/* Página do livro no Kindle: faixa mostarda. */
.kindle-mode .v84-opening{background:var(--k-mustard);border-block-color:var(--k-mustard-line)}
.kindle-mode .v84-opening h2,.kindle-mode .v84-acervo-line small{color:rgba(46,36,16,.72)}
.kindle-mode .v84-opening .v84-origin{color:#5A0F1E}
.kindle-mode .v84-cover-wrap{width:220px;flex-basis:220px}
.kindle-mode .v84-cover-slot.k-device{width:220px}
.k-formato small{display:block}
.k-formato strong{display:inline-flex;align-items:center;gap:6px}
.k-formato strong::before{content:"";width:9px;height:12px;border:1.6px solid currentColor;border-radius:2px;border-bottom-width:3px}

/* Catálogo do Kindle: sem mapa, editoras, exemplares e estantes. */
.kindle-mode .v97-view-tabs .map-entry,.kindle-mode .v97-view-tabs a[href="/editoras/"],.kindle-mode .v97-map-button,.kindle-mode .control-copies,.kindle-mode .catalogue-legend{display:none!important}
.kindle-mode .v97-heading h1::after{content:"";display:inline-block;width:.42em;height:.55em;margin-left:.22em;border:3px solid var(--k-mustard-line);border-bottom-width:7px;border-radius:5px;vertical-align:.06em}

/* "Buscar nas duas bases" */
.k-both{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:14px 2px 18px;font:500 14px/1.3 Inter,sans-serif;color:inherit;cursor:pointer;user-select:none}
.k-both input{width:18px;height:18px;margin:0;accent-color:#650D20;cursor:pointer}
.k-both small{font:400 12.5px/1.3 Inter,sans-serif;opacity:.65}

/* Selo Físico / Kindle nos resultados da busca conjunta */
.k-format{display:inline-flex;align-items:center;margin:10px 0 6px;padding:2px 8px;border-radius:99px;font:600 10px/1.5 Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.k-format--kindle{background:var(--k-mustard);color:var(--k-ink)}
.k-format--fisico{background:#650D20;color:#fff}
#results.list .k-format{margin:0 0 4px}

/* Menu: Acervo › Físico e Kindle */
.v77-menu-item.k-sub{opacity:1;transform:none;animation:none}
.v77-menu-item.k-sub a{min-height:34px;padding-left:22px}
.v77-menu-item.k-sub a>span{font-size:20px!important;line-height:1.3}
.v77-menu-item.k-sub a>span::before{content:"› ";color:#650d20;opacity:.6}
.v77-menu-item.k-sub a>strong{font-size:13px}
.v77-menu-item.k-sub:last-of-type{margin-bottom:6px}

/* Prioridade sobre os fundos do tema (v29/v37). */
html[data-theme] .cover-slot.k-device,html .cover-slot.k-device{background:transparent!important;background-color:transparent!important}
html[data-theme] .cover-slot.k-device>img,html .cover-slot.k-device>img{background:var(--k-eink)!important}
html .k-device>.v84-cover-fallback[hidden]{display:none!important}

/* Capa (v104): busca com "Incluir livros do Kindle" e bloco Kindle */
.k-hero-opt{display:flex;align-items:center;gap:9px;margin:12px 2px 0;color:#fff;font:500 14px/1.3 Inter,sans-serif;cursor:pointer;user-select:none}
.k-hero-opt input{width:17px;height:17px;margin:0;accent-color:var(--k-mustard);cursor:pointer}
.k-hero-opt small{opacity:.7;font-weight:400}
.k-hero-more{display:inline-block;margin-top:10px;color:#F3DFA8;font:500 15px/1.3 Inter,sans-serif;text-decoration:none;border-bottom:1px solid rgba(243,223,168,.45)}
.k-hero-more:hover{border-bottom-color:#F3DFA8}
/* v106: bloco Kindle no alto (no lugar de Autores); Autores desce, em duas colunas. */
.v76-bento>.k-home-tile{grid-area:kindle;background:var(--k-mustard)!important;border-color:var(--k-mustard-line)!important;display:flex;flex-direction:column;align-items:flex-start;padding:24px 24px 22px;color:var(--k-ink)}
.k-home-tile .k-eyebrow{display:block;margin:0 0 14px;font:600 11.5px/1 Inter,Arial,sans-serif;letter-spacing:.18em;color:#5A0F1E}
.k-home-tile strong{display:block;font:400 54px/1 Newsreader,Georgia,serif;color:var(--k-ink);margin:0 0 6px;font-variant-numeric:lining-nums tabular-nums}
.k-home-tile p{margin:0 0 16px;font:400 14px/1.45 Inter,sans-serif;color:var(--k-ink)}
.k-home-tile a.k-go{margin-top:auto;display:inline-flex;padding:9px 16px;border-radius:99px;border:1px solid #5A0F1E;color:#5A0F1E;font:500 14px Inter,sans-serif;text-decoration:none}
.k-home-tile a.k-go:hover{background:#5A0F1E;color:#fff}
.k-home-shelf{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;width:100%}
.k-home-shelf a{flex:1 1 0;min-width:0;max-width:96px;text-decoration:none;color:var(--k-ink);font:400 11.5px/1.25 Inter,sans-serif}
.k-home-shelf a>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.k-home-shelf a:nth-child(odd){transform:rotate(-2deg)}.k-home-shelf a:nth-child(even){transform:rotate(1.5deg)}
.k-home-shelf .cover-slot{width:100%;margin-bottom:8px}
.v92-home .k-bento .v76-authors-tile{min-height:0;display:grid;grid-template-columns:1fr 1fr;column-gap:44px;align-content:start}
.v92-home .k-bento .v76-authors-tile>h2,.v92-home .k-bento .v76-authors-tile>.more{grid-column:1/-1}
.v92-home .k-bento .v76-authors-tile>.more{margin-top:18px}
@media(min-width:1001px){.v92-home .v76-bento.v80-bento.k-bento{grid-template-areas:'hero kindle rosa' 'hero kindle map' 'recent recent discovery' 'classes classes discovery' 'authors authors discovery' 'pubs pubs pubs'}}
@media(max-width:1000px){.v92-home .v76-bento.v80-bento.k-bento{grid-template-areas:'hero hero' 'kindle rosa' 'kindle map' 'recent recent' 'classes classes' 'authors authors' 'discovery discovery' 'pubs pubs'}}
@media(max-width:760px){.v92-home .k-bento .v76-authors-tile{grid-template-columns:1fr}.k-home-shelf a{max-width:none}}

/* v106: coluna da direita — Rosa + Da estante no alto; Da leitura + Mapa ampliado embaixo (o Mapa ocupa o que sobrar). */
@media(min-width:1001px){.v92-home .v76-bento.v80-bento.k-bento{grid-template-areas:'hero kindle rosa' 'hero kindle random' 'recent recent discovery' 'classes classes discovery' 'authors authors discovery' 'pubs pubs pubs'}}
@media(max-width:1000px){.v92-home .v76-bento.v80-bento.k-bento{grid-template-areas:'hero hero' 'kindle rosa' 'kindle random' 'recent recent' 'classes classes' 'authors authors' 'discovery discovery' 'pubs pubs'}}
.v92-home .k-bento>.v76-random-tile{grid-area:random!important;padding:24px;border-radius:22px;min-height:0}
.v92-home .k-bento>.v76-random-tile h2{margin-top:18px}
.v92-home .k-bento .v80-discovery{align-self:stretch!important;grid-template-columns:1fr!important;grid-template-rows:auto 1fr!important}
.v92-home .k-bento .v80-discovery .v92-reading-card{min-height:0!important}
.v92-home .k-bento .v80-discovery .v92-reading-quote blockquote{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}
.k-map-big{grid-area:auto!important;display:flex;flex-direction:column;padding:26px;border-radius:22px;min-height:340px;text-decoration:none;background:rgba(255,255,255,.62);border:1px solid #DED8D2;box-sizing:border-box;color:#1E1B18}
.k-map-head{display:block;position:relative;color:inherit;text-decoration:none}
.k-map-head>span{display:block;margin:0 0 17px;font:600 11.5px/1 Inter,Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#650D20}
.k-map-head .v76-tile-icon{position:absolute;top:-6px;right:0;width:28px;height:28px;stroke:#650D20;stroke-width:1.4}
.k-map-head strong{display:block;font:400 58px/1 Newsreader,Georgia,serif;color:#650D20;margin:22px 0 8px;font-variant-numeric:lining-nums tabular-nums}
.k-map-head p{margin:0;font-size:14px;line-height:1.45}
.k-country{flex:1 1 auto;display:flex;flex-direction:column;margin-top:20px;padding-top:18px;border-top:1px solid rgba(101,13,32,.16);min-height:0}
.k-country small{font:600 10.5px/1 Inter,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#8a6f62}
.k-country-shape{flex:1 1 0;min-height:110px;display:flex;align-items:center;justify-content:center;margin:14px 0 12px}
.k-country-shape svg{width:100%;height:100%;max-height:230px}
.k-country-shape path{fill:#650D20;transition:fill .2s}
.k-country-shape:hover path{fill:#8a1830}
.k-country h3{margin:0 0 4px;font:400 23px/1.2 Newsreader,Georgia,serif}
.k-country h3 a{color:inherit;text-decoration:none}
.k-country p{margin:0 0 14px;font:400 13.5px/1.4 Inter,sans-serif;color:#5b4f47}
.k-country-next{align-self:flex-start;border:1px solid #650D20;background:transparent;color:#650D20;border-radius:999px;padding:9px 16px;font:500 13px/1 Inter,sans-serif;cursor:pointer}
.k-country-next:hover{background:rgba(101,13,32,.07)}
@media(max-width:1000px){.v92-home .k-bento .v80-discovery{grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important}.k-country-shape{flex:none;height:170px}}
@media(max-width:600px){.v92-home .k-bento .v80-discovery{grid-template-columns:1fr!important}}
