/* Anúncio do Tigo Thanos na área de estudo. */
.tigo-thanos-dialog {
    width: min(740px, calc(100vw - 32px));
    max-height: min(880px, calc(100vh - 32px));
    max-height: min(880px, calc(100dvh - 32px));
    margin: auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e9e1d7;
    border-radius: 24px;
    background: #fffaf3;
    color: #211d19;
    box-shadow: 0 24px 80px rgba(27, 21, 16, .24);
    font-family: 'DM Sans', sans-serif;
}
.tigo-thanos-dialog::backdrop { background: rgba(24, 19, 15, .65); }
.tigo-thanos-dialog__inner { position: relative; }
.tigo-thanos-dialog__content { padding: clamp(24px, 5vw, 40px); }
.tigo-thanos-dialog__close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #e9e1d7;
    border-radius: 12px;
    background: rgba(255, 250, 243, .94);
    color: #211d19;
    box-shadow: 0 3px 16px rgba(0, 0, 0, .18);
}
.tigo-thanos-dialog__close:hover { background: #f3ece3; }
.tigo-thanos-player {
    overflow: hidden;
    border: 1px solid #e9e1d7;
    border-radius: 18px;
    background: #211d19;
}
.tigo-thanos-dialog .tigo-thanos-player {
    margin: 0;
    border: 0;
    border-radius: 0;
}
.tigo-thanos-player [hidden] { display: none; }
.tigo-thanos-player__screen { position: relative; background: #fff; }
.tigo-thanos-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.tigo-thanos-player__error { margin:0; padding:12px; background:var(--tg-cream,#fffaf3); color:var(--tg-ink,#211d19); font-size:1rem; }
.tigo-thanos-player__error a { color:inherit; text-decoration:underline; }
.tigo-thanos-dialog h2 {
    margin: 0;
    color: inherit;
    font: 700 clamp(1.5rem, 5vw, 2.25rem)/1.12 'Bricolage Grotesque', sans-serif;
    letter-spacing: -.035em;
}
.tigo-thanos-dialog__lead {
    max-width: 50ch;
    margin: 18px 0 0;
    color: #51483f;
    font-size: 1rem;
    line-height: 1.6;
}
.tigo-thanos-dialog__availability {
    margin: 15px 0 0;
    color: #6b5a4b;
    font-size: .875rem;
    line-height: 1.5;
}
.tigo-thanos-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}
.tigo-thanos-dialog__primary,
.tigo-thanos-dialog__secondary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}
.tigo-thanos-dialog__primary { background: #ff7a1a; color: #211d19; }
.tigo-thanos-dialog__primary:hover { background: #ed680e; color: #211d19; }
.tigo-thanos-dialog__secondary { border: 1px solid #d9cfc4; background: transparent; color: #211d19; }
.tigo-thanos-dialog__secondary:hover { background: #f3ece3; }
.tigo-thanos-dialog :is(button, a):focus-visible { outline: 3px solid #82400b; outline-offset: 3px; }

.dark .tigo-thanos-dialog {
    border-color: #4a3b2f;
    background: #211e1a;
    color: #f7f2ec;
}
.dark .tigo-thanos-player { border-color: #51453b; }
.dark .tigo-thanos-dialog__close { border-color: #51453b; background: #2b2824; color: #f7f2ec; }
.dark .tigo-thanos-dialog__close:hover { background: #40372f; }
.dark .tigo-thanos-dialog__lead { color: #e3d8ce; }
.dark .tigo-thanos-dialog__availability { color: #cbbdb0; }
.dark .tigo-thanos-dialog__secondary { border-color: #625448; color: #f7f2ec; }
.dark .tigo-thanos-dialog__secondary:hover { background: #40372f; }
.dark .tigo-thanos-dialog :is(button, a):focus-visible { outline-color: #ffc58c; }

@media (max-width: 480px) {
    .tigo-thanos-dialog { width:calc(100vw - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); border-radius:18px; }
    .tigo-thanos-dialog__content { padding: 22px 20px 24px; }
    .tigo-thanos-dialog__actions { flex-direction: column; align-items: stretch; }
    .tigo-thanos-dialog__actions > * { width: 100%; }
}


.tigo-thanos-dialog__inner,.tigo-thanos-dialog__content { min-width:0; }
.tigo-thanos-dialog :is(h2,p,a,button) { overflow-wrap:anywhere; }
