/* TFCD section. Uses the site's tokens; teal accent from the TFCD render brand (#22D3B8). */
.tfcd { --accent: #22d3b8; --accent-ink: #04201b; --accent-soft: rgba(34, 211, 184, .12); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .tfcd { --accent: #0f7f6e; --accent-ink: #f2fffc; --accent-soft: rgba(15, 127, 110, .1); } }
:root[data-theme="light"] .tfcd { --accent: #0f7f6e; --accent-ink: #f2fffc; --accent-soft: rgba(15, 127, 110, .1); }

.tf-subnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 88px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.tf-mark { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.tf-subnav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.tf-subnav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.tf-subnav a[aria-current="page"], .tf-subnav a:hover { color: var(--text); }
.tf-subnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.tf-hero { padding-top: 48px; }
.tf-hero .display { max-width: 18ch; }
.tf-latest { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .tf-latest { grid-template-columns: 1fr; } }

.tf-player { position: relative; }
.tf-play, .tf-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); overflow: hidden; background: #000; }
.tf-player.vertical .tf-play, .tf-player.vertical iframe { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }
.tf-play { position: relative; padding: 0; cursor: pointer; }
.tf-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s var(--ease); }
.tf-play:hover img, .tf-play:focus-visible img { opacity: 1; }
.tf-play-btn { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tf-play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.tf-consent { margin: 8px 2px 0; }
.tf-item-player { max-width: 960px; margin-bottom: 8px; }

.tf-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tf-card { display: flex; flex-direction: column; gap: 8px; }
.tf-card[hidden] { display: none; }
.tf-thumb { position: relative; display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.tf-card.guide .tf-thumb { aspect-ratio: 16 / 9; }
.tf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tf-thumb span { position: absolute; right: 8px; bottom: 8px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; }
.tf-card h3 a { color: var(--text); text-decoration: none; }
.tf-card h3 a:hover { color: var(--accent); }
.tf-empty { padding: 22px; }

.tf-search { display: flex; gap: 8px; margin: 18px 0 12px; max-width: 620px; }
.tf-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.tf-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tf-upcoming { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tf-upcoming li { display: grid; grid-template-columns: 150px auto 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .tf-upcoming li { grid-template-columns: 1fr; gap: 4px; } }
.tf-principles { max-width: 70ch; }
.tf-socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.tf-socials a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); text-decoration: none; }

.tf-dl { display: grid; gap: 10px; margin: 0; }
.tf-dl div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.tf-dl dt { color: var(--dim); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.tf-dl dd { margin: 0; }
@media (max-width: 640px) { .tf-dl div { grid-template-columns: 1fr; gap: 2px; } }
.tf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tf-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tf-table th, .tf-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tf-table th { color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.tf-prompt { margin: 8px 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); border-left: 3px solid var(--accent); white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.tf-chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tf-chapters .mono { display: inline-block; min-width: 48px; color: var(--accent); }
.tf-sources { padding-left: 18px; }
.tf-disclaimer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.tfcd .pill { background: var(--accent-soft); color: var(--accent); }
