.td-page,
.tn-meet {
    --td-gold: #b8893b;
    --td-gold-hi: #e9c983;
    --td-silver: #8a96a3;
    --td-bronze: #a8673a;
    --td-bronze-hi: #e2b089;
    --td-soft: rgba(61, 134, 68, .10);
    --td-shadow: 0 1px 2px rgba(20, 40, 20, .05), 0 12px 32px -18px rgba(20, 40, 20, .35);
    --td-shadow-lift: 0 2px 4px rgba(20, 40, 20, .06), 0 26px 50px -22px rgba(20, 40, 20, .45);
}

.td-page {
    background: var(--bg-2);
    padding-bottom: 72px;
}

[data-theme="dark"] .td-page,
[data-theme="dark"] .tn-meet {
    --td-soft: rgba(102, 187, 106, .16);
    --td-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -18px rgba(0, 0, 0, .8);
    --td-shadow-lift: 0 2px 4px rgba(0, 0, 0, .5), 0 28px 56px -22px rgba(0, 0, 0, .9);
}

.td-head {
    padding: 56px 0 24px;
    text-align: center;
}

.td-head h1 {
    margin: 14px auto 12px;
    max-width: 16em;
    font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.4rem);
    line-height: 1.08;
}

.td-head p {
    margin: 0 auto;
    max-width: 38em;
    color: var(--fg-2);
}

.td-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--fg-2);
}

.td-trust i {
    margin-right: 6px;
    color: var(--green);
}

.td-search {
    margin: 18px 0 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--td-shadow);
}

.td-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.td-q {
    position: relative;
    flex: 1 1 320px;
    min-width: 0;
    margin: 0;
}

.td-q i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fg-2);
}

.td-q input,
.td-select {
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-2);
    color: var(--fg);
    font: inherit;
    font-size: 15px;
}

.td-q input {
    width: 100%;
    padding: 0 16px 0 44px;
}

.td-select {
    max-width: 100%;
    padding: 0 34px 0 14px;
    font-size: 14px;
}

.td-q input:focus,
.td-select:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px;
}

.td-submit {
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-colour);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.td-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.td-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--paper);
    color: var(--fg-2);
    font-size: 13px;
    cursor: pointer;
}

.td-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.td-chip:has(input:checked) {
    border-color: var(--green);
    background: var(--td-soft);
    color: var(--green-deep);
    font-weight: 700;
}

[data-theme="dark"] .td-chip:has(input:checked) {
    color: var(--green);
}

.td-chip:has(input:focus-visible) {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.td-clear {
    align-self: center;
    margin-left: auto;
    font-size: 13px;
    color: var(--green);
    font-weight: 700;
}

.td-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    margin: 18px 2px 14px;
    font-size: 14px;
    color: var(--fg-2);
}

.td-results b {
    color: var(--fg);
}

.td-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 22px;
}

.td-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--td-shadow);
    color: var(--fg);
    text-decoration: none;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}

.td-card:hover,
.td-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--td-shadow-lift);
    color: var(--fg);
}

.td-card.td-gold {
    border-color: color-mix(in srgb, var(--td-gold) 45%, var(--border));
}

.td-media {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: var(--bg-2);
}

.td-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.td-card:hover .td-media img {
    transform: scale(1.04);
}

.td-media::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, rgba(10, 18, 12, .55));
    pointer-events: none;
}

.td-mono {
    --m1: #2E7D32;
    --m2: #1f5fae;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 64px;
    color: rgba(255, 255, 255, .92);
    background:
        radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .18), transparent 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 12px),
        linear-gradient(135deg, var(--m1), var(--m2));
}

.td-card:nth-child(5n+2) .td-mono {
    --m1: #8a5a1c;
    --m2: #2E7D32;
}

.td-card:nth-child(5n+3) .td-mono {
    --m1: #1f5fae;
    --m2: #6a3fb0;
}

.td-card:nth-child(5n+4) .td-mono {
    --m1: #6a3fb0;
    --m2: #b8893b;
}

.td-card:nth-child(5n) .td-mono {
    --m1: #14301c;
    --m2: #3d8644;
}

