/* Hub directories — Omni-style, matches homepage */

.tc-hub {
	font-family: var(--tc-font);
	color: var(--tc-ink);
	background: #f4f6f9;
}

.tc-hub a {
	color: inherit;
	text-decoration: none;
}

/* Light hero */
.tc-hub-hero {
	background:
		radial-gradient(900px 320px at 50% -20%, rgba(13, 148, 136, 0.12), transparent 60%),
		linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
	border-bottom: 1px solid var(--tc-line);
	color: var(--tc-ink);
	padding: 2.75rem 0 2rem;
}

.tc-hub-hero__inner {
	width: min(720px, calc(100% - 2.5rem));
	margin: 0 auto;
	text-align: center;
}

.tc-hub-hero__brand {
	margin: 0 0 0.65rem;
	font-family: var(--tc-display);
	font-size: clamp(2rem, 5vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.tc-hub-hero__brand span {
	color: var(--tc-accent);
}

.tc-hub-hero__title {
	margin: 0 0 0.65rem;
	font-family: var(--tc-font);
	font-size: clamp(1.25rem, 2.6vw, 1.55rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.tc-hub-hero__lede {
	margin: 0 auto 0.65rem;
	max-width: 38rem;
	color: var(--tc-muted);
	line-height: 1.55;
	font-size: 0.98rem;
}

.tc-hub-hero__count {
	margin: 0 0 1.25rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--tc-accent-dark);
}

.tc-hub-hero__search {
	position: relative;
	max-width: 520px;
	margin: 0 auto;
}

.tc-hub-search__field {
	position: relative;
	display: flex;
	align-items: center;
}

.tc-hub-search__icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--tc-muted);
	pointer-events: none;
	display: grid;
	place-items: center;
}

.tc-hub-search__input {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #c3c8d4;
	background: #fff;
	color: var(--tc-ink);
	font: inherit;
	font-size: 1.02rem;
	font-weight: 600;
	padding: 0.95rem 2.6rem 0.95rem 2.85rem;
	border-radius: 12px;
	outline: none;
	box-shadow: 0 1px 2px rgba(15, 31, 46, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-hub-search__input::-webkit-search-decoration,
.tc-hub-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.tc-hub-search__input::placeholder {
	color: #8b97a8;
	font-weight: 500;
}

.tc-hub-search__input:focus {
	border-color: var(--tc-accent);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.tc-hub-search__clear {
	position: absolute;
	right: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	appearance: none;
	border: 0;
	background: #eef1f5;
	color: var(--tc-muted);
	width: 28px;
	height: 28px;
	border-radius: 8px;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.tc-hub-search__clear:hover {
	background: #e2e7ee;
	color: var(--tc-ink);
}

/* Category topic strip */
.tc-hub-topics {
	padding: 1.35rem 0 0.25rem;
}

.tc-hub-topics__inner {
	width: min(1140px, calc(100% - 2.5rem));
	margin: 0 auto;
}

.tc-hub-topics__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.65rem;
}

.tc-hub-topic {
	appearance: none;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: 0.85rem 0.4rem 0.75rem;
	background: #fff;
	border: 1px solid #c3c8d4;
	border-radius: 12px;
	text-align: center;
	cursor: pointer;
	font: inherit;
	color: var(--tc-ink);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tc-hub-topic:hover,
.tc-hub-topic:focus-visible {
	border-color: var(--tc-accent);
	box-shadow: 4px 10px 18px rgba(13, 148, 136, 0.12), 0 1px 3px rgba(15, 31, 46, 0.06);
	color: var(--tc-accent-dark);
	outline: none;
}

.tc-hub-topic.is-active {
	border-color: var(--tc-accent);
	background: var(--tc-accent-soft);
	color: var(--tc-accent-dark);
	box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2);
}

.tc-hub-topic__icon {
	color: inherit;
	display: grid;
	place-items: center;
}

.tc-hub-topic__icon svg {
	width: 28px;
	height: 28px;
}

.tc-hub-topic__label {
	font-weight: 700;
	font-size: 0.72rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.tc-hub-topic__count {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--tc-muted);
}

.tc-hub-topic.is-active .tc-hub-topic__count {
	color: var(--tc-accent-dark);
}

/* Body + category blocks */
.tc-hub-body {
	padding: 1.5rem 0 3rem;
}

.tc-hub-body__inner {
	width: min(1140px, calc(100% - 2.5rem));
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.tc-hub-cat {
	background: #fff;
	border: 1px solid #c3c8d4;
	border-radius: 14px;
	padding: 1.15rem 1.15rem 1.25rem;
}

.tc-hub-cat__head {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	margin: 0 0 1rem;
}

.tc-hub-cat__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--tc-accent-soft);
	color: var(--tc-accent-dark);
}

.tc-hub-cat__icon svg {
	width: 28px;
	height: 28px;
}

.tc-hub-cat__titles {
	flex: 1;
	min-width: 0;
}

.tc-hub-cat__head h2 {
	margin: 0 0 0.2rem;
	font-family: var(--tc-font);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.tc-hub-cat__head p {
	margin: 0;
	color: var(--tc-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

.tc-hub-cat__badge {
	flex-shrink: 0;
	min-width: 1.85rem;
	padding: 0.25rem 0.5rem;
	border-radius: 8px;
	background: #f0f3f7;
	color: var(--tc-muted);
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
}

.tc-hub-cat__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.tc-hub-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem;
	padding: 0.95rem 1rem;
	background: #fafbfc;
	border: 1px solid #e4e8ef;
	border-radius: 10px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tc-hub-card:hover {
	background: #fff;
	border-color: var(--tc-accent);
	box-shadow: 4px 10px 14px rgba(13, 148, 136, 0.1), 0 1px 3px rgba(15, 31, 46, 0.05);
}

.tc-hub-card__title {
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.tc-hub-card__arrow {
	flex-shrink: 0;
	color: #b0b8c6;
	margin-top: 0.05rem;
	transition: color 0.15s ease, transform 0.15s ease;
}

.tc-hub-card:hover .tc-hub-card__arrow {
	color: var(--tc-accent);
	transform: translateX(2px);
}

.tc-hub-card.is-hidden {
	display: none;
}

.tc-hub-cat.is-empty {
	display: none;
}

.tc-hub-empty {
	text-align: center;
	color: var(--tc-muted);
	font-weight: 600;
	padding: 2rem 1rem;
}

.tc-hub-footnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.25rem;
	padding: 0 1.25rem 3rem;
	font-weight: 700;
	font-size: 0.9rem;
}

.tc-hub-footnav a {
	color: var(--tc-accent-dark);
	border-bottom: 1px solid rgba(13, 148, 136, 0.3);
}

.tc-hub-footnav a:hover {
	border-bottom-color: var(--tc-accent-dark);
}

body.page-slug-calculadoras .content-area,
body.page-slug-financas .content-area,
body.page-slug-trabalho .content-area,
body.page-template-default.page .content-container {
	max-width: none;
	padding: 0;
}

body.page-slug-calculadoras .entry-content-wrap,
body.page-slug-financas .entry-content-wrap,
body.page-slug-trabalho .entry-content-wrap {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

body.page-slug-calculadoras .entry-hero,
body.page-slug-financas .entry-hero,
body.page-slug-trabalho .entry-hero {
	display: none;
}

@media (max-width: 1100px) {
	.tc-hub-topics__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tc-hub-cat__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tc-hub-topics__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tc-hub-cat__grid {
		grid-template-columns: 1fr;
	}

	.tc-hub-hero {
		padding: 2.25rem 0 1.5rem;
	}
}
