/* Caixas laterais e widgets de dados. */
.tre-box {
	background: var(--tre-surface);
	border-radius: var(--tre-card-radius);
	box-shadow: var(--tre-shadow);
	padding: 16px 16px 18px;
	min-width: 0;
}

.tre-box--plain {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.tre-box__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	padding: 0 0 8px 2px;
	border-bottom: 2px solid var(--tre-primary);
	color: var(--tre-primary);
	font-size: 14px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tre-box__title::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tre-primary);
	margin-right: 8px;
}

.tre-box__title--plain {
	color: var(--tre-heading);
	border-bottom-color: var(--tre-border);
	border-bottom-width: 1px;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

.tre-box__title--plain::before {
	display: none;
}

.tre-box__source {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--tre-border);
	font-size: 11px;
	color: var(--tre-muted);
	text-align: center;
}

.tre-box__source a {
	color: #2563eb;
	font-weight: 600;
}

html[data-theme="dark"] .tre-box__source a {
	color: #93c5fd;
}

/* Últimas da lateral. */
.tre-latest__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tre-latest__item {
	padding: 10px 0;
	border-top: 1px solid var(--tre-border);
}

.tre-latest__item:first-child {
	border-top: 0;
	padding-top: 0;
}

.tre-latest__time {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	font-weight: 700;
	color: var(--tre-primary);
}

.tre-latest__item a {
	display: block;
	font-family: var(--tre-font-heading);
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--tre-heading);
}

.tre-latest__item a:hover {
	color: var(--tre-primary);
}

.tre-latest--cards {
	background: var(--tre-surface-soft);
	box-shadow: none;
}

.tre-latest--cards .tre-latest__item {
	margin-top: 6px;
	padding: 9px 10px;
	background: var(--tre-surface);
	border: 0;
	border-radius: 8px;
}

/* Previsão do tempo. */
.tre-weather__city {
	font-weight: 700;
	color: var(--tre-heading);
	display: flex;
	align-items: center;
	gap: 6px;
}

.tre-weather__now {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 12px 0 14px;
}

.tre-weather__icon {
	color: var(--tre-primary);
}

.tre-weather__temp {
	font-family: var(--tre-font-body);
	font-size: 40px;
	font-weight: 300;
	line-height: 1;
	color: var(--tre-heading);
}

.tre-weather__desc {
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--tre-primary);
}

.tre-weather__mm {
	margin-top: 4px;
	display: flex;
	gap: 10px;
	font-size: 11.5px;
	color: var(--tre-muted);
}

.tre-weather__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0;
	padding: 10px 0 0;
	list-style: none;
	border-top: 1px solid var(--tre-border);
}

.tre-weather__stats li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 8px 4px;
	text-align: center;
	color: var(--tre-primary);
}

.tre-weather__stats li:nth-child(3n + 2) {
	border-inline: 1px solid var(--tre-border);
}

.tre-weather__stats b {
	font-size: 13px;
	color: var(--tre-heading);
}

.tre-weather__stats small {
	font-size: 10px;
	color: var(--tre-muted);
}

.tre-weather__days {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	margin: 8px 0 0;
	padding: 10px 0 0;
	list-style: none;
	border-top: 1px solid var(--tre-border);
	text-align: center;
}

.tre-weather__days li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--tre-primary);
}

.tre-weather__days small {
	font-size: 10px;
	font-weight: 700;
	color: var(--tre-muted);
}

.tre-weather__days b {
	font-size: 12.5px;
	color: var(--tre-heading);
}

.tre-weather__days span {
	font-size: 11px;
	color: var(--tre-muted);
}

/* Cotações. */
.tre-currency__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.tre-currency__table th,
.tre-currency__table td {
	padding: 9px 0;
	text-align: left;
	color: var(--tre-heading);
}

.tre-currency__table th {
	font-weight: 600;
}

.tre-currency__table td {
	font-weight: 600;
	text-align: right;
}

.tre-currency__table td.tre-var {
	width: 70px;
	font-size: 12.5px;
	font-weight: 700;
}

.tre-currency__table td.tre-var--down {
	color: #dc2626;
}

.tre-currency__table td.tre-var--up {
	color: #16a34a;
}

