@charset "UTF-8";
/* =============================================
   F1nal Lap - Race Result / FP Report Table Styles
   レース結果記事・FPレポート記事・ハブ・Standingsページの共通テーブルCSS
   フェーズ6で style.css から切り出し（2026-04-28）
   ============================================= */
.f1nl-race-result {
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --teal-dim: rgba(13, 148, 136, 0.12);
  --bg-header: #0d2626;
  --border-subtle: rgba(255,255,255,0.08);
  --text-sub: #a0a0a0;
  --text-muted: #666;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #cd7f32;
  --red: #ef4444;
  --purple: #a855f7;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
}

/* --- GP Info Header --- */
.f1nl-gp-header {
  background: var(--bg-header);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
}
.f1nl-gp-round {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--teal-light);
  line-height: 1;
}
.f1nl-gp-name {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.f1nl-gp-details {
  width: 100%;
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* --- Session Tabs --- */
.f1nl-session-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}
.f1nl-session-tab {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-header);
  color: var(--text-sub);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.f1nl-session-tab:first-child { border-radius: 6px 0 0 6px; }
.f1nl-session-tab:last-child { border-radius: 0 6px 6px 0; }
.f1nl-session-tab:not(:first-child) { border-left: none; }
.f1nl-session-tab:hover:not(.f1nl-tab-active) {
  background: rgba(13,148,136,0.15);
  color: #e0e0e0;
}
.f1nl-session-tab.f1nl-tab-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.f1nl-session-tab.f1nl-tab-active + .f1nl-session-tab { border-left: none; }
.f1nl-session-panel { display: none; }
.f1nl-session-panel.f1nl-panel-active { display: block; }

/* --- Section Heading --- */
.f1nl-section-h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--teal-light);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.5px;
}
.f1nl-section-h3:first-child { margin-top: 0; }

/* --- Table Wrapper (horizontal scroll on mobile) --- */
.f1nl-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

/* --- Result Table --- */
.f1nl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.f1nl-table thead { background: var(--bg-header); }
.f1nl-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sub);
  border-bottom: 2px solid var(--teal);
}
.f1nl-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.f1nl-table tbody tr:hover { background: var(--teal-dim); }
.f1nl-table th.col-center,
.f1nl-table td.col-center { text-align: center; }
.f1nl-table th.col-right,
.f1nl-table td.col-right { text-align: right; }

/* Position colors */
.f1nl-pos-1 { color: var(--gold); font-weight: 700; }
.f1nl-pos-2 { color: var(--silver); font-weight: 700; }
.f1nl-pos-3 { color: var(--bronze); font-weight: 700; }
.f1nl-dnf { color: var(--red); }
.f1nl-dsq { color: var(--red); font-weight: 700; }
.f1nl-fl { color: var(--purple); font-weight: 600; }

/* Team color bar */
.f1nl-tc {
  display: inline-block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.tc-mclaren { background: #ff8000; }
.tc-redbull { background: #3671c6; }
.tc-mercedes { background: #27f4d2; }
.tc-ferrari { background: #e8002d; }
.tc-aston { background: #229971; }
.tc-alpine { background: #0093cc; }
.tc-williams { background: #64c4ff; }
.tc-haas { background: #b6babd; }
.tc-audi { background: #e11d48; }
.tc-rb { background: #6692ff; }
.tc-cadillac { background: #c0c0c0; }

/* Points bar (for standings) */
.f1nl-pts-bar {
  display: inline-block;
  height: 6px;
  background: var(--teal);
  border-radius: 3px;
  vertical-align: middle;
  min-width: 0;
  transition: width 0.3s ease;
}
.f1nl-pts-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.f1nl-pts-cell .f1nl-pts-bar { order: 1; }
.f1nl-pts-cell .f1nl-pts-num {
  order: 2;
  min-width: 28px;
  text-align: right;
}

/* --- Notes --- */
.f1nl-notes {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--text-muted);
  border-radius: 0 4px 4px 0;
}

/* --- Standings table (no horizontal scroll) --- */
.f1nl-standings-wrap {
  overflow-x: visible;
  margin-bottom: 8px;
}

/* --- Team column toggle (mobile) --- */
.f1nl-team-toggle {
  display: none;
  font-size: 12px;
  color: var(--teal-light);
  background: var(--teal-dim);
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  margin-bottom: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.f1nl-team-toggle:hover,
.f1nl-team-toggle:active {
  background: rgba(13,148,136,0.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .f1nl-gp-header { padding: 12px 14px; }
  .f1nl-gp-round { font-size: 22px; }
  .f1nl-gp-name { font-size: 18px; }
  .f1nl-gp-details { font-size: 12px; }
  .f1nl-session-tab {
    padding: 8px 14px;
    font-size: 13px;
  }
  .f1nl-table { font-size: 12px; }
  .f1nl-table th, .f1nl-table td { padding: 6px 7px; }
  .f1nl-standings-wrap .f1nl-table { font-size: 11px; }
  .f1nl-standings-wrap .f1nl-table th,
  .f1nl-standings-wrap .f1nl-table td { padding: 6px 5px; }
  .f1nl-standings-wrap .f1nl-table th:nth-child(2),
  .f1nl-standings-wrap .f1nl-table td:nth-child(2) {
    width: auto;
    max-width: 140px;
    white-space: nowrap;
  }
  .f1nl-standings-wrap .f1nl-table th:last-child,
  .f1nl-standings-wrap .f1nl-table td:last-child {
    width: 50%;
  }
  .f1nl-section-h3 { font-size: 15px; }
  .f1nl-team-toggle { display: inline-block; }
  .f1nl-standings-wrap .f1nl-col-team { display: none; }
  .f1nl-standings-wrap.f1nl-show-team .f1nl-col-team { display: table-cell; }
  .f1nl-standings-wrap.f1nl-show-team {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .f1nl-standings-wrap.f1nl-show-team .f1nl-table { min-width: 480px; }
}
@media (max-width: 480px) {
  .f1nl-session-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* =============================================
   Standings Page: Team-colored point bars
   ハブページ／ランキングページのチームカラーポイントバー
   ブロックA の .tc-* とは別系統の色値（意図的に維持）
   ============================================= */

/* -- Reset: prevent tc- class from coloring entire row -- */
.f1h-pts tr[class*="tc-"]{background:transparent}
.f1h-pts tr[class*="tc-"]:hover{background:var(--color_main_thin)}

/* -- Driver/Constructor standings: tr team class -> bar color -- */
tr.tc-mercedes .f1h-pts-bar{background:#00a896}
tr.tc-ferrari .f1h-pts-bar{background:#e8002d}
tr.tc-mclaren .f1h-pts-bar{background:#ff8000}
tr.tc-redbull .f1h-pts-bar{background:#3671c6}
tr.tc-alpine .f1h-pts-bar{background:#0093cc}
tr.tc-williams .f1h-pts-bar{background:#3a9bd9}
tr.tc-haas .f1h-pts-bar{background:#b6babd}
tr.tc-audi .f1h-pts-bar{background:#2eae2e}
tr.tc-rb .f1h-pts-bar{background:#5577dd}
tr.tc-cadillac .f1h-pts-bar{background:#888}
tr.tc-aston .f1h-pts-bar{background:#229971}
