/* Taildraggers homepage sections (match the mockup). */

.tdh { display: flex; flex-direction: column; gap: 24px; margin: 24px 0 40px; }
.tdh-card {
	background: #FFFFFF;
	border: 1px solid var(--td-line, #E5E7EB);
	border-radius: var(--td-radius, 16px);
	padding: 20px;
	box-sizing: border-box;
}
.tdh-card *, .tdh-card *::before, .tdh-card *::after { box-sizing: border-box; }
.tdh a { text-decoration: none; color: var(--td-ink, #14161A); }
.tdh a:hover .tdh-tile__title,
.tdh a:hover .tdh-mini__title,
.tdh a:hover .tdh-club__name,
.tdh .tdh-item__title a:hover { text-decoration: underline; }

/* Headings */
.tdh-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.tdh .tdh-title { margin: 0; font-family: var(--td-font-head); font-weight: 900; font-size: 24px; letter-spacing: -0.01em; color: var(--td-ink); }
.tdh .tdh-more { font-weight: 700; font-size: 14px; color: var(--td-link, #1D4ED8); }
.tdh-label, .tdh .tdh-label a { font-family: var(--td-font-head); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--td-muted, #4B5563); margin: 0 0 8px; }
.tdh-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--td-muted); }
.tdh-price { font-family: var(--td-font-head); font-weight: 900; color: var(--td-ink); }
.tdh-muted { color: var(--td-muted); font-size: 13px; }
.tdh-noimg { display: block; background: #E5E7EB; }

/* Hero: latest ad + featured today */
.tdh-hero { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px; }
.tdh-hero__main {
	position: relative; display: block; overflow: hidden;
	flex: 999 1 440px; min-width: 0;
	border-radius: 12px; background: var(--td-ink);
	aspect-ratio: 16 / 10; max-height: 480px;
}
.tdh-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tdh-hero__overlay {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column; gap: 8px;
	padding: 22px 24px;
	background: rgba(10, 12, 16, 0.80);
	color: #FFFFFF;
}
.tdh-kicker {
	align-self: flex-start; padding: 4px 10px; border-radius: 6px;
	background: var(--td-brand); color: var(--td-ink);
	font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.tdh-hero__title { font-family: var(--td-font-head); font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; color: #FFFFFF; }
.tdh-hero__text { font-size: 15px; line-height: 1.5; color: #E5E7EB; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tdh-hero__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 14px; color: #E5E7EB; }
.tdh-hero__price { font-family: var(--td-font-head); font-weight: 900; font-size: 22px; color: #FFFFFF; }
.tdh-hero__cta { margin-left: auto; font-weight: 800; color: var(--td-brand); }
.tdh-hero__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 4px; }
.tdh-mini { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.tdh-mini:hover { background: var(--td-page, #F3F4F6); }
.tdh-mini__img { width: 96px; height: 80px; flex: none; object-fit: cover; border-radius: 8px; }
.tdh-mini__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tdh-mini__title { font-weight: 700; font-size: 16px; line-height: 1.25; }

/* Grid of aircraft cards */
.tdh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
.tdh-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tdh-tile__media { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #F3F4F6; }
.tdh-tile__media--product { background: #F7F7F8; }
.tdh-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdh-tile__media--product .tdh-tile__img { object-fit: contain; mix-blend-mode: multiply; padding: 12px; }
.tdh-tag {
	position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px;
	background: var(--td-brand); color: var(--td-ink);
	font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.tdh-tile__title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tdh-tile__foot { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.tdh-tile__foot .tdh-muted { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stream */
.tdh-head--tabs { padding-bottom: 12px; border-bottom: 1px solid var(--td-line); margin-bottom: 0; }
.tdh-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tdh .tdh-tab {
	min-height: 36px; padding: 0 14px; border-radius: 18px; cursor: pointer;
	background: #FFFFFF; color: var(--td-ink); border: 1.5px solid #D1D5DB;
	font-size: 14px; font-weight: 700; box-shadow: none;
}
.tdh .tdh-tab[aria-selected="true"] { background: var(--td-ink); color: #FFFFFF; border-color: var(--td-ink); }
.tdh-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #F0F1F3; align-items: flex-start; }
.tdh-item[hidden] { display: none; }
.tdh-item__media { flex: none; width: 180px; height: 120px; border-radius: 10px; overflow: hidden; display: block; background: #F3F4F6; }
.tdh-item__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdh-item__media--avatar img { width: 100%; height: 100%; object-fit: cover; }
.tdh-item__media--icon { display: flex; align-items: center; justify-content: center; background: var(--td-ink); color: var(--td-brand); }
.tdh-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tdh-item__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--td-muted); }
.tdh-kind { padding: 3px 8px; border-radius: 5px; }
.tdh-kind--aircraft { background: var(--td-ink); color: #FFFFFF; }
.tdh-kind--community { background: #DBEAFE; color: #1E3A8A; }
.tdh-kind--news { background: #DCFCE7; color: #14532D; }
.tdh .tdh-item__title { margin: 0; font-family: var(--td-font-head); font-weight: 800; font-size: 20px; line-height: 1.2; }
.tdh-item__text { margin: 0; font-size: 15px; line-height: 1.5; color: #374151; }

/* Browse */
.tdh-browse + .tdh-browse { margin-top: 16px; }
.tdh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tdh .tdh-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 18px; background: #F3F4F6; font-size: 14px; font-weight: 600; }
.tdh .tdh-chip:hover { background: var(--td-brand); }
.tdh-chip__n { font-size: 12px; color: var(--td-muted); }

/* Videos (vertical Shorts) */
.tdh-videos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tdh-video { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tdh-video__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--td-ink); }
.tdh-video__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdh-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 46px; height: 46px; border-radius: 23px;
	display: flex; align-items: center; justify-content: center;
	background: var(--td-brand); color: var(--td-ink);
}
.tdh-video__title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Type clubs + Hangar talk */
.tdh-two { display: flex; flex-wrap: wrap; gap: 24px; }
.tdh-two__wide { flex: 999 1 420px; min-width: 0; }
.tdh-two__narrow { flex: 1 1 300px; min-width: 0; }
.tdh-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tdh-club { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--td-line); border-radius: 12px; }
.tdh-club:hover { border-color: var(--td-ink); }
.tdh-club__img { width: 52px; height: 52px; border-radius: 26px; object-fit: cover; flex: none; }
.tdh-club > span { display: flex; flex-direction: column; min-width: 0; }
.tdh-club__name { font-weight: 800; font-size: 15px; }
.tdh-talk { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #F0F1F3; }
.tdh-talk:first-of-type { border-top: 0; }
.tdh-talk__img { width: 40px; height: 40px; border-radius: 20px; object-fit: cover; flex: none; }
.tdh-talk > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tdh-talk__name { font-weight: 800; font-size: 14px; }
.tdh-talk__text { font-size: 14px; line-height: 1.45; color: #374151; }

.tdh-page-content { margin-bottom: 40px; }

/* Smaller screens */
@media (max-width: 1199.98px) {
	.tdh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdh-videos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	.tdh { gap: 16px; margin-top: 12px; }
	.tdh-card { padding: 16px; }
	.tdh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.tdh-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdh-hero__main { aspect-ratio: 4 / 3; }
	.tdh-hero__text { display: none; }
	.tdh-item__media { width: 110px; height: 80px; }
	.tdh .tdh-item__title { font-size: 17px; }
}
@media (max-width: 479.98px) {
	.tdh-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tdh-item { gap: 12px; }
	.tdh-item__text { display: none; }
}