.td-medal {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px 6px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #2a1d08;
    background: linear-gradient(135deg, var(--hi), var(--lo));
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.td-medal-disc {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    background: rgba(255, 255, 255, .45);
}

.td-medal-GOLD {
    --hi: var(--td-gold-hi);
    --lo: var(--td-gold);
}

.td-medal-SILVER {
    --hi: #f2f4f6;
    --lo: var(--td-silver);
}

.td-medal-BRONZE {
    --hi: var(--td-bronze-hi);
    --lo: var(--td-bronze);
    color: #2a1305;
}

.td-play {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(10, 18, 12, .45);
    backdrop-filter: blur(6px);
    font-size: 12px;
}

.td-place {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    z-index: 2;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}

.td-place i {
    margin-right: 6px;
}

.td-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 18px 20px 20px;
}

.td-name-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.td-page .td-name {
    font-size: 24px;
    line-height: 1.1;
}

.td-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-deep);
}

[data-theme="dark"] .td-status {
    color: var(--green);
}

.td-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px var(--td-soft);
}

.td-page .td-status-full {
    color: var(--fg-2);
}

.td-status-full::before {
    box-shadow: none;
}

.td-headline {
    margin: 0;
    min-height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.5;
}

.td-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.td-tag {
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--td-soft);
    font-size: 12.5px;
    color: var(--fg);
}

.td-tag-more {
    background: var(--bg-2);
    color: var(--fg-2);
}

.td-verif {
    display: flex;
    gap: 8px;
    color: var(--green);
    font-size: 13px;
}

.td-verif span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--td-soft);
}

.td-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.td-fact {
    min-width: 0;
    text-align: center;
}

.td-fact + .td-fact {
    border-left: 1px solid var(--border);
}

.td-fact dd {
    margin: 0;
    padding: 0 4px;
    font-family: var(--display);
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.td-fact dt {
    margin-top: 2px;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--fg-2);
}

.td-fact {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
}

.td-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 34px 0 0;
}

.td-pager a,
.td-pager span {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--paper);
    color: var(--fg);
    text-decoration: none;
}

.td-pager a[aria-current="page"] {
    background: var(--fg);
    border-color: var(--fg);
    color: var(--bg);
}

.td-pager span {
    opacity: .4;
}

.td-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: var(--fg-2);
}

.td-empty h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.td-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 28px 0 18px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--paper);
    color: var(--fg-2);
    text-decoration: none;
    font-size: 14px;
}

.td-hero {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}

.td-portrait {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    background: var(--bg);
    box-shadow: var(--td-shadow-lift);
}

.td-portrait img,
.td-portrait video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.td-portrait video {
    background: #000;
    object-fit: contain;
}

.td-portrait .td-mono {
    font-size: 120px;
}

.td-video-btn {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #1d2a22;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}

.td-video-btn i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-colour);
    color: #fff;
    font-size: 10px;
}

.td-page .td-p-name {
    margin: 6px 0;
    font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
    line-height: 1.05;
}

.td-p-headline {
    margin: 0 0 18px;
    max-width: 34em;
    font-size: 18px;
    color: var(--fg-2);
}

.td-p-medal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.td-p-medal-row .td-medal {
    position: static;
}

.td-p-since {
    font-size: 13px;
    color: var(--fg-2);
}

.td-ladder {
    display: flex;
    gap: 6px;
    margin: 18px 0 4px;
}

.td-ladder span {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--bg);
}

.td-ladder span.on {
    background: linear-gradient(90deg, var(--green), var(--green-deep));
}

.td-ladder-cap {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-2);
}

.td-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.td-badge {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--paper);
    font-size: 13.5px;
}

.td-badge i {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--td-soft);
    color: var(--green);
}

.td-badge-off {
    opacity: .45;
}

.td-badge-off i {
    background: var(--bg);
    color: var(--fg-2);
}

.td-qf {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 44px 0 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--paper);
    overflow: hidden;
}

.td-qf > div {
    min-width: 0;
    padding: 18px 16px;
}

.td-qf > div + div {
    border-left: 1px solid var(--border);
}

.td-qf span {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fg-2);
}

.td-qf b {
    display: block;
    margin-top: 6px;
    font-family: var(--display);
    font-weight: 400;
    font-size: 20px;
}

.td-qf small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--fg-2);
}

.td-sections {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 22px;
    margin-top: 22px;
}

.td-side {
    display: grid;
    gap: 22px;
    align-content: start;
}

.td-panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--paper);
}