.tre-currency .tre-box__source {
	text-align: left;
}

/* Loterias. */
.tre-lottery__flag {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 8px;
	border-radius: 3px;
	background: #fef3c7;
	color: #a16207;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tre-lottery__head {
	font-size: 14px;
	color: var(--tre-heading);
}

.tre-lottery__head span {
	color: var(--tre-muted);
	margin-left: 4px;
}

.tre-lottery__balls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: 14px 0;
	padding: 0 0 0 16px;
	list-style: none;
}

.tre-lottery__balls li {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 2px solid var(--tre-primary);
	border-radius: 50%;
	color: var(--tre-primary);
	font-weight: 800;
	font-size: 14px;
}

.tre-lottery__next {
	font-size: 12.5px;
	color: var(--tre-muted);
}

.tre-lottery__next strong {
	color: var(--tre-heading);
}

.tre-lottery__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.tre-lottery__actions .tre-btn--outline {
	border-width: 1px;
	border-color: var(--tre-primary);
	color: var(--tre-primary);
}

.tre-lottery .tre-box__source {
	text-align: left;
	border-top: 0;
	padding-top: 0;
}

/* Futebol. */
.tre-tabs__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--tre-border);
}

.tre-tabs__list button {
	padding: 10px 6px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	font-family: var(--tre-font-heading);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--tre-muted);
}

.tre-tabs__list button[aria-selected="true"] {
	color: #2563eb;
	border-bottom-color: #2563eb;
}

html[data-theme="dark"] .tre-tabs__list button[aria-selected="true"] {
	color: #93c5fd;
	border-bottom-color: #93c5fd;
}

.tre-games {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tre-game {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 8px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--tre-border);
	font-size: 12px;
	font-weight: 600;
	color: var(--tre-heading);
}

.tre-game__team {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.tre-game__team--away {
	justify-content: flex-end;
	text-align: right;
}

.tre-game__team img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.tre-game__info {
	font-size: 11px;
	font-weight: 400;
	color: var(--tre-muted);
	white-space: nowrap;
}

.tre-standings {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	color: var(--tre-heading);
}

.tre-standings th,
.tre-standings td {
	padding: 6px 4px;
	border-bottom: 1px solid var(--tre-border);
	text-align: left;
}

.tre-standings td img {
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: -3px;
	object-fit: contain;
}

.tre-football .tre-box__source {
	text-align: left;
}

.tre-football--empty {
	font-size: 13px;
	color: var(--tre-muted);
}

/* Horóscopo. */
.tre-horo__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.tre-horo__head .tre-box__title {
	margin: 0;
	padding: 0;
	border: 0;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tre-horo__select {
	min-width: 0;
	max-width: 140px;
	padding: 7px 10px;
	border: 1px solid var(--tre-border);
	border-radius: 6px;
	background: var(--tre-surface-soft);
	color: var(--tre-heading);
	font-weight: 700;
	font-size: 14px;
}

.tre-horo__sign {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	color: var(--tre-heading);
}

.tre-horo__sign strong {
	font-family: var(--tre-font-heading);
	font-size: 18px;
}

.tre-horo__sign small {
	width: 100%;
	margin-left: 38px;
	color: var(--tre-muted);
}

.tre-horo__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: #7c3aed;
	color: #fff;
	font-size: 17px;
}

.tre-horo__text {
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--tre-text);
}

.tre-horo__text--empty {
	color: var(--tre-muted);
}

.tre-horo .tre-box__source {
	text-align: left;
	border: 0;
	padding: 0;
}

/* Enviar pauta. */
.tre-pauta {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: var(--tre-pauta-bg);
	border-radius: 4px;
}

.tre-pauta__kicker {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-family: var(--tre-font-heading);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tre-pauta__title {
	font-family: var(--tre-font-heading);
	font-weight: 900;
	line-height: 1.12;
}

.tre-pauta__desc {
	color: #d1d5db;
	line-height: 1.45;
}

.tre-pauta__btn {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--tre-primary);
	color: #fff;
	font-family: var(--tre-font-heading);
	font-weight: 800;
	font-size: 14px;
	white-space: nowrap;
}

