/* ==========================================================================
   TechCrunch-Style Tech News — theme stylesheet
   ========================================================================== */

:root {
	--tc-black: #0a0a0a;
	--tc-green: #00d084;
	--tc-green-dark: #00a868;
	--tc-white: #ffffff;
	--tc-gray: #6b6b6b;
	--tc-gray-light: #9a9a9a;
	--tc-border: #eaeaea;
	--tc-bg-soft: #f7f7f7;

	--tc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	--tc-font-mono: 'Roboto Mono', 'Consolas', monospace;

	--tc-container: 1300px;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; max-width: 100%; }

body {
	margin: 0;
	overflow-x: hidden;
	max-width: 100%;
	font-family: var(--tc-font-sans);
	color: var(--tc-black);
	background: var(--tc-white);
	line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.tc-media-fallback {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 120px;
	background: var(--tc-bg-soft);
}

/* ---------- Masthead + nav (single flat bar) ---------- */

.tc-masthead { position: relative; border-bottom: 1px solid var(--tc-border); }
.tc-masthead-inner {
	max-width: var(--tc-container);
	margin: 0 auto;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.tc-logo,
.tc-logo-wrap a {
	font-weight: 800;
	font-size: clamp(1.7rem, 4.5vw, 2.1rem);
	color: var(--tc-black);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.tc-logo, .tc-logo-wrap { flex: 1; justify-content: center; text-align: center; }
.tc-logo-dot { width: 0.55rem; height: 0.55rem; background: var(--tc-green); border-radius: 50%; display: inline-block; }

/* ---------- Primary nav strip ---------- */

.tc-nav { border-bottom: 1px solid var(--tc-border); }
.tc-nav-inner { max-width: var(--tc-container); margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: center; }
.tc-nav-menu-wrap {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.tc-nav-menu-wrap::-webkit-scrollbar { display: none; }
.tc-menu { display: flex; flex-wrap: nowrap; min-width: 0; width: max-content; gap: 0.25rem; }
.tc-menu > li { flex: 0 0 auto; }
.tc-menu li a {
	display: block;
	white-space: nowrap;
	padding: 0.6rem 0.7rem;
	color: var(--tc-black);
	font-weight: 500;
	font-size: 0.9rem;
	border-bottom: 2px solid transparent;
}
.tc-menu li a:hover,
.tc-menu li.current-menu-item a { border-color: var(--tc-green); color: var(--tc-green-dark); }

.tc-nav-toggle { display: flex; order: -1; flex-shrink: 0; flex-direction: column; gap: 4px; background: none; border: 0; padding: 0.5rem; }
.tc-nav-toggle span { display: block; width: 20px; height: 2px; background: var(--tc-black); }

.tc-mobile-menu-wrap {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 1px solid var(--tc-border);
	box-shadow: 0 12px 20px rgba(0,0,0,0.15);
	max-height: 70vh;
	overflow-y: auto;
	z-index: 50;
	padding: 0.5rem 1.25rem 0.75rem;
}
.tc-mobile-menu-wrap.is-open { display: block; }
.tc-mobile-menu { display: flex; flex-direction: column; }
.tc-mobile-menu li a {
	display: block;
	padding: 0.7rem 0;
	color: var(--tc-black);
	font-weight: 500;
	font-size: 0.9rem;
	border-bottom: 1px solid var(--tc-border);
}
.tc-mobile-menu li:last-child a { border-bottom: 0; }
.tc-mobile-menu li a:hover { color: var(--tc-green-dark); }

.tc-search {
	display: flex;
	align-items: center;
	background: var(--tc-bg-soft);
	border-radius: 999px;
	padding: 0.35rem 0.4rem 0.35rem 0.9rem;
	flex-shrink: 0;
	order: 2;
}
.tc-search input { background: none; border: 0; outline: none; width: 130px; font-size: 0.85rem; font-family: var(--tc-font-sans); }
.tc-search button { background: none; border: 0; color: var(--tc-black); display: flex; padding: 0.3rem; }

/* ---------- Shared layout ---------- */

.tc-main { max-width: var(--tc-container); margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }

.tc-pill {
	display: inline-block;
	border: 1px solid var(--tc-green);
	color: var(--tc-green-dark);
	font-weight: 600;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	margin-bottom: 0.5rem;
}
.tc-pill:hover { background: var(--tc-green); color: #fff; border-color: var(--tc-green); }

.tc-dek { color: var(--tc-gray); font-size: 0.98rem; line-height: 1.55; margin: 0.4rem 0 0.6rem; }
.tc-dek-single { font-size: 1.15rem; margin: 0.6rem 0 1rem; }

.tc-meta { font-family: var(--tc-font-mono); font-size: 0.75rem; color: var(--tc-gray-light); }
.tc-dot { margin: 0 0.35rem; }

.tc-section-heading { margin-bottom: 1.25rem; }
.tc-section-heading h2 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tc-gray); margin: 0; }

/* ---------- Latest list ---------- */

.tc-latest-section { margin-bottom: 3rem; }
.tc-latest-list { display: flex; flex-direction: column; }
.tc-latest-item {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--tc-border);
}
.tc-latest-item:last-child { border-bottom: 0; }
.tc-latest-dot { color: var(--tc-green); font-size: 1.1rem; line-height: 1; }
.tc-latest-time { font-family: var(--tc-font-mono); font-size: 0.78rem; color: var(--tc-gray-light); flex-shrink: 0; }
.tc-latest-title { font-size: 1.02rem; font-weight: 600; margin: 0; line-height: 1.35; }
.tc-latest-title a:hover { color: var(--tc-green-dark); }

/* ---------- Card grid ---------- */

.tc-grid-section { margin-bottom: 2rem; }
.tc-card-grid { display: flex; flex-wrap: wrap; gap: 2rem; }
.tc-card-grid > .tc-card { flex: 1 1 220px; }
.tc-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 0.85rem; border-radius: 4px; background: var(--tc-bg-soft); }
.tc-card-media img { width: 100%; height: 100%; object-fit: cover; }
.tc-card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.4rem; }
.tc-card-title a:hover { color: var(--tc-green-dark); }

