/* AcheiPDF Discovery 2.0 — imagem A4 inteira, miniatura leve e menu acessivel. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(330px,390px);
    gap:22px;
    align-items:start;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.content-area{min-width:0}
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{min-width:0}
}
body.single .layout.rpp-disc-position-bottom .rpp-disc-column{margin-top:26px}
.rpp-disc{min-width:0;margin:0 0 20px;font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,sans-serif;color:#183951}
.rpp-disc *{box-sizing:border-box}
.rpp-disc-sticky{position:sticky;top:10px;z-index:2;background:#f4f7fb;padding:6px 0 12px}
.rpp-disc-heading{display:flex;align-items:center;gap:9px;min-height:38px;border-bottom:1px dashed #b4cddd;padding:0 1px 10px}
.rpp-disc-heading>svg{width:24px;height:24px;color:#286fa0}
.rpp-disc-heading h2{margin:0;font-size:17px;line-height:1.4;font-weight:650;letter-spacing:-.017em;color:#153f5f}
.rpp-disc-menu{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:10px 0 2px;scrollbar-width:thin}
.rpp-disc-filter{border:1px solid #b5cfe0;border-radius:999px;background:#fff;color:#21516f;padding:7px 10px;display:inline-flex;gap:5px;align-items:center;justify-content:center;white-space:nowrap;font:500 12px/1.2 inherit;cursor:pointer;min-height:35px;flex:0 0 auto}
.rpp-disc-filter svg{height:16px;width:16px}
.rpp-disc-filter[aria-pressed="true"]{background:#e1f3fc;border-color:#6198b9;color:#103f5d}
.rpp-disc-filter:hover{background:#e9f5fb}
.rpp-disc-filter:focus-visible{outline:3px solid #195f88;outline-offset:2px}
.rpp-disc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rpp-disc-card{display:flex;flex-direction:column;min-width:0;color:#24475d;text-decoration:none;background:#fff;border:1px solid #c0d5e5;border-radius:13px;box-shadow:0 5px 15px rgba(38,76,99,.06);overflow:hidden;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.rpp-disc-card:hover{border-color:#689bc1;box-shadow:0 9px 18px rgba(25,68,97,.12);transform:translateY(-2px)}
.rpp-disc-card:focus-visible{outline:3px solid #1a658c;outline-offset:2px}
.rpp-disc-media{display:grid;place-items:center;min-width:0;aspect-ratio:5/7;overflow:hidden;background:#f3f7fa;border-bottom:1px dashed #c7d9e5}
.rpp-disc-image{display:block;width:100%;height:100%;object-fit:contain;image-rendering:auto}
.rpp-disc-body{display:flex;flex-direction:column;gap:5px;padding:9px 9px 10px;min-width:0}
.rpp-disc-category{display:flex;align-items:center;gap:5px;min-width:0;color:#47738e;font:500 11px/1.4 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif}
.rpp-disc-category svg{flex:0 0 13px;width:13px;height:13px}
.rpp-disc-category span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rpp-disc-title{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#163c57;font:500 13px/1.5 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif;min-width:0}
.rpp-disc-card:hover .rpp-disc-title{text-decoration:underline;text-underline-offset:2px}
.rpp-disc-card[hidden]{display:none!important}
body.single .layout.rpp-disc-position-bottom{display:block;width:100%}
@media(min-width:1080px){
  body.single .layout.rpp-disc-position-bottom .rpp-disc-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.single .layout.rpp-disc-position-bottom .rpp-disc-sticky{position:static}
}
@media(min-width:1080px) and (max-width:1230px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side{grid-template-columns:minmax(0,1fr) minmax(320px,340px);gap:16px}
}
@media(max-width:1079px){
  body.single .layout.rpp-disc-active{display:block!important}
  .rpp-disc-column{margin:25px 0 10px;max-width:100%}
  .rpp-disc{width:100%}
  .rpp-disc-sticky{position:static;padding-bottom:10px}
  .rpp-disc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .rpp-disc-media{aspect-ratio:5/7}
  .rpp-disc-body{padding:10px 12px 12px}
  .rpp-disc-title{font-size:14px}
  .rpp-disc-category{font-size:12px}
}
@media(max-width:620px){
  .rpp-disc-grid{gap:9px}
  .rpp-disc-heading h2{font-size:17px}
  .rpp-disc-sticky{padding:4px 0 9px}
  .rpp-disc-card{border-radius:12px}
  .rpp-disc-body{padding:8px 9px 10px;gap:5px}
  .rpp-disc-title{font-size:12.5px}
  .rpp-disc-category{font-size:10.8px}
  .rpp-disc-filter{padding:7px 10px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .rpp-disc-sheet-placeholder-media,
  .rpp-disc-sheet-card--loading .rpp-disc-sheet-media{animation:none}
  .rpp-disc-sheet-card--entering{opacity:1;transform:none}
  .rpp-disc-card{transition:none}
  .rpp-disc-card:hover{transform:none}
}


/* Descoberta: aprimore alinhamento externo, leitura e filtros (v2.1). */
@media(min-width:1080px){
  /* No reserved gutter: header and footer touch both viewport edges. */
  html:has(body.single .layout.rpp-disc-active.rpp-disc-position-side){
    scrollbar-gutter:auto;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side{
    grid-template-columns:minmax(0,1fr) minmax(340px,410px);
    gap:20px;
    justify-content:stretch;
    width:100%;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-grid{
    min-width:0;width:100%;
  }
}
@media(min-width:1080px) and (max-width:1230px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side{
    grid-template-columns:minmax(0,1fr) minmax(320px,350px);
    gap:16px;
  }
}
.rpp-disc .rpp-disc-menu{
  display:grid;
  grid-template-columns:repeat(var(--rpp-tabs,3),minmax(0,1fr));
  align-items:center;
  width:100%;
  gap:8px;
  overflow:visible;
}
.rpp-disc .rpp-disc-filter{
  box-sizing:border-box;width:100%;min-width:0;
  padding-inline:5px;gap:5px;
  white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
  font-size:12px;line-height:1.2;
}
.rpp-disc .rpp-disc-filter svg{flex:0 0 15px;width:15px;height:15px}
.rpp-disc-category .rpp-disc-pages{
  margin-left:auto;flex:0 0 auto;
  color:#47738e;font-size:10px;font-weight:500;
  white-space:nowrap;
  padding:1px 4px;
  background:#edf7fe;border:1px solid #c7e3f2;border-radius:5px;
}
.rpp-disc .rpp-disc-category span{
  flex:1 1 auto;
}
@media(max-width:370px){
  .rpp-disc .rpp-disc-menu{gap:5px}
  .rpp-disc .rpp-disc-filter{padding-inline:3px;font-size:11px;gap:3px}
  .rpp-disc .rpp-disc-filter svg{width:13px;height:13px;flex-basis:13px}
  .rpp-disc-category .rpp-disc-pages{font-size:9px;padding-inline:3px}
}

/* Related below: show unique A4 previews without cutting worksheets. */
.rpp-wrap .rpp-img-sheet{object-fit:contain;background:#f7f9fb}


/* AcheiPDF 2.2: categorias reais (etapa + materia) em uma unica linha. */
.rpp-disc .rpp-disc-taxonomies{
  display:flex;align-items:center;gap:5px;
  min-width:0;width:100%;max-width:100%;overflow:hidden;
}
.rpp-disc .rpp-disc-taxonomy{
  display:inline-flex;align-items:center;gap:3px;
  min-width:0;flex:0 1 auto;overflow:hidden;
  white-space:nowrap;color:#386988;
  font:500 10px/1.35 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
}
.rpp-disc .rpp-disc-taxonomy svg{
  flex:0 0 12px;width:12px;height:12px;
}
.rpp-disc .rpp-disc-taxonomy-name{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;
}
.rpp-disc .rpp-disc-category .rpp-disc-taxonomies{flex:1 1 auto}
.rpp-disc .rpp-disc-category .rpp-disc-taxonomy{flex:0 1 auto}

/* Painel contextual permanente quando a lateral tem zero recomendacoes. */
.rpp-disc-column{
  display:flex;flex-direction:column;gap:18px;min-width:0;align-self:start;
}
.rpp-disc-column .rpp-disc{margin-bottom:0}
.rpp-disc-current{
  min-width:0;box-sizing:border-box;
  padding:15px 13px 16px;background:#fff;
  border:1px solid #c1d9e9;border-radius:17px;
  box-shadow:0 6px 22px rgba(29,76,109,.06);
  color:#1b4967;font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,sans-serif;
}
.rpp-disc-current *{box-sizing:border-box}
.rpp-disc-current-heading{
  display:flex;align-items:center;gap:9px;
  padding:0 0 11px;margin:0 0 12px;
  border-bottom:1px dashed #b8d1e1;
}
.rpp-disc-current-heading>svg{
  width:30px;height:30px;flex:0 0 30px;
  padding:5px;border-radius:9px;border:1px solid #c5e1f0;
  background:#edf7fd;color:#2377a8;
}
.rpp-disc-current-heading>div{flex:1;min-width:0}
.rpp-disc-current-heading h2{
  margin:0;color:#144667;font-size:17px;line-height:1.3;
  font-weight:650;letter-spacing:-.01em;
}
.rpp-disc-current-heading p{
  margin:3px 0 0;color:#5a7890;font-size:12px;line-height:1.35;
}
.rpp-disc-context-taxonomies{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  margin:0 0 12px;
}
.rpp-disc-context-term{
  display:inline-flex;gap:5px;align-items:center;
  max-width:100%;min-width:0;padding:6px 9px;
  border:1px solid #cee1ed;border-radius:999px;
  background:#f1f8fc;color:#255d80;text-decoration:none;
  font-size:12px;font-weight:500;line-height:1.3;
}
.rpp-disc-context-term svg{height:15px;width:15px;flex:0 0 15px}
.rpp-disc-context-term span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rpp-disc-context-term:hover{color:#17486a;background:#e7f3fa;border-color:#7fb2d2}
.rpp-disc-sheet-nav{display:block;margin:0}
.rpp-disc-sheet-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;margin:0;min-width:0;
}
.rpp-disc-sheet-card{
  min-width:0;display:flex;flex-direction:column;
  overflow:hidden;text-decoration:none;
  border:1px solid #c4d8e6;border-radius:12px;
  background:#fff;box-shadow:0 3px 9px rgba(43,86,117,.045);
  transition:border-color .15s ease,transform .15s ease,opacity .16s ease;
}
.rpp-disc-sheet-card:hover{border-color:#699ec3;transform:translateY(-2px)}
.rpp-disc-sheet-card:focus-visible,.rpp-disc-context-term:focus-visible{
  outline:3px solid #1d648d;outline-offset:2px;
}
.rpp-disc-sheet-media{
  position:relative;display:grid;place-items:center;
  aspect-ratio:5/7;overflow:hidden;min-width:0;
  background:#f4f8fb;border-bottom:1px dashed #d4e4ec;
}
.rpp-disc-sheet-image{display:block;object-fit:contain;width:100%;height:100%;transition:opacity .16s ease}
.rpp-disc-sheet-placeholder{
  min-width:0;display:flex;flex-direction:column;overflow:hidden;
  border:1px solid #c4d8e6;border-radius:12px;background:#fff;
  box-shadow:0 3px 9px rgba(43,86,117,.045);pointer-events:none
}
.rpp-disc-sheet-placeholder-media{
  display:block;aspect-ratio:5/7;min-width:0;
  border-bottom:1px dashed #d4e4ec;
  background:linear-gradient(100deg,#eef4f7 22%,#f8fbfd 40%,#eef4f7 58%);
  background-size:220% 100%;animation:rpp-disc-skeleton 1.15s ease-in-out infinite
}
.rpp-disc-sheet-placeholder-caption{
  display:flex;flex-direction:column;justify-content:center;gap:6px;
  min-height:35px;padding:8px 10px 9px;background:#fff
}
.rpp-disc-sheet-placeholder-caption i{
  display:block;height:7px;border-radius:999px;background:#e6eef3
}
.rpp-disc-sheet-placeholder-caption i:first-child{width:82%}
.rpp-disc-sheet-placeholder-caption i:last-child{width:55%}
.rpp-disc-sheet-card--loading .rpp-disc-sheet-image{opacity:0}
.rpp-disc-sheet-card--loading .rpp-disc-sheet-media{
  background:linear-gradient(100deg,#eef4f7 22%,#f8fbfd 40%,#eef4f7 58%);
  background-size:220% 100%;animation:rpp-disc-skeleton 1.15s ease-in-out infinite
}
.rpp-disc-sheet-card--entering{opacity:.01;transform:translateY(6px)}
@keyframes rpp-disc-skeleton{
  0%{background-position:100% 0}
  100%{background-position:-100% 0}
}
.rpp-disc-sheet-noimage{color:#4081a7;display:grid;place-items:center}
.rpp-disc-sheet-noimage svg{width:45px;height:45px}
.rpp-disc-sheet-index{
  position:absolute;top:7px;left:7px;
  min-width:24px;height:24px;padding:0 6px;
  display:grid;place-items:center;
  border:1px solid #8dbbd6;background:rgba(246,252,255,.95);
  color:#184d73;border-radius:8px;
  font-size:12px;font-weight:700;line-height:1;
}
.rpp-disc-sheet-caption{
  display:block;min-width:0;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
  padding:8px 8px 9px;color:#214e6c;font-size:12px;
  font-weight:500;line-height:1.35;
}
.rpp-disc-sheets-more{margin-top:12px}
.rpp-disc-sheets-more summary{
  display:flex;align-items:center;justify-content:center;
  gap:7px;cursor:pointer;
  padding:11px 13px;border:1px dashed #8db5d2;
  border-radius:10px;background:#eff8fc;color:#205c81;
  font-size:13px;font-weight:550;list-style:none;
}
.rpp-disc-sheets-more summary::-webkit-details-marker{display:none}
.rpp-disc-sheets-more summary svg{width:16px;height:16px}
.rpp-disc-sheets-more[open] summary{margin-bottom:12px}
.rpp-disc-goals{border-top:1px dashed #b8d1e1;margin-top:14px;padding-top:11px}
.rpp-disc-goals h3{
  font-size:13px;color:#1b577d;font-weight:650;
  margin:0 0 9px;line-height:1.4;
}
.rpp-disc-goals ul{padding:0;margin:0;list-style:none;display:grid;gap:7px}
.rpp-disc-goals li{display:flex;gap:7px;align-items:start;font-size:12px;line-height:1.4;color:#365c73}
.rpp-disc-goals li svg{height:14px;width:14px;flex:0 0 14px;color:#288a76;margin-top:1px}
.rpp-disc-context-search label{display:block;color:#315d79;font-size:13px;margin-bottom:8px}
.rpp-disc-context-search>div{display:flex;gap:7px}
.rpp-disc-context-search input{min-width:0;flex:1;border:1px solid #accbdd;border-radius:10px;padding:10px 9px;font-size:13px;background:#fff;color:#173e58}
.rpp-disc-context-search button{border:1px solid #3384b6;border-radius:10px;background:#edf8ff;color:#155b85;padding:8px 10px;font-weight:600;cursor:pointer}
.iapp-editorial-collection .iapp-activity-section{scroll-margin-top:34px}
@media(min-width:1080px){
  .rpp-disc-current{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto;scrollbar-width:thin}
  .admin-bar .rpp-disc-current{top:46px;max-height:calc(100vh - 58px)}
}
@media(max-width:1079px){
  .rpp-disc-current{position:static;max-height:none;overflow:visible}
  .rpp-disc-sheet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .rpp-disc-current{padding:13px 11px}
  .rpp-disc-sheet-grid{gap:9px}
  .rpp-disc-sheet-caption{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .rpp-disc-sheet-card{transition:none}
  .rpp-disc-sheet-card:hover{transform:none}
}

/* Categories without related archive content remain factual, not empty links. */
.rpp-disc-context-term--static{background:#f8fbfd;border-color:#dce8f1;cursor:default}
.rpp-disc-context-term--static:hover{background:#f8fbfd;color:#255d80;border-color:#dce8f1}


/* AcheiPDF 2.2.2: seguir o scroll principal, sem scrollbar dentro da lateral. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    position:sticky!important;
    top:var(--rpp-side-top,22px)!important;
    align-self:start!important;
    max-height:none!important;
    height:max-content;
    overflow:visible!important;
    scrollbar-width:auto;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-current{
    position:static!important;
    top:auto!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    scrollbar-width:auto;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sticky{
    position:static!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-current::-webkit-scrollbar{
    display:none!important;
  }
}
.rpp-disc-sheet-card[hidden],.rpp-disc-card[hidden]{
  display:none!important;
}
.rpp-disc-mobile-more[hidden]{display:none!important}
.rpp-disc-mobile-more{
  width:100%;display:flex;align-items:center;justify-content:center;gap:8px;
  margin:12px 0 0;padding:10px 12px;
  background:#eff8fc;border:1px dashed #8db5d2;border-radius:10px;
  color:#205c81;cursor:pointer;font-size:13px;font-weight:550;
}
.rpp-disc-mobile-more svg{width:16px;height:16px;transition:transform .15s ease}
.rpp-disc-mobile-more[aria-expanded="true"] svg{transform:rotate(180deg)}
.rpp-disc-mobile-more:focus-visible{outline:3px solid #1c6892;outline-offset:2px}
@media(max-width:1079px){
  body.single .layout.rpp-disc-active>.rpp-disc-column{
    position:static!important;top:auto!important;
    height:auto!important;max-height:none!important;
    overflow:visible!important;
  }
  .rpp-disc-current{position:static!important;max-height:none!important;overflow:visible!important}
  .rpp-disc-sheet-nav.rpp-disc-mobile-clamped:not(.rpp-disc-mobile-expanded)
  .rpp-disc-sheet-grid>.rpp-disc-sheet-card:nth-child(n+7){
    display:none!important;
  }
}


/* AcheiPDF 2.2.3: cada bloco independente, sem borda envolvendo tudo. */
.rpp-disc-column>.rpp-disc-current,
body.single .layout.rpp-disc-active .rpp-disc-current{
  padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;
  border-radius:0!important;box-shadow:none!important;
  overflow:visible!important;
}
.rpp-disc-current-heading{
  margin:0 0 12px!important;
  padding:12px 13px!important;
  border:1px solid #c9ddec!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 4px 16px rgba(29,76,109,.045);
}
.rpp-disc-context-taxonomies{
  margin:0 0 12px!important;
  padding:0 1px;
}
.rpp-disc-sheet-nav{border:0;background:transparent;overflow:visible}
.rpp-disc-sheet-grid{gap:10px}
.rpp-disc-goals{
  background:#fff;border:1px solid #c9ddec!important;
  border-radius:14px;
  padding:13px 14px!important;
  margin:14px 0 0!important;
  box-shadow:0 5px 16px rgba(29,76,109,.045);
}
.rpp-disc-goals h3{margin:0 0 9px}
.rpp-disc-mobile-more{margin:12px 0 0}
.rpp-disc-sheet-sentinel{display:block;height:1px;width:100%;pointer-events:none}
.rpp-disc-sheet-status:empty{display:none}
.rpp-disc-sheet-status{font-size:12px;color:#496b82;margin:6px 0 0}
body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
  margin-bottom:0!important;padding-bottom:0!important;
}
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    overflow:visible!important;
    max-height:none!important;
    position:sticky!important;
    top:var(--rpp-side-top,22px)!important;
  }
  .rpp-disc-sheet-nav .rpp-disc-mobile-more{
    padding:9px 12px;font-size:12px;
  }
}
@media(max-width:1079px){
  .rpp-disc-sheet-nav .rpp-disc-mobile-more{width:100%}
}


/* v2.2.12: native sticky viewport, no transformed/elastic sidebar.
   Its clipped list follows page wheel deltas 1:1; no second scrollbar. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    position:sticky!important;
    top:var(--rpp-viewport-top,22px)!important;
    transform:none!important;
    transition:none!important;
    max-height:calc(100vh - var(--rpp-viewport-top,22px) - 16px)!important;
    overflow:hidden!important;
    overflow-anchor:none;
    scroll-behavior:auto!important;
    scrollbar-width:none!important;
    margin-bottom:var(--rpp-tail-gap,0px)!important;
    padding-bottom:0!important;
    align-self:start!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column::-webkit-scrollbar{
    display:none!important;
  }
}
@media(max-width:1079px){
  body.single .layout.rpp-disc-active>.rpp-disc-column{
    position:static!important;top:auto!important;
    transform:none!important;overflow:visible!important;
    max-height:none!important;margin-bottom:0!important;
  }
}


/* v2.3.0 - Pinterest-inspired printable previews.
   Presentation only: never alter sticky, scroll, or card loading behavior. */
@media (min-width:1231px) {
  body.single .layout.rpp-disc-active.rpp-disc-position-side {
    grid-template-columns:minmax(0,1fr) 465px;
    gap:20px;
  }
}
@media (min-width:1080px) and (max-width:1230px) {
  body.single .layout.rpp-disc-active.rpp-disc-position-side {
    grid-template-columns:minmax(0,1fr) minmax(350px,370px);
    gap:16px;
  }
}
@media (min-width:1080px) {
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sheet-grid,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sheet-card,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sheet-placeholder,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-card {
    border-radius:15px;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sheet-placeholder-caption {
    min-height:45px;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sheet-caption {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    white-space:normal;
    min-height:45px;
    overflow:hidden;
    padding:8px 10px 9px;
    font-size:13px;
    line-height:1.4;
    font-weight:550;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-title {
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    white-space:normal;
    min-height:41px;
    line-height:1.4;
    font-size:13px;
    overflow:hidden;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-media,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sheet-media {
    aspect-ratio:5/7;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-image,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sheet-image {
    object-fit:contain;
  }
}

/* Wide screen discovery column adapts with the page canvas. */
@media(min-width:1440px){
 body.single .layout.rpp-disc-active.rpp-disc-position-side{
  grid-template-columns:minmax(0,1fr) minmax(465px,27.5%);
  gap:24px;
 }
}
@media(min-width:1680px){
 body.single .layout.rpp-disc-active.rpp-disc-position-side{
  grid-template-columns:minmax(0,1fr) minmax(530px,28%);
  gap:24px;
 }
}

/* v2.3.3: lateral relacionada segue fisicamente a rolagem da postagem.
   No meio do percurso ela se move 1:1 com a pagina. Somente as extremidades
   podem ficar presas ao viewport; nao existe viewport interno nem scroll oculto. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    position:relative!important;
    top:0!important;
    transform:translate3d(0,var(--rpp-side-shift,0px),0)!important;
    transition:none!important;
    will-change:transform;
    align-self:start!important;
    height:max-content!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-anchor:none;
    scroll-behavior:auto!important;
    scrollbar-width:auto!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column::-webkit-scrollbar{
    display:none!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-current,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sticky{
    position:static!important;
    top:auto!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }
}
@media(max-width:1079px){
  body.single .layout.rpp-disc-active>.rpp-disc-column{
    position:static!important;
    top:auto!important;
    transform:none!important;
    will-change:auto!important;
    overflow:visible!important;
    max-height:none!important;
  }
}

/* v2.3.4: sem elastico. O deslocamento e um offset relativo discreto, nao uma
   transformacao animada. A lateral percorre o trecho livre com a pagina e so
   prende nas extremidades; o JS tambem preserva o alinhamento do ultimo PDF. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    position:relative!important;
    top:var(--rpp-side-offset,0px)!important;
    transform:none!important;
    transition:none!important;
    will-change:auto!important;
    align-self:start!important;
    height:max-content!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-anchor:none!important;
    scroll-behavior:auto!important;
    scrollbar-width:auto!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column::-webkit-scrollbar{
    display:none!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-current,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sticky{
    position:static!important;
    top:auto!important;
    transform:none!important;
    transition:none!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    scroll-behavior:auto!important;
  }
}
@media(max-width:1079px){
  body.single .layout.rpp-disc-active>.rpp-disc-column{
    position:static!important;
    top:auto!important;
    transform:none!important;
    transition:none!important;
    will-change:auto!important;
    overflow:visible!important;
    max-height:none!important;
  }
}

/* v2.3.7: segue a rolagem sem mola. O offset relativo muda apenas quando
   uma extremidade precisa ficar presa; no trecho livre ele permanece constante,
   então a lateral anda 1:1 com a postagem. Sem transform nem transition. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    position:relative!important;
    top:var(--rpp-side-offset,0px)!important;
    transform:none!important;
    transition:none!important;
    will-change:auto!important;
    align-self:start!important;
    max-height:none!important;
    height:max-content!important;
    overflow:visible!important;
    overflow-anchor:none!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-current,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sticky{
    position:static!important;
    top:auto!important;
    transform:none!important;
    transition:none!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }
}
/* v2.4.9: rolagem sem elastico. A coluna usa um viewport sticky sem barra;
   o conteudo interno acompanha o scroll da pagina 1:1 e para apenas nas
   extremidades. Nao altera tamanho, quantidade ou grade das atividades. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    position:sticky!important;
    top:var(--rpp-viewport-top,22px)!important;
    align-self:start!important;
    transform:none!important;
    transition:none!important;
    will-change:auto!important;
    max-height:calc(100vh - var(--rpp-viewport-top,22px) - 16px)!important;
    height:auto!important;
    overflow:hidden!important;
    overflow-anchor:none!important;
    scroll-behavior:auto!important;
    scrollbar-width:none!important;
    margin-bottom:var(--rpp-tail-gap,0px)!important;
    padding-bottom:0!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column::-webkit-scrollbar{
    display:none!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-current,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sticky{
    position:static!important;
    top:auto!important;
    transform:none!important;
    transition:none!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }
}
@media(max-width:1079px){
  body.single .layout.rpp-disc-active>.rpp-disc-column{
    position:static!important;
    top:auto!important;
    transform:none!important;
    transition:none!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    margin-bottom:0!important;
  }
}
/* v2.4.11: somente o trecho intermediario vira fixed real.
   Topo e fim continuam usando o comportamento existente da v2.4.10. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column.rpp-disc-middle-fixed{
    position:fixed!important;
    top:var(--rpp-fixed-top,22px)!important;
    left:var(--rpp-fixed-left)!important;
    width:var(--rpp-fixed-width)!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
    transition:none!important;
    animation:none!important;
    margin-top:0!important;
    z-index:20;
  }
}

/* v2.5.0: descoberta por folha de outras postagens. */
.rpp-disc-season-badge{
  position:absolute;left:7px;bottom:7px;z-index:2;
  display:inline-flex;align-items:center;max-width:calc(100% - 14px);
  padding:4px 7px;border:1px solid #9bbcd1;border-radius:999px;
  background:rgba(248,253,255,.94);color:#245f80;
  font-size:10px;font-weight:650;line-height:1.1;white-space:nowrap;
  box-shadow:0 2px 7px rgba(31,80,111,.08)
}
.rpp-disc-sheet-card--seasonal{border-style:dashed}
.iapp-activity-section.rpp-selected-activity{
  position:relative;
  outline:3px dashed #2e88b8;
  outline-offset:6px;
  border-radius:12px;
  animation:rpp-selected-activity-pulse 3.2s ease-out both;
}
.iapp-activity-section.rpp-selected-activity::after{
  content:"Atividade selecionada";
  position:absolute;top:9px;right:9px;z-index:6;
  padding:6px 9px;border:1px solid #77adca;border-radius:999px;
  background:rgba(239,249,254,.96);color:#155b82;
  box-shadow:0 3px 10px rgba(24,78,109,.12);
  font:650 12px/1.2 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
  pointer-events:none;
  animation:rpp-selected-badge 3.2s ease-out both;
}
@keyframes rpp-selected-activity-pulse{
  0%{background:rgba(207,238,250,.62);box-shadow:0 0 0 7px rgba(53,145,190,.12)}
  55%{background:rgba(220,243,252,.34);box-shadow:0 0 0 4px rgba(53,145,190,.08)}
  100%{background:transparent;box-shadow:none;outline-color:rgba(46,136,184,0)}
}
@keyframes rpp-selected-badge{
  0%,62%{opacity:1;transform:translateY(0)}
  100%{opacity:0;transform:translateY(-4px)}
}
@media(prefers-reduced-motion:reduce){
  .iapp-activity-section.rpp-selected-activity,
  .iapp-activity-section.rpp-selected-activity::after{animation:none}
}

/* Fallback AdSense quando nao existe nenhuma atividade relacionada valida. */
.rpp-disc-fallback-ad{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:315px;
  padding:10px 12px 13px;
  border:1px solid #c9ddea;
  border-radius:17px;
  background:#fff;
  box-shadow:0 6px 21px rgba(29,76,109,.05);
  overflow:visible;
}
.rpp-disc-ad-label{
  margin:0 0 8px;
  color:#718594;
  font:500 11px/1.2 "Segoe UI Variable Text","Segoe UI",Arial,sans-serif;
  text-align:center;
  letter-spacing:.02em;
}
.rpp-disc-fallback-ad ins.adsbygoogle{
  display:block!important;
  width:300px!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:280px;
  margin:0 auto!important;
  overflow:visible!important;
}
@media(max-width:560px){
  .rpp-disc-fallback-ad{min-height:285px;padding:8px 6px 10px}
  .rpp-disc-fallback-ad ins.adsbygoogle{width:100%!important;min-height:250px}
}

/* v2.5.1: sidebar em scroll nativo, sem atraso da rolagem interna.
   O offset so muda nas travas de inicio/fim; entre elas, coluna e postagem
   percorrem exatamente os mesmos pixels no mesmo frame do navegador. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column,
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column.rpp-disc-middle-fixed{
    position:relative!important;
    top:var(--rpp-side-offset,0px)!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:100%!important;
    height:max-content!important;
    max-height:none!important;
    transform:none!important;
    transition:none!important;
    animation:none!important;
    will-change:auto!important;
    overflow:visible!important;
    overflow-anchor:none!important;
    align-self:start!important;
    margin:0!important;
    padding-bottom:0!important;
    z-index:auto!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-current,
  body.single .layout.rpp-disc-active.rpp-disc-position-side .rpp-disc-sticky{
    position:static!important;
    max-height:none!important;
    overflow:visible!important;
    transform:none!important;
    transition:none!important;
  }
}

/* v2.5.2: bordas sincronas pelo sticky do navegador, centro 1:1 nativo. */
@media(min-width:1080px){
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column{
    position:relative!important;
    top:var(--rpp-side-offset,0px)!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    width:100%!important;
    height:max-content!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-anchor:none!important;
    transform:none!important;
    transition:none!important;
    animation:none!important;
    will-change:auto!important;
    margin:0!important;
    align-self:start!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column.rpp-disc-edge-bottom{
    position:sticky!important;
    top:var(--rpp-bottom-stick-top,-1000px)!important;
    bottom:auto!important;
    margin:0!important;
  }
  body.single .layout.rpp-disc-active.rpp-disc-position-side>.rpp-disc-column.rpp-disc-edge-top{
    position:sticky!important;
    top:var(--rpp-viewport-top,22px)!important;
    bottom:auto!important;
    margin:0!important;
  }
}
