/* Top Fly User Challenge: extends contests.css tokens */
#tgf-contests a.tgf-btn:not(.ghost):not(.danger):not(.sand) { color: var(--paper); }
.tgfc-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 0 0 1.5rem; padding: 1rem 1.2rem; background: var(--sand2); border: 1px solid var(--sand); border-left: 5px solid var(--f); border-radius: var(--r); }
.tgfc-promo h2 { font-size: 1.2rem; margin: .1rem 0 .2rem; }
.tgfc-promo p { margin: 0; font-size: .9rem; color: var(--ink); max-width: 60ch; }
.tgfc-promo .tgf-btn:hover, .tgfc-head .tgf-btn:hover { background: var(--f2); border-color: var(--f2); }
.tgfc-hero .tgf-actions { align-items: center; }
#tgf-contests .tgfc-onDark { color: var(--paper); border-color: rgba(255,254,250,.6); }
#tgf-contests .tgfc-onDark:hover { background: rgba(255,254,250,.1); }
#tgf-contests .tgfc-onDarkLink { color: var(--sand); }
.tgfc-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tgfc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tgfc-steps { grid-template-columns: repeat(4, 1fr); } }
.tgfc-steps li { display: flex; gap: .7rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff9f0; }
.tgfc-steps li > span { display: grid; gap: .1rem; }
.tgfc-steps strong { font-family: Raleway, sans-serif; color: var(--f); }
.tgfc-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--f); color: var(--sand); display: grid; place-items: center; font: 800 .85rem Raleway, sans-serif; }
.tgfc-small { display: block; font-size: .8rem; color: var(--mut); margin: 0; }
.tgfc-strong { font-weight: 600; margin: .6rem 0 .3rem; color: var(--f); }
.tgfc-lbl { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tgfc-prize { padding: 1.1rem; margin: 1.2rem 0; background: #edf2e9; border: 1px solid #cfdcc8; border-radius: 12px; }
#tgf-contests .tgfc-prize h2 { font-size: 1.15rem; margin: .35rem 0 .7rem; line-height: 1.35; }
.tgfc-prize.compact { margin: .8rem 0; padding: .65rem .8rem; }
.tgfc-prize-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.tgfc-prize-row strong { font: 800 1.15rem Raleway, sans-serif; color: var(--f); }
.tgfc-bar { height: 8px; border-radius: 99px; background: rgba(24,61,50,.12); overflow: hidden; }
.tgfc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--f2), var(--f)); transform-origin: left; transition: transform .6s ease; }
.tgfc-facts { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--ink); }
.tgfc-facts li { margin-bottom: .2rem; }
.tgfc-host { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--f); margin: .2rem 0; font-weight: 600; }
.tgfc-tag { font: 700 .64rem Raleway, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 99px; background: var(--f); color: var(--sand); }
.tgfc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.tgfc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
#tgf-contests .tgfc-list { width: 100%; max-width: none; grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
#tgf-contests .tgfc-row { width: 100%; max-width: none; min-width: 0; }
#tgf-contests .tgfc-rowbody { min-width: 0; overflow-wrap: anywhere; }
.tgfc-row { display: grid; grid-template-columns: 1fr; gap: 0; background: #fff9f0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.tgfc-row:hover, .tgfc-row:focus-within { border-color: var(--sand); box-shadow: var(--sh); }
@media (min-width: 640px) { .tgfc-row { grid-template-columns: 170px minmax(0, 1fr); } }
.tgfc-thumb { background: var(--sand2); aspect-ratio: 16/10; }
@media (min-width: 640px) { .tgfc-thumb { aspect-ratio: auto; min-height: 100%; } }
.tgfc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tgfc-rowbody { padding: .9rem 1rem 1rem; }
.tgfc-rowbody h3 { font-size: 1.15rem; margin: .35rem 0 .25rem; }
.tgfc-rowtop { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tgfc-status { font: 700 .68rem Raleway, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 99px; background: var(--sand2); color: var(--ink); }
.tgfc-status.publish { background: #d5e8dc; color: var(--ok); }
.tgfc-status.draft { background: var(--line); }
.tgfc-status.rejected { background: #f3d6d0; color: var(--err); }
.tgfc-notice { font-size: .86rem; background: var(--sand2); border-radius: 8px; padding: .55rem .75rem; margin: .6rem 0 0; }
.tgfc-notice.warn { background: #fbeeea; border: 1px solid #ebc4bb; color: var(--err); }
.tgfc-notice.warn .tgfc-small { display: inline; }
.tgf-dialog .tgfc-sched { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .2rem .9rem .4rem; margin: 1rem 0; }
.tgf-dialog .tgfc-sched legend { font: 700 .8rem Raleway, sans-serif; color: var(--f); padding: 0 .3rem; }
.tgf-dialog .tgfc-dates { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: .8rem; }
.tgf-dialog .tgfc-dates .tgf-field, .tgf-dialog .tgfc-dates input { min-width: 0; }
@media (min-width: 480px) { .tgf-dialog .tgfc-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tgf-dialog .tgfc-notice.warn { margin-bottom: .6rem; }
@media (prefers-reduced-motion: reduce) { .tgfc-bar span, .tgfc-row { transition: none; } }
