/* Guia Loterias — estilos isolados para conviver com temas e page builders. */
.gl-widget {
    --gl-ink: #242424;
    --gl-muted: #666b70;
    --gl-border: #e4e7eb;
    width: 100%;
    max-width: 100%;
    margin: 1.25rem 0;
    color: var(--gl-ink);
    font: inherit;
    line-height: 1.5;
}
.gl-widget,
.gl-widget * { box-sizing: border-box; }
.gl-widget [hidden] { display: none !important; }
.gl-widget h3,
.gl-widget h4,
.gl-widget p { margin-top: 0; }
.gl-widget button,
.gl-widget a { font: inherit; }
.gl-widget button { text-transform: none; letter-spacing: normal; box-shadow: none; }

/* Seletor de modalidades — usado principalmente na página completa. */
.gl-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.gl-widget .gl-tab {
    appearance: none;
    border: 1px solid var(--gl-game-color, #ddd);
    background: #fff;
    color: var(--gl-game-color, #333);
    border-radius: 999px;
    padding: .55rem .9rem;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.gl-widget .gl-tab:hover { transform: translateY(-1px); }
.gl-widget .gl-tab:focus-visible,
.gl-widget .gl-more-link:focus-visible { outline: 3px solid #222; outline-offset: 3px; }
.gl-widget .gl-tab.is-active { background: var(--gl-game-color, #333); color: #fff; }

/* Cartão completo. */
.gl-result-card {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--gl-border);
    border-top: 5px solid var(--gl-game-color, #209869);
    border-radius: 14px;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: #fff;
    color: var(--gl-ink);
    box-shadow: 0 3px 14px rgba(0, 0, 0, .045);
}
.gl-result-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--gl-border); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.gl-result-header > div { min-width: 0; }
.gl-eyebrow { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 800; color: var(--gl-game-color, #209869); }
.gl-result-header h3 { color: var(--gl-ink); font-size: 1.45rem; line-height: 1.2; margin: .25rem 0; font-weight: 750; }
.gl-result-header p { margin: .35rem 0 0; color: var(--gl-muted); font-size: .9rem; }
.gl-lottery-mark { flex: 0 0 auto; font-size: .75rem; font-weight: 900; letter-spacing: .06em; color: #0066a1; border: 2px solid #0066a1; padding: .25rem .45rem; border-radius: 4px; }

/* Dezenas e resultados. */
.gl-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.25rem 0; }
.gl-widget .gl-ball {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 8vw, 48px);
    height: clamp(36px, 8vw, 48px);
    padding: 0;
    border-radius: 50%;
    background: var(--gl-game-color, #209869);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
}
.gl-extra { padding: .7rem 0; border-top: 1px solid var(--gl-border); }
.gl-prizes h4, .gl-second-title { margin: 1.2rem 0 .6rem; color: var(--gl-ink); font-size: 1rem; }
.gl-prize-table { display: grid; gap: .35rem; }
.gl-prize-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(90px, 1fr) minmax(90px, 1fr); gap: .65rem; align-items: center; padding: .6rem .7rem; background: #f7f8f9; border-radius: 6px; font-size: .88rem; }
.gl-prize-row strong { text-align: right; }
.gl-next-prize { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: .8rem 1rem; border-left: 4px solid var(--gl-game-color, #209869); border-radius: 4px; background: #f5f8f6; }
.gl-next-prize span { font-size: .9rem; }
.gl-next-prize strong { font-size: 1.1rem; }
.gl-updated, .gl-disclaimer { margin: .9rem 0 0; color: var(--gl-muted); font-size: .76rem; }
.gl-disclaimer { text-align: left; }
.gl-history { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--gl-border); border-radius: 10px; }
.gl-history summary { cursor: pointer; font-weight: 700; }
.gl-history-list { display: grid; gap: .65rem; margin-top: .8rem; }
.gl-history-item { display: grid; grid-template-columns: minmax(115px, .7fr) minmax(0, 2fr); gap: .75rem; align-items: center; padding-top: .65rem; border-top: 1px solid var(--gl-border); }
.gl-history-item > div:first-child { display: grid; gap: .2rem; }
.gl-history-item span { color: var(--gl-muted); font-size: .8rem; }
.gl-history-numbers { display: flex; flex-wrap: wrap; gap: .25rem; }
.gl-history-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; padding: 0 .25rem; border-radius: 50%; background: var(--gl-game-color, #209869); color: #fff; font-size: .75rem; font-weight: 700; }
.gl-empty, .gl-notice { padding: 1rem; border: 1px solid var(--gl-border); border-radius: 10px; background: #fff; }
.gl-empty p { margin-bottom: 0; }
.gl-match-results { display: grid; gap: .5rem; margin: 1rem 0; }
.gl-match-results > div { padding: .6rem; border-radius: 5px; background: #f7f8f9; }
.gl-no-numbers { color: var(--gl-muted); }

/* Widget compacto: cartão horizontal/vertical que cabe na home, sidebar e blocos. */
.gl-widget--compact { margin: .5rem 0; }
.gl-widget--compact .gl-tabs { gap: .35rem; margin-bottom: .65rem; }
.gl-widget--compact .gl-tab { padding: .4rem .65rem; font-size: .82rem; }
.gl-widget--compact .gl-result-card { padding: 1rem; border-top-width: 4px; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.gl-widget--compact .gl-result-header { align-items: center; gap: .5rem; padding-bottom: .65rem; margin-bottom: .6rem; }
.gl-widget--compact .gl-eyebrow { font-size: .68rem; }
.gl-widget--compact .gl-result-header h3 { margin: .2rem 0; font-size: 1.08rem; }
.gl-widget--compact .gl-result-header p { font-size: .78rem; margin-top: .2rem; }
.gl-widget--compact .gl-numbers { justify-content: flex-start; gap: .35rem; margin: .8rem 0; }
.gl-widget--compact .gl-ball { width: 35px; height: 35px; font-size: .88rem; }
.gl-widget--compact .gl-next-prize { gap: .5rem; margin-top: .65rem; padding: .55rem .7rem; }
.gl-widget--compact .gl-next-prize span { font-size: .78rem; }
.gl-widget--compact .gl-next-prize strong { font-size: .95rem; }
.gl-widget--compact .gl-more-link { display: inline-flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--gl-border); color: var(--gl-game-color, #176b46); text-decoration: none; font-size: .88rem; font-weight: 750; }
.gl-widget--compact .gl-more-link:hover { text-decoration: underline; }
.gl-widget--compact .gl-more-link span { font-size: 1.15rem; }
.gl-widget--compact .gl-no-numbers { margin: .5rem 0; font-size: .85rem; }

@media (max-width: 600px) {
    .gl-prize-row { grid-template-columns: minmax(0, 1fr) auto; }
    .gl-prize-row strong { grid-column: 1 / -1; text-align: left; }
    .gl-history-item { grid-template-columns: 1fr; }
    .gl-next-prize { align-items: flex-start; flex-direction: column; }
    .gl-result-header h3 { font-size: 1.25rem; }
    .gl-widget--compact .gl-result-header h3 { font-size: 1.05rem; }
}