.tre-pauta__btn:hover {
	background: var(--tre-primary-hover);
	color: #fff;
}

.tre-pauta__name {
	font-family: var(--tre-font-heading);
	font-size: 28px;
	font-weight: 900;
	letter-spacing: -.03em;
}

.tre-pauta__img img {
	max-height: 100%;
	width: auto;
}

.tre-pauta--card {
	padding: 22px 18px 22px;
	background: radial-gradient(circle at 95% 25%, color-mix(in srgb, var(--tre-primary) 70%, #000) 0 90px, transparent 91px), var(--tre-pauta-bg);
}

.tre-pauta--card .tre-pauta__title {
	margin: 12px 0 8px;
	font-size: 22px;
	max-width: 12ch;
}

.tre-pauta--card .tre-pauta__desc {
	max-width: 18ch;
	font-size: 13px;
	margin-bottom: 14px;
}

.tre-pauta--card .tre-pauta__img {
	position: absolute;
	right: 8px;
	bottom: 0;
	height: 80%;
}

.tre-pauta--wide {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 190px;
	padding: 28px 40px;
	background: radial-gradient(circle at 88% 30%, color-mix(in srgb, var(--tre-primary) 55%, #000) 0 170px, transparent 171px), var(--tre-pauta-bg);
}

.tre-pauta--wide .tre-pauta__brand {
	flex: none;
	padding-right: 28px;
	border-right: 2px solid rgba(255, 255, 255, .7);
}

.tre-pauta--wide .tre-pauta__brand img {
	max-height: 70px;
	width: auto;
}

.tre-pauta--wide .tre-pauta__title {
	margin: 10px 0 8px;
	font-size: 30px;
}

.tre-pauta--wide .tre-pauta__desc {
	margin-bottom: 14px;
	font-size: 16px;
}

.tre-pauta--wide .tre-pauta__img {
	margin-left: auto;
	align-self: stretch;
	display: flex;
	align-items: center;
}

.tre-pauta--strip {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 26px auto;
	max-width: 616px;
	padding: 14px 18px;
	background: var(--tre-surface);
	color: var(--tre-heading);
	border-left: 6px solid var(--tre-primary);
	box-shadow: var(--tre-shadow);
}

.tre-pauta--strip .tre-pauta__name {
	font-size: 20px;
	color: var(--tre-heading);
}

.tre-pauta--strip .tre-pauta__brand img {
	max-height: 40px;
	width: auto;
}

.tre-pauta--strip .tre-pauta__text {
	flex: 1;
	min-width: 0;
}

.tre-pauta--strip .tre-pauta__title {
	font-size: 17px;
	color: var(--tre-heading);
}

.tre-pauta--strip .tre-pauta__desc {
	margin-top: 3px;
	font-size: 12.5px;
	color: var(--tre-muted);
}

/* Widgets do WordPress nas laterais (mesma aparência das caixas). */
.tre-widget {
	background: var(--tre-surface);
	border-radius: var(--tre-card-radius);
	box-shadow: var(--tre-shadow);
	padding: 16px 16px 18px;
	min-width: 0;
	font-size: 14px;
}

.tre-widget__title,
.tre-widget .wp-block-heading,
.tre-widget h2 {
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tre-primary);
	color: var(--tre-primary);
	font-size: 14px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.tre-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tre-widget li {
	padding: 8px 0;
	border-top: 1px solid var(--tre-border);
}

.tre-widget li:first-child {
	border-top: 0;
	padding-top: 0;
}

.tre-widget a {
	color: var(--tre-heading);
	font-weight: 600;
}

.tre-widget a:hover {
	color: var(--tre-primary);
}

.tre-widget .wp-block-search__inside-wrapper {
	display: flex;
	gap: 6px;
}

.tre-widget .wp-block-search__input,
.tre-widget input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--tre-border);
	border-radius: 6px;
	background: var(--tre-surface);
	color: var(--tre-text);
}

.tre-widget .wp-block-search__button {
	padding: 8px 12px;
	border: 0;
	border-radius: 6px;
	background: var(--tre-primary);
	color: #fff;
	font-weight: 700;
}

.tre-widget .wp-block-search__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	color: var(--tre-heading);
}