/* Grid style variant — larger cards, fewer columns, for the "Deep Dives"
   block so the main column reads as a distinct section. */
.tc-grid-wide .tc-card-media { aspect-ratio: 21 / 9; }
.tc-grid-wide .tc-card-title { font-size: 1.3rem; }
.tc-grid-wide.tc-card-grid > .tc-card { flex: 1 1 340px; }

.tc-home-feed { width: 100%; }
.tc-grid-standard, .tc-grid-dense2, .tc-grid-compact, .tc-grid-mosaic { display: flex; flex-wrap: wrap; }
.tc-grid-standard { gap: 2rem; }
.tc-grid-dense2   { gap: 1rem; }
.tc-grid-compact  { gap: 0.85rem; }
.tc-grid-mosaic   { gap: 1.25rem; }
.tc-grid-standard > * { flex: 1 1 220px; }
.tc-grid-dense2 > *   { flex: 1 1 175px; }
.tc-grid-compact > *  { flex: 1 1 145px; }
.tc-grid-mosaic > *   { flex: 1 1 195px; }
.tc-grid-mosaic > *:first-child { flex-basis: 400px; }
.tc-hlist { display: flex; flex-direction: column; gap: 0.9rem; }
.tc-hlist > .tc-card { display: flex; flex-direction: row; align-items: center; gap: 1.1rem; border-bottom: 1px solid var(--tc-border, rgba(0,0,0,0.1)); border-radius: 0; padding: 0 0 0.9rem; }
.tc-hlist > .tc-card .tc-card-media { width: 150px; flex-shrink: 0; aspect-ratio: 4 / 3; margin-bottom: 0; border-radius: 4px; }
.tc-hlist > .tc-card .tc-card-body { flex: 1; min-width: 0; }

/* ---------- Body layout: main column + sidebar ---------- */

