/* Componentes específicos do plugin: não sobrescreve estilos do tema. */
.tresd-news {
  --tn-gold: #ffd983;
  --tn-border: rgba(255,217,131,.22);
  margin: 36px 0 54px;
  padding: clamp(20px,3vw,38px);
  border: 1px solid var(--tn-border);
  border-radius: 26px;
  background: linear-gradient(135deg,rgba(20,29,32,.94),rgba(17,17,24,.92));
  color: #f8f6f0;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.tresd-news__intro { margin: 0 0 24px; }
.tresd-news__eyebrow { color: var(--tn-gold); font-weight: 800; letter-spacing: .13em; font-size: 11px; margin-bottom: 8px; }
.tresd-news__eyebrow span { padding-left: 7px; }
.tresd-news__intro h2 { color: #fff7e4; font-size: clamp(26px,3.1vw,39px); margin: 0 0 8px; line-height: 1.2; letter-spacing: -.02em; }
.tresd-news__intro p { color: #cfd1d0; margin: 0; line-height: 1.55; font-size: 15px; }
.tresd-news__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tresd-news__grid[data-count="1"] { grid-template-columns: minmax(0,480px); }
.tresd-news__grid[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tresd-news__grid[data-count="4"] { grid-template-columns: repeat(4,minmax(0,1fr)); }
.tresd-news__card { overflow: hidden; min-width: 0; border-radius: 18px; background: #171b21; border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; transition: transform .2s ease,border-color .2s ease; }
.tresd-news__card:hover { transform: translateY(-3px); border-color: rgba(255,217,131,.52); }
.tresd-news__media { aspect-ratio: 16 / 10; overflow:hidden; background: #242328; }
.tresd-news__media img { width:100%; height:100%; object-fit:cover; display:block; }
.tresd-news__placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; gap:3px; color:var(--tn-gold); background: radial-gradient(circle at 65% 28%,rgba(217,167,79,.30),transparent 40%),linear-gradient(140deg,#19232a,#3b2528); font-size:20px; letter-spacing:.15em; font-weight:800; }
.tresd-news__placeholder span:first-child { font-size:44px; line-height:1; color:#fff2c8; }
.tresd-news__content { display:flex; flex-direction:column; align-items:flex-start; flex:1; padding:20px; }
.tresd-news__type { color:var(--tn-gold); text-transform:uppercase; font-size:10px; letter-spacing:.11em; font-weight:800; margin-bottom:9px; }
.tresd-news__content h3 { font-size:19px; line-height:1.35; margin:0 0 9px; color:#fff7e9; overflow-wrap:anywhere; }
.tresd-news__content p { color:#c9ccce; font-size:13.5px; line-height:1.6; margin:0 0 20px; overflow-wrap:anywhere; }
.tresd-news__button { margin-top:auto; display:inline-flex; align-items:center; gap:10px; color:#16100a !important; background: linear-gradient(90deg,#e8be69,#ffe5a5); padding:11px 15px; border-radius:10px; text-decoration:none !important; font-weight:800; font-size:12px; min-height:40px; }
.tresd-news__button:hover { background:#fff0c7; }
.tresd-news__button:focus-visible { outline:3px solid #fff; outline-offset:3px; }
@media(max-width:900px){
  .tresd-news__grid,.tresd-news__grid[data-count="4"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:580px){
  .tresd-news { margin:24px 0 36px; padding:20px 15px; border-radius:19px; }
  .tresd-news__grid,.tresd-news__grid[data-count="2"],.tresd-news__grid[data-count="4"] { grid-template-columns:minmax(0,1fr); }
  .tresd-news__content { padding:17px; }
}
@media(prefers-reduced-motion:reduce){ .tresd-news__card { transition:none; } }

/* v1.1.0 — formatos banner e carrossel. Apenas dentro da seção do plugin. */
.tresd-news__banner,
.tresd-news__carousel { margin: 0 0 22px; min-width: 0; }
.tresd-news__banner { background: #151b1c; border: 1px solid rgba(255,217,131,.25); border-radius: 19px; overflow: hidden; }
.tresd-news__banner-media { width: 100%; background: #131818; }
.tresd-news__banner-media .tresd-news__image-link,
.tresd-news__banner-media .tresd-news__picture { display: block; width: 100%; }
.tresd-news__banner-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.tresd-news__banner-media .tresd-news__placeholder { min-height: 220px; }
.tresd-news__picture { display: block; width: 100%; height: 100%; }
.tresd-news__banner-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.tresd-news__banner-copy { min-width: 0; }
.tresd-news__banner-caption h3 { color: #fff4dd; font-size: clamp(17px,2.2vw,24px); line-height:1.25; margin: 0 0 6px; }
.tresd-news__banner-caption p { color:#d2d2cf; font-size: 14px; line-height:1.5; margin:0; }
.tresd-news__banner-caption .tresd-news__button { flex-shrink: 0; }
.tresd-news__grid { margin-top: 12px; }
.tresd-news__carousel { position: relative; }
.tresd-news__carousel-track { min-width: 0; }
.tresd-news__carousel-item[hidden] { display: none !important; }
.tresd-news__carousel-item .tresd-news__banner { margin-bottom: 0; }
.tresd-news__controls { display:none; align-items:center; justify-content:center; gap:15px; margin-top:13px; }
.tresd-news__carousel.is-ready .tresd-news__controls { display:flex; }
.tresd-news__controls button { display:inline-flex; align-items:center; justify-content:center; cursor:pointer; border:1px solid rgba(255,217,131,.38); border-radius:50%; background:#162320; color:#fbe0ac; width:34px; height:34px; font-size:25px; line-height:1; }
.tresd-news__dots { display:flex; align-items:center; justify-content:center; gap:9px; flex-wrap:wrap; }
.tresd-news__dots button { width:12px; height:12px; padding:0; color:transparent; font-size:0; background:rgba(255,217,131,.30); border:1px solid rgba(255,217,131,.38); }
.tresd-news__dots button[aria-current="true"] { background:#f5cb76; border-color:#f5cb76; transform:scale(1.13); }
.tresd-news__controls button:focus-visible,
.tresd-news__banner-media a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media(max-width:640px) {
  .tresd-news__banner-caption { align-items:flex-start; flex-direction:column; padding:15px 17px; }
  .tresd-news__banner-caption .tresd-news__button { width:100%; box-sizing:border-box; justify-content:center; }
  .tresd-news__banner { border-radius:13px; }
}

/* v1.2.0: ampliação opcional sem sair da página (cartões, banners e slides). */
.tresd-news__zoom-trigger { position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: inherit; cursor: zoom-in; }
.tresd-news__zoom-trigger .tresd-news__picture { display: block; width: 100%; height: 100%; }
.tresd-news__banner-media .tresd-news__zoom-trigger { height: auto; }
.tresd-news__zoom-trigger:focus-visible { outline: 3px solid #ffd983; outline-offset: -4px; }
.tresd-news__zoom-icon { position:absolute; bottom:12px; right:12px; display:grid; place-items:center; width:35px; height:35px; color:#fff; font-size:24px; background:rgba(0,0,0,.72); border:1px solid rgba(255,255,255,.65); border-radius:50%; pointer-events:none; }
.tresd-news-lightbox[hidden] { display:none !important; }
.tresd-news-lightbox { position:fixed; inset:0; z-index:2147482000; display:flex; justify-content:center; align-items:center; padding:clamp(14px,3vw,35px); box-sizing:border-box; background:rgba(0,0,0,.93); overscroll-behavior:contain; }
.tresd-news-lightbox__content { margin:0; display:flex; flex-direction:column; align-items:center; max-width:100%; max-height:100%; min-width:0; gap:10px; }
.tresd-news-lightbox__image { display:block; width:auto; height:auto; max-width:calc(100vw - 38px); max-height:calc(100vh - 120px); max-height:calc(100dvh - 120px); object-fit:contain; border-radius:8px; box-shadow:0 15px 40px rgba(0,0,0,.5); }
.tresd-news-lightbox__caption { max-width:90vw; color:#fdf3e0; font-size:14px; font-weight:600; text-align:center; line-height:1.5; }
.tresd-news-lightbox__close { position:absolute; z-index:1; top:max(12px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); width:46px; height:46px; padding:0; display:grid; place-items:center; border:2px solid #fff; border-radius:50%; background:#1a1b1b; color:#fff; cursor:pointer; font-family:Arial,sans-serif; font-size:29px; line-height:1; }
.tresd-news-lightbox__close:focus-visible { outline:3px solid #ffd983; outline-offset:3px; }
@media(max-width:640px){
 .tresd-news__zoom-icon { width:32px; height:32px; bottom:8px; right:8px; }
 .tresd-news-lightbox { padding:72px 9px 20px; }
 .tresd-news-lightbox__image { max-width:calc(100vw - 18px); max-height:calc(100dvh - 160px); }
 .tresd-news-lightbox__caption { font-size:13px; }
}
