.tfg-shell{max-width:1240px;width:100%;margin:0 auto;padding:30px 24px 60px;color:var(--text-primary,#eef1f7);font-family:'DM Sans',sans-serif}.tfg-shell *{box-sizing:border-box;min-width:0}.tfg-shell h1,.tfg-shell h2,.tfg-shell h3{font-family:'DM Sans',sans-serif;font-style:normal;line-height:1.25;margin:0 0 16px;font-weight:700}.tfg-shell h1{font-size:clamp(28px,4vw,44px);letter-spacing:-.03em}.tfg-shell h2{font-size:22px}.tfg-shell h3{font-size:18px}.tfg-shell p{font-size:15px;line-height:1.65;margin:10px 0}.tfg-shell a{color:inherit;text-decoration:none}.tfg-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:28px;padding:30px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:linear-gradient(130deg,rgba(79,227,208,.1),rgba(17,20,28,.94) 60%)}.tfg-hero>div{max-width:800px}.tfg-eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent,#58e4d0);margin-bottom:12px}.tfg-panel{background:rgba(17,20,28,.93);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:24px;margin-bottom:20px;overflow:hidden}.tfg-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:20px}.tfg-grid>.tfg-panel{margin:0}.tfg-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tfg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tfg-button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(255,255,255,.04);color:#edf1f8!important;font-family:inherit;font-size:13px;font-weight:700;line-height:1.3;cursor:pointer;white-space:normal;flex-shrink:0}.tfg-button:hover{border-color:#58e4d0;background:rgba(88,228,208,.1)}.tfg-button--primary{background:#58e4d0;color:#0c1617!important;border-color:#58e4d0}.tfg-button--danger{color:#ff7b98!important;border-color:rgba(255,84,120,.4)}.tfg-button:disabled{opacity:.4;cursor:not-allowed}.tfg-badge{display:inline-block;padding:5px 9px;border-radius:6px;background:rgba(255,255,255,.06);font-size:12px;font-weight:600;text-transform:capitalize;line-height:1.4}.tfg-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.tfg-nav a{padding:10px 16px;border:1px solid rgba(255,255,255,.12);border-radius:8px;font-size:13px;font-weight:700;background:rgba(17,20,28,.88)}.tfg-nav a:hover{color:#58e4d0}.tfg-section-heading,.tfg-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.tfg-card-heading h3{margin:0}.tfg-section-heading h2{margin:0}.tfg-shell>section[id]{scroll-margin-top:110px;margin-top:30px}.tfg-muted{font-size:13px;color:#aab3c4;line-height:1.6}.tfg-positive,.tfg-link{color:#58e4d0!important}.tfg-negative{color:#ff7b98}.tfg-link{display:inline-block;font-size:13px;font-weight:700;margin-top:16px}.tfg-notice{padding:16px 20px;margin-bottom:24px;border:1px solid rgba(88,228,208,.4);background:rgba(30,80,70,.4);border-radius:12px;font-size:15px}.tfg-notice--error{border-color:rgba(255,80,115,.45);background:rgba(95,30,45,.4)}.tfg-empty{padding:24px!important;text-align:center;color:#aab3c4}.tfg-split-card{display:block;transition:border-color .15s}.tfg-split-card:hover,.tfg-event-card:hover{border-color:#58e4d0}.tfg-split-card>.tfg-badge{margin-bottom:20px}.tfg-metrics{display:flex;gap:20px;flex-wrap:wrap;font-size:13px;color:#aab3c4}.tfg-metrics strong{font-size:19px;color:#edf1f8}.tfg-list-link{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.08)}.tfg-list-link small{display:block;margin-top:8px;color:#aab3c4;font-size:13px}.tfg-form{display:flex;flex-direction:column;gap:16px}.tfg-form label,.tfg-inline-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;font-style:normal;color:#aab3c4;text-transform:none;letter-spacing:0}.tfg-shell input,.tfg-shell select{display:block;width:100%;height:44px;padding:10px 12px;background:#0c0f15;color:#edf1f8;border:1px solid rgba(255,255,255,.16);border-radius:9px;font-family:inherit;font-size:14px;font-style:normal}.tfg-shell input:focus,.tfg-shell select:focus{outline:2px solid rgba(88,228,208,.5);outline-offset:1px}.tfg-shell input[type=datetime-local]{color-scheme:dark}.tfg-inline-form{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.tfg-inline-form label{flex:1;min-width:200px}.tfg-details{padding:0}.tfg-details>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;cursor:pointer;list-style:none;font-size:17px;font-weight:700}.tfg-details>summary::after{content:'+';color:#58e4d0;font-size:21px}.tfg-details[open]>summary{border-bottom:1px solid rgba(255,255,255,.09)}.tfg-details[open]>summary::after{content:'−'}.tfg-details-body{padding:24px}.tfg-form-details{margin-top:20px;border-top:1px solid rgba(255,255,255,.1);padding-top:16px}.tfg-form-details>summary{cursor:pointer;font-size:14px;font-weight:700;color:#58e4d0;margin-bottom:16px}.tfg-table-wrap{overflow-x:auto;max-width:100%}.tfg-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.tfg-table th{font-size:11px;color:#aab3c4;text-transform:uppercase;letter-spacing:.06em;background:rgba(255,255,255,.025)}.tfg-table th,.tfg-table td{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.07);vertical-align:middle;white-space:normal;line-height:1.5}.tfg-table td:first-child{white-space:nowrap}.tfg-table td small{display:block;color:#aab3c4}.tfg-table input{min-width:84px}.tfg-table select{min-width:100px}.tfg-score{font-size:19px;font-weight:700;color:#58e4d0}.tfg-round-points{display:flex;gap:5px;flex-wrap:wrap}.tfg-dropped{text-decoration:line-through;opacity:.5}.tfg-rules-summary{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:13px;color:#aab3c4}.tfg-rules-summary strong{display:block;color:#edf1f8;font-size:15px;margin-bottom:5px}.tfg-event-times{display:flex;flex-direction:column;gap:9px;margin-top:20px;font-size:12px;color:#aab3c4}.tfg-event-times time{display:block;font-size:14px;color:#edf1f8;margin-top:3px}.tfg-race-status{display:flex;justify-content:space-between;gap:30px;align-items:center}.tfg-race-status p{font-size:13px}.tfg-race-status time{font-weight:600;margin-left:12px;color:#edf1f8}.tfg-countdown{text-align:right;display:flex;flex-direction:column;gap:8px}.tfg-countdown strong{font-family:'DM Mono',monospace;font-size:clamp(36px,6vw,62px);line-height:1;color:#58e4d0}.tfg-lineup{padding:18px 0;border-bottom:1px solid rgba(255,255,255,.08)}.tfg-lineup:first-of-type{padding-top:0}.tfg-lineup ol{padding-left:24px;font-size:14px}.tfg-lineup li{padding:7px 0}.tfg-lineup li strong{margin-left:12px;color:#aab3c4;font-size:12px}.tfg-divider{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid rgba(255,255,255,.1)}.tfg-shell hr{border:0;border-top:1px solid rgba(255,255,255,.1);margin:28px 0}.tfg-archive{display:flex;justify-content:flex-end;margin-top:10px}
@media(max-width:850px){.tfg-two-column{grid-template-columns:1fr}.tfg-hero{align-items:flex-start;flex-direction:column}.tfg-section-heading{align-items:flex-start;flex-direction:column;gap:7px}.tfg-details>summary{flex-wrap:wrap}.tfg-details>summary>.tfg-muted{font-size:12px}.tfg-table{min-width:560px}.tfg-race-status{align-items:flex-start;flex-direction:column}.tfg-countdown{text-align:left}}@media(max-width:520px){.tfg-shell{padding:18px 10px 40px}.tfg-panel,.tfg-hero{padding:18px;border-radius:12px}.tfg-details{padding:0}.tfg-details>summary,.tfg-details-body{padding:18px}.tfg-fields{grid-template-columns:1fr}.tfg-button{width:100%}.tfg-nav a{flex:1;text-align:center;font-size:12px;padding:10px}.tfg-rules-summary{display:grid;grid-template-columns:1fr 1fr}.tfg-inline-form{display:block}.tfg-inline-form button{margin-top:14px}.tfg-card-heading{align-items:flex-start}.tfg-badge{font-size:11px}.tfg-table-wrap{margin:0}.tfg-section-heading h2{font-size:21px}}
.tfg-admin-layout{display:flex;gap:24px;align-items:flex-start}.tfg-admin-main{flex:1;min-width:0}.tfg-admin-main .tfg-two-column{grid-template-columns:1fr}.tfg-admin-layout .admin-sidebar{width:240px;flex:0 0 240px}@media(max-width:850px){.tfg-admin-layout{flex-direction:column}.tfg-admin-layout .admin-sidebar{width:100%;flex:auto}}

.tfg-hero--compact { padding:18px 22px; gap:18px; margin-bottom:20px; }
.tfg-hero--compact h1 { font-size:clamp(24px,3vw,30px); margin:0 0 8px; }
.tfg-hero--compact p { margin:0; font-size:14px; line-height:1.55; }
.tfg-shell,.tfg-shell h1,.tfg-shell h2,.tfg-shell h3 { font-family:var(--sans); color:var(--text); }
.tfg-panel,.tfg-hero { background:var(--bg-card); border-color:var(--border); border-radius:14px; }
.tfg-eyebrow,.tfg-countdown strong { color:var(--jdm-cyan); }
.tfg-countdown strong { font-family:var(--mono); }
.tfg-shell .tfg-button { border-radius:9px; font-family:var(--sans); }
.tfg-shell .tfg-button--primary { background:var(--jdm-cyan); border-color:var(--jdm-cyan); color:var(--bg-black)!important; }
.tfg-section-details{margin-top:24px;scroll-margin-top:110px}.tfg-section-details>.tfg-details-body>.tfg-muted:first-child{margin:0 0 18px}.tfg-section-details>summary>span:first-child{font-size:20px}.tfg-section-details>.tfg-details-body{padding:20px}.tfg-section-details .tfg-panel:last-child{margin-bottom:0}
.tfg-nav a[aria-current=page]{color:#0c1617;background:var(--accent,#58e4d0);border-color:var(--accent,#58e4d0)}
.tfg-shell .tfg-splits-heading { flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; }
.tfg-shell .tfg-split-card { display:flex; flex-direction:column; align-items:center; text-align:center; padding:28px 24px; }
.tfg-split-card h2 { max-width:100%; overflow-wrap:anywhere; }
.tfg-split-card>.tfg-badge { margin-bottom:18px; }
.tfg-split-card>p { margin:0 0 18px; }
.tfg-split-card .tfg-metrics { justify-content:center; gap:12px 22px; }
.tfg-shell .tfg-view-split { min-height:44px; min-width:160px; max-width:100%; margin-top:24px; gap:12px; box-shadow:0 4px 14px rgba(88,228,208,.12); }
.tfg-shell .tfg-view-split:hover { background:#83f0df; border-color:#83f0df; color:#0c1617!important; }
.tfg-view-split svg { flex:none; }


.tfg-page-backdrop { position:fixed; inset:0; z-index:-1; pointer-events:none; background-color:#080a0f; background-image:linear-gradient(rgba(7,9,13,.65),rgba(7,9,13,.77)),var(--tfg-background-image,url('/images/tfg/tfg-split-background.jpg')); background-size:cover; background-position:center; background-repeat:no-repeat; }
.tfg-shell { position:relative; z-index:1; }
.tfg-shell .tfg-welcome { display:grid; grid-template-columns:minmax(140px,215px) minmax(0,1fr); align-items:center; gap:30px; min-height:260px; padding:28px 32px; isolation:isolate; background:rgba(17,20,28,.90); }
.tfg-welcome-logo { display:block; width:100%; height:auto; max-height:190px; object-fit:contain; mix-blend-mode:screen; }
.tfg-hero .tfg-welcome-copy { max-width:740px; }
.tfg-welcome h1 { font-size:clamp(24px,3vw,34px); line-height:1.22; max-width:28ch; margin-bottom:14px; text-wrap:balance; }
.tfg-welcome p { color:#e4e9ef; max-width:70ch; font-size:15px; line-height:1.6; margin:0; }
.tfg-welcome .tfg-button { margin-top:20px; }
.tfg-shell .tfg-rules-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:24px; padding:18px 22px; align-items:start; }
.tfg-format-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:0; }
.tfg-format-facts dt,.tfg-finish-points>span { display:block; font:600 13px/1.4 var(--sans); color:var(--text-muted,#aab3c4); margin-bottom:8px; }
.tfg-format-facts dd { margin:0; color:var(--text); font-size:20px; font-weight:700; line-height:1.3; }
.tfg-format-facts dd span { display:block; color:var(--text-muted,#aab3c4); font-size:13px; font-weight:400; margin-top:3px; }
.tfg-format-facts small,.tfg-finish-points>small { display:block; color:var(--text-muted,#aab3c4); font-size:12px; line-height:1.45; margin-top:6px; }
.tfg-finish-points { min-width:0; padding-left:24px; border-left:1px solid var(--border); }
.tfg-finish-points ol { display:flex; gap:5px; flex-wrap:wrap; padding:0; margin:0; list-style:none; }
.tfg-finish-points li { display:flex; flex-direction:column; align-items:center; min-width:39px; padding:6px 8px; border:1px solid var(--border); border-radius:7px; background:rgba(255,255,255,.035); }
.tfg-finish-points li small { color:var(--text-muted,#aab3c4); font-size:11px; line-height:1.3; }
.tfg-finish-points li strong { color:var(--text); font-size:17px; margin:3px 0 0; line-height:1.25; }
.tfg-rules-page>.tfg-muted { max-width:80ch; margin-bottom:20px; }
.tfg-rule-list { list-style:none; padding:0; margin:0; }
.tfg-rule-list>li { padding:22px 0; border-top:1px solid var(--border); }
.tfg-rule-list h3 { margin-bottom:8px; font-size:17px; }
.tfg-rule-list p { margin:6px 0; font-size:14px; line-height:1.7; max-width:85ch; }
.tfg-division-rule-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:8px; margin-top:12px; }
.tfg-division-rule-grid>div { padding:11px 13px; background:rgba(255,255,255,.025); border:1px solid var(--border); border-radius:8px; }
.tfg-division-rule-grid strong,.tfg-division-rule-grid span { display:block; font-size:13px; line-height:1.5; }
.tfg-division-rule-grid span { color:var(--text-muted,#aab3c4); margin-top:3px; }
.tfg-finish-points--rules { border:0; padding:5px 0; }
.tfg-team-selection { padding:14px 16px; border:1px solid var(--border); border-radius:10px; margin:0; }
.tfg-team-selection legend { color:var(--text); font-size:15px; font-weight:700; padding:0 7px; }
.tfg-team-selection>.tfg-muted { margin-top:0; font-size:13px; }
.tfg-form .tfg-team-choice { display:grid; grid-template-columns:20px minmax(0,1fr); gap:12px; padding:12px 0; border-top:1px solid var(--border); cursor:pointer; }
.tfg-shell .tfg-team-choice input[type=checkbox] { width:18px!important; height:18px!important; min-height:18px; margin-top:2px; accent-color:var(--jdm-cyan); }
.tfg-team-choice strong { color:var(--text); display:block; font-size:14px; }
.tfg-team-choice small { font-size:12px; font-weight:500; color:var(--jdm-cyan); }
.tfg-team-choice>span>span { display:block; margin-top:4px; font-size:12px; color:var(--text-muted,#aab3c4); }
.tfg-roster-note { font-size:13px!important; padding:12px 14px; background:rgba(94,234,212,.07); border:1px solid rgba(94,234,212,.2); border-radius:8px; }
.tfg-roster-car-note { font-size:12px; font-weight:400; line-height:1.45; }
.tfg-lineup-editor { margin-top:16px; padding:18px; border:1px solid var(--border); border-radius:10px; background:rgba(94,234,212,.035); }
.tfg-lineup-editor h4 { margin:0 0 8px; font-size:16px; }
.tfg-lineup-fields { display:grid; gap:14px; min-width:0; padding:0; margin:0; border:0; }
.tfg-lineup-fields legend { padding:0; margin-bottom:14px; font-size:13px; font-weight:600; }
.tfg-lineup-fields:disabled { opacity:.6; }
.tfg-lineup-editor>.tfg-button { margin-bottom:16px; }
.tfg-shell .tfg-nav a { display:inline-flex; align-items:center; gap:8px; }
.tfg-shell .tfg-nav a:is(.has-updates,.needs-action) { border-color:#f3bf54; color:#ffe3a2; background:#352915; box-shadow:0 0 0 1px rgba(243,191,84,.12),0 0 16px rgba(243,191,84,.18); }
.tfg-shell .tfg-nav a:is(.has-updates,.needs-action):hover { border-color:#ffe3a2; color:#fff0cc; background:#46351a; }
.tfg-shell .tfg-nav a:is(.has-updates,.needs-action)[aria-current=page] { border-bottom:3px solid #ffdb83; padding-bottom:8px; }
.tfg-nav-count,.tfg-nav-action { display:inline-flex; flex:none; align-items:center; justify-content:center; min-width:20px; min-height:20px; padding:3px 6px; border-radius:6px; background:#ffcf68; color:#251a05; font-size:11px; line-height:1.2; font-weight:700; white-space:nowrap; }
.tfg-car-locked { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:12px 14px; border:1px solid rgba(88,228,208,.35); border-radius:8px; font-size:13px; }
.tfg-car-locked strong { color:#58e4d0; }
.tfg-shell .tfg-registration-deadline { margin:18px 0; padding:18px 20px; border:1px solid rgba(245,190,83,.35); border-radius:10px; background:rgba(245,190,83,.045); }
.tfg-registration-deadline-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.tfg-registration-deadline-label { color:var(--text-muted); font-size:11px; letter-spacing:.05em; text-transform:uppercase; }
.tfg-shell .tfg-registration-deadline h4 { margin:5px 0 0; font-size:17px; }
.tfg-registration-deadline-status { padding:6px 9px; border:1px solid rgba(84,230,211,.22); border-radius:6px; color:var(--jdm-cyan); background:rgba(84,230,211,.06); font-size:12px; }
.tfg-shell .tfg-registration-deadline-time { margin:16px 0 8px; color:#f5cd81; font-size:clamp(20px,3.8vw,27px); line-height:1.35; font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.tfg-shell .tfg-registration-deadline-description { margin:0; font-size:13px; line-height:1.7; }
.tfg-registration-deadline-description>span { display:block; color:var(--text-muted); font-size:12px; }
.tfg-shell .tfg-registration-deadline-lineup { margin:14px 0 0; padding-top:12px; border-top:1px solid var(--border); color:var(--text-muted); font-size:12px; line-height:1.7; }
.tfg-registration-deadline-lineup a { color:var(--jdm-cyan); text-decoration:underline; text-underline-offset:3px; }
.tfg-registration-deadline--closed .tfg-registration-deadline-status { color:#f5cd81; border-color:rgba(245,190,83,.3); background:rgba(245,190,83,.06); }
@media(max-width:520px) { .tfg-shell .tfg-registration-deadline { padding:16px; } .tfg-registration-deadline-status { font-size:11px; } }
.tfg-signup-notice { padding:12px 14px; border:1px solid rgba(245,190,83,.35); border-radius:8px; color:#f5cd81; font-size:13px; line-height:1.6; }
.tfg-signup-next-step { display:block; margin-top:8px; }
.tfg-signup-notice a { font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.tfg-round-list { display:grid; gap:18px; }
.tfg-round-group { min-width:0; border:1px solid var(--border); border-radius:12px; overflow:hidden; background:rgba(8,11,16,.25); }
.tfg-round-group>summary { align-items:center; padding:18px 20px; gap:14px; }
.tfg-round-group strong { font-size:18px; }
.tfg-round-meta { display:block; margin-top:5px; color:var(--text-muted); font-size:12px; font-weight:400; }
.tfg-round-races { padding:0 18px 18px; }
.tfg-round-races .tfg-panel { margin-bottom:0; }
.tfg-map-viewers { max-height:340px; overflow:auto; }
.tfg-map-viewers [hidden] { display:none!important; }
@media(max-width:520px) { .tfg-round-group>summary { padding:16px; flex-wrap:wrap; } .tfg-round-races { padding:0 12px 12px; } }
.tfg-shell .tfg-delete-panel { border-color:rgba(255,82,119,.4); }
.tfg-delete-panel p { max-width:76ch; line-height:1.65; }
.tfg-form .tfg-delete-confirm { display:flex; align-items:flex-start; gap:12px; font-size:13px; line-height:1.6; }
.tfg-shell .tfg-delete-confirm input[type=checkbox] { width:18px!important; min-width:18px; height:18px!important; min-height:18px; margin-top:2px; accent-color:var(--jdm-cyan); }
.tfg-shell .tfg-staff-preview { color:#f5cd81; border:1px solid rgba(245,205,129,.3); background:rgba(245,205,129,.08); border-radius:7px; padding:7px 10px; font-size:12px; line-height:1.5; margin:8px 0 12px; }
.tfg-staff-preview time { white-space:normal; }
.tfg-shell :is(a,button,summary):focus-visible { outline:2px solid var(--jdm-cyan); outline-offset:4px; }
@media(max-width:1100px) { .tfg-shell .tfg-rules-summary { grid-template-columns:1fr; gap:18px; } .tfg-finish-points { padding:16px 0 0; border-left:0; border-top:1px solid var(--border); } .tfg-finish-points--rules { padding:5px 0; border-top:0; } }
@media(max-width:700px) { .tfg-shell .tfg-welcome { grid-template-columns:1fr; gap:12px; padding:22px; } .tfg-welcome-logo { width:150px; max-height:112px; } .tfg-welcome h1 { max-width:28ch; font-size:26px; } .tfg-welcome p { font-size:14px; } }
@media(max-width:520px) { .tfg-shell .tfg-rules-summary { padding:16px; } .tfg-format-facts { gap:11px; } .tfg-format-facts dt { font-size:12px; } .tfg-format-facts dd { font-size:18px; } .tfg-format-facts small { font-size:11px; } .tfg-finish-points li { min-width:35px; padding:5px 6px; } .tfg-rule-list>li { padding:18px 0; } }
@media(max-width:520px) {
  .tfg-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .tfg-nav a { display:flex; align-items:center; justify-content:center; min-height:42px; padding:10px 8px; }
  .tfg-nav a:last-child:nth-child(odd) { grid-column:1/-1; }
  .tfg-format-facts dt { min-height:2.8em; }
}