.tc-columns { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.tc-body-main { min-width: 0; }

.tc-sidebar { display: flex; flex-direction: column; gap: 2rem; align-self: start; }
.tc-widget-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tc-gray); margin: 0 0 0.75rem; }
.tc-widget-list { display: flex; flex-direction: column; gap: 0.6rem; }
.tc-widget-list li { border-bottom: 1px solid var(--tc-border); padding-bottom: 0.6rem; }
.tc-widget-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tc-widget-item { display: flex; align-items: center; gap: 0.75rem; }
.tc-widget-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 4px; overflow: hidden; background: var(--tc-bg-soft); }
.tc-widget-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-widget-thumb-fallback { display: block; width: 100%; height: 100%; background: var(--tc-bg-soft); }
.tc-widget-text { flex: 1; min-width: 0; }
.tc-widget-item:hover .tc-widget-text { color: var(--tc-green-dark); }
.tc-widget-list a { font-size: 0.92rem; line-height: 1.35; }
.tc-widget-list a:hover { color: var(--tc-green-dark); }
.tc-widget-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tc-widget-pill { font-size: 0.76rem; background: var(--tc-bg-soft); border-radius: 999px; padding: 0.28rem 0.7rem; }
.tc-widget-pill:hover { background: var(--tc-green); color: #fff; }
.tc-widget-pill-tag { color: var(--tc-green-dark); }

/* ---------- Archive / search headers ---------- */

.tc-archive-header { border-bottom: 1px solid var(--tc-border); margin-bottom: 1.75rem; padding-bottom: 1rem; }
.tc-archive-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0; }
.tc-archive-title span { color: var(--tc-green-dark); }
.tc-archive-desc { color: var(--tc-gray); margin-top: 0.4rem; }
.tc-no-results { color: var(--tc-gray); }
.tc-archive { margin-bottom: 2rem; }

/* ---------- Pagination ---------- */

.pagination,
.navigation.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--tc-border);
	border-radius: 999px;
	font-size: 0.9rem;
	color: var(--tc-black);
}
.pagination .page-numbers.current { background: var(--tc-green); color: #fff; border-color: var(--tc-green); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--tc-green); }

/* ---------- Single article ---------- */

.tc-single { max-width: 720px; margin: 0 auto; }
.tc-single-header { margin-bottom: 1.5rem; }
.tc-single-title { font-size: clamp(1.9rem, 4.4vw, 2.6rem); font-weight: 800; line-height: 1.12; margin: 0.3rem 0 0; }
.tc-byline-row { margin-top: 1rem; font-family: var(--tc-font-mono); font-size: 0.8rem; color: var(--tc-gray-light); }

.tc-single-media { margin: 1.75rem 0; border-radius: 4px; overflow: hidden; }
.tc-single-media img { width: 100%; }

.tc-single-content { font-size: 1.08rem; line-height: 1.75; }
.tc-single-content p { margin: 0 0 1.35rem; }
.tc-single-content blockquote {
	background: var(--tc-bg-soft);
	border-left: 3px solid var(--tc-green);
	margin: 1.75rem 0;
	padding: 1rem 1.25rem;
	font-family: var(--tc-font-mono);
	font-size: 0.95rem;
	border-radius: 0 4px 4px 0;
}
.tc-single-content h2,
.tc-single-content h3 { font-weight: 800; }
.tc-single-content a { color: var(--tc-green-dark); text-decoration: underline; }
.tc-single-content code { background: var(--tc-bg-soft); padding: 0.15em 0.4em; border-radius: 3px; font-family: var(--tc-font-mono); font-size: 0.9em; }

.tc-single-footer { margin-top: 1.75rem; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--tc-font-mono); }
.tc-tag { font-size: 0.8rem; color: var(--tc-gray); border: 1px solid var(--tc-border); border-radius: 999px; padding: 0.25rem 0.7rem; }
.tc-tag:hover { border-color: var(--tc-green); color: var(--tc-green-dark); }

.tc-related { max-width: var(--tc-container); margin: 3rem auto 0; }

/* ---------- Page ---------- */

.tc-page { max-width: 720px; margin: 0 auto; }
.tc-page-title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); font-weight: 800; border-bottom: 1px solid var(--tc-border); padding-bottom: 0.75rem; margin-bottom: 1.5rem; }

