/* Portuguesices – Top Expressions */
.ptx-te {
	margin: 0 auto 1.5rem;
	max-width: var(--wp--style--global--content-size, 1100px);
	padding: 0 clamp(12px, 4vw, 24px);
	box-sizing: border-box;
}
.ptx-te-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.ptx-te-heading {
	font-size: 1.1rem;
	margin: 0;
	line-height: 1.2;
}
.ptx-te-tabs {
	display: inline-flex;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	overflow: hidden;
}
.ptx-te-tab {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 6px 12px;
	font-size: 0.8rem;
	cursor: pointer;
	color: inherit;
	opacity: 0.7;
	line-height: 1.4;
}
.ptx-te-tab + .ptx-te-tab { border-left: 1px solid rgba(0, 0, 0, 0.12); }
.ptx-te-tab.is-active {
	background: rgba(0, 0, 0, 0.06);
	opacity: 1;
	font-weight: 600;
}

.ptx-te-panel[hidden] { display: none; }

.ptx-te-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---- Cards style ---- */
.ptx-te-style-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
}
.ptx-te-style-cards .ptx-te-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ptx-te-style-cards .ptx-te-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.ptx-te-style-cards .ptx-te-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #f1efe8;
	overflow: hidden;
}
.ptx-te-style-cards .ptx-te-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ptx-te-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eceae2, #d9d6cb);
}
.ptx-te-rank {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ptx-te-views {
	position: absolute;
	bottom: 6px;
	right: 6px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.7rem;
	padding: 2px 7px;
	border-radius: 8px;
}
.ptx-te-style-cards .ptx-te-title {
	display: block;
	padding: 8px 10px;
	font-size: 0.82rem;
	line-height: 1.35;
}

/* ---- List style ---- */
.ptx-te-style-list { display: grid; gap: 6px; }
.ptx-te-style-list .ptx-te-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	padding: 8px 10px;
	border-radius: 8px;
}
.ptx-te-style-list .ptx-te-link:hover { background: rgba(0, 0, 0, 0.04); }
.ptx-te-rank-inline {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	font-size: 0.75rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ptx-te-style-list .ptx-te-title { flex: 1 1 auto; font-size: 0.92rem; }
.ptx-te-views-inline { flex: 0 0 auto; font-size: 0.78rem; opacity: 0.6; }

/* ---- Chips style (full-width blue band) ---- */
.ptx-te-mode-chips {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: #00318c;
	color: #fff;
	padding: 18px clamp(12px, 4vw, 28px);
}
.ptx-te-mode-chips .ptx-te-heading { color: #fff; }
.ptx-te-mode-chips .ptx-te-tabs { border-color: rgba(255, 255, 255, 0.4); }
.ptx-te-mode-chips .ptx-te-tab { color: #fff; }
.ptx-te-mode-chips .ptx-te-tab + .ptx-te-tab { border-left-color: rgba(255, 255, 255, 0.4); }
.ptx-te-mode-chips .ptx-te-tab.is-active { background: rgba(255, 255, 255, 0.18); }

.ptx-te-style-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	/* Span the full width of the blue band so pills are clipped by its edges,
	   while keeping the first/last pill aligned to the heading inset. */
	margin-left: calc(-1 * clamp(12px, 4vw, 28px));
	margin-right: calc(-1 * clamp(12px, 4vw, 28px));
	padding: 0 clamp(12px, 4vw, 28px) 6px;
	scrollbar-width: thin;
}
.ptx-te-style-chips .ptx-te-item { flex: 0 0 auto; }
.ptx-te-style-chips .ptx-te-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	text-decoration: none;
	color: #fff;
	padding: 10px 18px;
	background: #2865d75c;
	border: 1px solid transparent;
	border-radius: 16px;
	font-size: 0.9rem;
	white-space: nowrap;
}
.ptx-te-style-chips .ptx-te-link:hover { background: #2865d78f; }

@media (prefers-color-scheme: dark) {
	.ptx-te-style-cards .ptx-te-link { background: #1d1d1d; border-color: rgba(255, 255, 255, 0.12); }
	.ptx-te-tabs, .ptx-te-tab + .ptx-te-tab { border-color: rgba(255, 255, 255, 0.18); }
	.ptx-te-tab.is-active { background: rgba(255, 255, 255, 0.1); }
}