.td-page .td-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.td-page .td-panel h2 + * {
    margin-top: 0;
}

.td-panel h2:not(:first-child) {
    margin-top: 22px;
}

.td-bio {
    margin: 0;
    color: var(--fg-2);
    line-height: 1.7;
    white-space: pre-line;
}

.td-subj {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14.5px;
}

.td-subj:last-child {
    border-bottom: 0;
}

.td-subj span {
    color: var(--fg-2);
    font-size: 13px;
}

.td-kv {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 16px;
    margin: 0;
    font-size: 14px;
}

.td-kv dt {
    font-weight: 400;
    color: var(--fg-2);
}

.td-kv dd {
    margin: 0;
}

.td-avail {
    display: grid;
    grid-template-columns: 76px repeat(7, minmax(0, 1fr));
    gap: 4px;
    font-size: 11px;
}

.td-avail-h {
    text-align: center;
    color: var(--fg-2);
    padding-bottom: 4px;
}

.td-avail-t {
    display: flex;
    align-items: center;
    color: var(--fg-2);
}

.td-avail-c {
    height: 26px;
    border-radius: 6px;
    background: var(--bg-2);
}

.td-avail-c.on {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
}

.td-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--fg-2);
}

.td-privacy {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg-2);
    font-size: 13px;
    line-height: 1.55;
    color: var(--fg-2);
}

.td-privacy i {
    margin-top: 3px;
    color: var(--green);
}

.tn-meet {
    padding: 24px 0 64px;
}

.tn-meet-panel {
    overflow: hidden;
    padding: 48px clamp(20px, 5vw, 64px);
    border-radius: 30px;
    color: #f4f1e8;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(233, 201, 131, .18), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(102, 187, 106, .22), transparent 60%),
        #14251a;
}

.tn-meet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.tn-meet .gb-kicker {
    color: #e9c983;
}

.tn-meet .gb-kicker::after {
    background: #e9c983;
}

.gb-audience-page .tn-meet h2 {
    margin: 14px 0 12px;
    color: #f4f1e8;
    font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
    line-height: 1.08;
}

.tn-meet p {
    max-width: 30em;
    color: rgba(244, 241, 232, .78);
}

.tn-meet-stack {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 0;
    margin: 22px 0;
}

.tn-meet-face {
    width: 46px;
    height: 46px;
    margin-left: -12px;
    border-radius: 50%;
    border: 3px solid #14251a;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: #2b4a33;
    font-size: 13px;
    font-weight: 700;
}

.tn-meet-face:first-child {
    margin-left: 0;
}

.tn-meet-count {
    margin-left: 14px;
    font-size: 14px;
    color: rgba(244, 241, 232, .85);
}

.tn-meet-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    background: #e9c983;
    color: #1d1406;
    font-weight: 700;
    text-decoration: none;
}

.tn-meet-cta:hover {
    color: #1d1406;
    background: #f1d699;
}

.tn-meet-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: rotate(-2deg);
}

.tn-meet-card {
    color: inherit;
    text-decoration: none;
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}

.tn-meet-card:hover {
    color: inherit;
    background: rgba(255, 255, 255, .1);
}

.tn-meet-cards li:nth-child(even) .tn-meet-card {
    transform: translateY(18px);
}

.tn-meet-card img,
.tn-meet-card .td-mono {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 14px;
    object-fit: cover;
    font-size: 22px;
}

.tn-meet-card div {
    min-width: 0;
}

.tn-meet-card b {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: 17px;
}

.tn-meet-card small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: rgba(244, 241, 232, .7);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tn-meet-card .td-medal {
    position: static;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 10.5px;
    box-shadow: none;
}

@media (max-width: 900px) {
    .td-hero,
    .td-sections,
    .tn-meet-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .td-portrait {
        max-width: 420px;
    }

    .td-qf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .td-qf > div:nth-child(3) {
        border-left: 0;
    }

    .td-qf > div:nth-child(n+3) {
        border-top: 1px solid var(--border);
    }

    .tn-meet-cards {
        transform: none;
    }
}

@media (max-width: 560px) {
    .td-badges,
    .tn-meet-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .tn-meet-cards li:nth-child(even) .tn-meet-card {
        transform: none;
    }

    .td-avail {
        grid-template-columns: 60px repeat(7, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .td-card,
    .td-media img {
        transition: none;
    }
}