/* ---------- 404 ---------- */

.tc-404 { text-align: center; padding: 4rem 1rem; max-width: 560px; margin: 0 auto; }
.tc-404-code { display: block; font-family: var(--tc-font-mono); font-size: 4.5rem; color: var(--tc-green); line-height: 1; font-weight: 700; }
.tc-404-search { justify-content: center; margin: 1.5rem auto; }
.tc-404-search button { color: var(--tc-green-dark); font-weight: 700; padding: 0 0.75rem; }
.tc-404-home { display: inline-block; margin-top: 1rem; color: var(--tc-green-dark); font-weight: 600; text-decoration: underline; }

/* ---------- Comments ---------- */

.comment-respond,
.comments-area { max-width: 720px; margin: 2.5rem auto 0; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--tc-border);
	border-radius: 4px;
	font-family: var(--tc-font-sans);
	margin-bottom: 0.75rem;
}
.comment-form input[type="submit"] {
	background: var(--tc-green);
	color: #fff;
	border: 0;
	padding: 0.65rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
}

/* ---------- Footer (dense, mega-footer) ---------- */

.tc-footer { border-top: 1px solid var(--tc-border); margin-top: 3rem; }

.tc-footer-nav { border-bottom: 1px solid var(--tc-border); }
.tc-footer-nav-list {
	max-width: var(--tc-container);
	margin: 0 auto;
	padding: 1rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.25rem;
}
.tc-footer-nav-list a {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	font-size: 0.8rem;
	color: var(--tc-gray);
	border-right: 1px solid var(--tc-border);
}
.tc-footer-nav-list li:last-child a { border-right: 0; }
.tc-footer-nav-list a:hover { color: var(--tc-green-dark); }

.tc-footer-rows {
	max-width: var(--tc-container);
	margin: 0 auto;
	padding: 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
}
.tc-footer-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--tc-border);
}
.tc-footer-row:last-child { border-bottom: 0; }
.tc-footer-row-label {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.76rem;
	font-weight: 700;
	color: var(--tc-black);
	flex-shrink: 0;
	margin-right: 0.9rem;
}
.tc-footer-row-links { display: flex; flex-wrap: wrap; }
.tc-footer-row-links a { color: var(--tc-gray); font-size: 0.88rem; }
.tc-footer-row-links a:hover { color: var(--tc-green-dark); }
.tc-footer-row-links a:not(:last-child)::after { content: "|"; color: var(--tc-border); margin: 0 0.6rem; }

.tc-footer-about {
	max-width: var(--tc-container);
	margin: 0 auto;
	padding: 1.5rem 1.25rem;
	border-top: 1px solid var(--tc-border);
	text-align: center;
}
.tc-footer-logo,
.tc-footer-about-logo { font-weight: 800; font-size: 1.25rem; color: var(--tc-black); margin: 0 0 0.4rem; }
.tc-footer-about-desc { color: var(--tc-gray); max-width: 640px; margin: 0 auto; font-size: 0.9rem; }

.tc-footer-compliance {
	max-width: var(--tc-container);
	margin: 0 auto;
	padding: 0 1.25rem 1.5rem;
	text-align: center;
}
.tc-footer-menu { display: flex; flex-wrap: wrap; justify-content: center; }
.tc-footer-menu li:not(:last-child)::after { content: "|"; color: var(--tc-border); margin: 0 0.7rem; }
.tc-footer-menu a { color: var(--tc-gray); font-size: 0.84rem; }
.tc-footer-menu a:hover { color: var(--tc-green-dark); }

.tc-footer-bottom { text-align: center; padding: 1rem; font-size: 0.78rem; color: var(--tc-gray-light); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1300px) {
	.tc-footer-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
}

@media (max-width: 480px) {
	.tc-search input { width: 90px; }
}

@media (min-width: 900px) {
	.tc-columns { grid-template-columns: 2.2fr 1fr; }
	.tc-sidebar { position: sticky; top: 90px; }
}
