/* Blog: list (Blog mockup) and single post (BlogPost mockup), plus the two ad spots. */

.tdid-bl { padding: 36px 40px 72px; }
.tdid-bl__in { max-width: 1240px; margin: 0 auto; }
.tdid-bl-meta { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--tdid-accent); }

/* "Latest" card */
.tdid-bl-latest { display: flex; flex-wrap: wrap; margin-bottom: 32px; overflow: hidden; border: 2px solid var(--tdid-accent); border-radius: 22px; background: #FFFFFF; }
.tdid-bl-latest__photo { position: relative; flex: 1 1 520px; min-height: 320px; overflow: hidden; background: var(--tdid-bg-light, #F2FAF8); }
.tdid-bl-latest__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tdid-bl-latest__flag { position: absolute; top: 16px; left: 16px; padding: 7px 14px; border-radius: 20px; background: var(--tdid-accent); color: #FFFFFF; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.tdid-bl-latest__body { display: flex; flex: 1 1 400px; flex-direction: column; justify-content: center; padding: 36px; }
.tdid-bl-latest .tdid-bl-meta { margin-bottom: 10px; }
.tdid-bl-latest__title { margin: 0 0 14px; font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); font-weight: 400; font-size: 32px; line-height: 1.2; letter-spacing: 0.01em; text-transform: uppercase; }
.tdid-bl-latest__title a, .tdid-bl-card__title a { color: var(--tdid-text); text-decoration: none; }
.tdid-bl-latest__title a:hover, .tdid-bl-card__title a:hover { color: var(--tdid-button); }
.tdid-bl-latest__excerpt { margin: 0 0 22px; font-size: 16px; line-height: 1.5; color: var(--tdid-muted); }
.tdid-bl-btn { align-self: flex-start; display: inline-block; padding: 14px 28px; border-radius: 28px; background: var(--tdid-button); color: #FFFFFF; font-weight: 700; text-decoration: none; }
.tdid-bl-btn:hover, .tdid-bl-btn:focus { background: var(--tdid-text); color: #FFFFFF; }

/* Grid cards */
.tdid-bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
.tdid-bl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #E3ECEE; border-radius: 18px; background: #FFFFFF; }
.tdid-bl-card__photo { position: relative; display: block; height: 210px; overflow: hidden; background: var(--tdid-bg-light, #F2FAF8); }
.tdid-bl-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.tdid-bl-card:hover .tdid-bl-card__photo img { transform: scale(1.03); }
.tdid-bl-card__photo.is-empty, .tdid-bl-latest__photo.is-empty { background: linear-gradient(135deg, #3F98AB, #0E9A90); }
.tdid-bl-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 18px 20px 22px; }
.tdid-bl-card__title { margin: 0 0 14px; font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); font-weight: 400; font-size: 19px; line-height: 1.25; letter-spacing: 0.01em; text-transform: uppercase; }
.tdid-bl-card__more { margin-top: auto; color: var(--tdid-button); font-weight: 700; text-decoration: none; }
.tdid-bl-card__more:hover { text-decoration: underline; }

/* ---------- Single post ---------- */
/* The page wrapper hides overflow (for palm fronds); "clip" does the same without breaking the sticky side banner. */
.tdid-page.tdid-blog-post { overflow: clip; }
.tdid-post-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; max-width: 1180px; margin: 0 auto; padding: 36px 40px 24px; }
.tdid-post { min-width: 0; max-width: 820px; }
.tdid-post__crumbs { margin: 0 0 16px; font-size: 14px; }
.tdid-post__crumbs a { color: var(--tdid-text); font-weight: 700; text-decoration: none; }
.tdid-post__crumbs a:hover { color: var(--tdid-button); text-decoration: underline; }
.tdid-post .tdid-bl-meta { margin-bottom: 10px; }
.tdid-post__title { margin: 0 0 24px; font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); font-weight: 400; font-size: 44px; line-height: 1.15; letter-spacing: 0.01em; text-transform: uppercase; color: var(--tdid-text); }
.tdid-post__photo { margin: 0 0 28px; overflow: hidden; border-radius: 22px; }
.tdid-post__photo img { display: block; width: 100%; max-height: 520px; object-fit: cover; }

/* Post text (imported posts are plain WordPress content) */
.tdid-post__content { font-size: 17px; line-height: 1.7; color: var(--tdid-text); overflow-wrap: break-word; }
.tdid-post__content > p:first-child { font-size: 18px; }
.tdid-post__content p { margin: 0 0 20px; }
.tdid-post__content h2, .tdid-post__content h3, .tdid-post__content h4 { margin: 32px 0 10px; font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.25; color: var(--tdid-text); }
.tdid-post__content h2 { font-size: 26px; }
.tdid-post__content h3 { font-size: 22px; }
.tdid-post__content h4 { font-size: 18px; }
.tdid-post__content a { color: var(--tdid-button); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tdid-post__content a:hover { color: var(--tdid-text); }
.tdid-post__content ul, .tdid-post__content ol { margin: 0 0 20px; padding-left: 24px; }
.tdid-post__content li { margin-bottom: 6px; }
.tdid-post__content img { max-width: 100%; height: auto; border-radius: 12px; }
.tdid-post__content .aligncenter { display: block; margin: 20px auto; }
.tdid-post__content .alignleft { float: left; margin: 6px 20px 12px 0; }
.tdid-post__content .alignright { float: right; margin: 6px 0 12px 20px; }
.tdid-post__content figure { margin: 0 0 20px; max-width: 100%; }
.tdid-post__content figcaption, .tdid-post__content .wp-caption-text { font-size: 14px; color: var(--tdid-muted); text-align: center; }
.tdid-post__content .wp-caption { max-width: 100%; }
.tdid-post__content blockquote { margin: 0 0 20px; padding: 14px 20px; border-left: 4px solid var(--tdid-accent); background: var(--tdid-bg-light, #F2FAF8); border-radius: 0 12px 12px 0; }
.tdid-post__content iframe, .tdid-post__content video, .tdid-post__content embed { max-width: 100%; }
.tdid-post__content::after { content: ""; display: table; clear: both; }

.tdid-post-cal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin: 0 0 24px; padding: 18px 22px; border-radius: 16px; background: var(--tdid-bg-light, #F2FAF8); font-size: 16px; }
.tdid-post-cal span { font-weight: 700; }
.tdid-post-cal a { font-weight: 700; color: var(--tdid-button); }

/* ---------- Ads ---------- */
.tdid-ad { position: relative; box-sizing: border-box; text-align: center; }
.tdid-ad__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tdid-muted); }
.tdid-ad img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 10px; }
.tdid-ad--inline { clear: both; margin: 8px 0 28px; }
.tdid-post__content .tdid-ad a { text-decoration: none; }
.tdid-post-side { min-width: 0; }
.tdid-ad--side { position: sticky; top: 24px; width: 300px; }
.tdid-ad--empty { padding: 22px 20px; border: 2px dashed var(--tdid-border, #D5E7E5); border-radius: 16px; background: var(--tdid-bg-light, #F2FAF8); }
.tdid-ad--empty .tdid-ad__label { color: var(--tdid-accent); }
.tdid-ad__pitch { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--tdid-text); }
.tdid-post__content .tdid-ad__cta, .tdid-ad__cta { display: inline-block; padding: 10px 20px; border: 2px solid var(--tdid-button); border-radius: 24px; background: #FFFFFF; color: var(--tdid-button); font-size: 14px; font-weight: 700; text-decoration: none; }
.tdid-ad__cta:hover, .tdid-ad__cta:focus { background: var(--tdid-button); color: #FFFFFF; }
.tdid-ad--side.tdid-ad--empty { display: flex; flex-direction: column; justify-content: center; min-height: 600px; }

/* More from the blog */
.tdid-post-more { padding: 32px 40px 72px; }
.tdid-post-more__title { margin: 0 0 24px; font-family: var(--tdid-font-display, 'Archivo Black', Arial, sans-serif); font-weight: 400; font-size: 28px; letter-spacing: 0.01em; text-transform: uppercase; color: var(--tdid-accent); }

@media (max-width: 1024px) {
	.tdid-post-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tdid-post { max-width: 820px; margin: 0 auto; width: 100%; }
	.tdid-post-side { max-width: 820px; margin: 0 auto 8px; width: 100%; }
	.tdid-ad--side { position: static; width: auto; max-width: 300px; margin: 0 auto; }
	.tdid-ad--side.tdid-ad--empty { min-height: 0; max-width: none; }
}

@media (max-width: 960px) {
	.tdid-bl { padding: 24px 16px 56px; }
	.tdid-bl-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 6px; }
	.tdid-bl-tabs a { flex: 0 0 auto; white-space: nowrap; }
	.tdid-bl-latest__photo { min-height: 220px; }
	.tdid-bl-latest__body { padding: 22px; }
	.tdid-bl-latest__title { font-size: 24px; }
	.tdid-bl-grid { grid-template-columns: minmax(0, 1fr); }
	.tdid-post-wrap { padding: 24px 16px 16px; }
	.tdid-post__title { font-size: 30px; }
	.tdid-post__content { font-size: 16px; }
	.tdid-post__content .alignleft, .tdid-post__content .alignright { float: none; display: block; margin: 16px auto; }
	.tdid-post-more { padding: 24px 16px 56px; }
}

/* Monthly roundup rows ([tdid_roundup], BlogPost mockup) */
.tdid-roundup { margin: 0 0 24px; }
.tdid-post__content .tdid-roundup__day { margin: 28px 0 8px; font-size: 22px; }
.tdid-roundup__row { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 0; border-top: 1px solid #E3ECEE; }
.tdid-roundup__time { flex: 0 0 110px; font-size: 15px; font-weight: 800; color: var(--tdid-accent); }
.tdid-roundup__event { flex: 1 1 260px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.tdid-post__content .tdid-roundup__event a { color: var(--tdid-text); font-weight: 700; }
.tdid-post__content .tdid-roundup__event a:hover { color: var(--tdid-button); }
.tdid-roundup__place { flex: 1 1 220px; font-size: 15px; line-height: 1.4; color: var(--tdid-muted); }
@media (max-width: 600px) {
	.tdid-roundup__time { flex-basis: 100%; }
	.tdid-roundup__event, .tdid-roundup__place { flex-basis: 100%; }
}

/* Imported posts: YouTube/Facebook video embeds scale with the column */
.tdid-post__content iframe[src*="youtube"], .tdid-post__content iframe[src*="youtu.be"], .tdid-post__content iframe[src*="facebook.com/plugins/video"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0 0 20px; border: 0; border-radius: 12px; }

/* Google AdSense in-article ad on monthly roundups (added back by the theme if a post loses it) */
.tdid-adsense { clear: both; margin: 8px 0 28px; }
