@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =============================================
   F1nal Lap カスタムCSS変数
   ダークモード時は dark-mode.css で上書きされる
   ============================================= */
:root {
  --f1nl-text-muted: #aaa;
  --f1nl-text-sub: #888;
  --f1nl-text-sub2: #666;
  --f1nl-text-body: #333;
  --f1nl-text-body2: #444;
  --f1nl-text-body3: #555;
  --f1nl-bg-surface: #f5fafa;
  --f1nl-bg-surface2: #f8fafa;
  --f1nl-bg-surface3: #f9f9f9;
  --f1nl-bg-surface4: #f5f5f5;
  --f1nl-bg-surface5: #f7f7f7;
  --f1nl-bg-surface6: #f8fffe;
  --f1nl-bg-card: #fdfdfd;
  --f1nl-border-light: #ddd;
  --f1nl-border-light2: #ccc;
  --f1nl-border-light3: #e0eeee;
  --f1nl-border-light4: #f0f1f3;
  --f1nl-border-mid: #aaa;
  --f1nl-rc-author: #1bb2b2;
  --f1nl-rc-sep: #ccc;
  --f1nl-rc-article: #999;
  --f1nl-slider-dot: #ccc;
  --f1nl-slider-dot-active: #333;
  --f1nl-note-label-bg: #666;
}

/* =============================================
   サイドバー検索バー モダン化
   ============================================= */
/* 検索フォーム全体 */
.wp-block-search {
    position: relative !important;
}
.wp-block-search__inside-wrapper {
    display: flex !important;
    position: relative !important;
    border: 1px solid var(--color_border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: border-color 0.3s ease !important;
}
.wp-block-search__inside-wrapper:focus-within {
    border-color: var(--color_main) !important;
    box-shadow: 0 0 0 2px var(--color_main_thin) !important;
}
/* 検索入力欄 */
.wp-block-search__input {
    background: var(--f1nl-bg-surface) !important;
    border: none !important;
    color: var(--color_text) !important;
    padding: 12px 14px 12px 40px !important;
    font-size: 14px !important;
    flex: 1 !important;
    outline: none !important;
}
.wp-block-search__input::placeholder {
    color: var(--f1nl-text-muted) !important;
}
/* 虫眼鏡アイコン（CSS疑似要素） */
.wp-block-search__inside-wrapper::before {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid var(--f1nl-text-muted) !important;
    border-radius: 50% !important;
    z-index: 1 !important;
    pointer-events: none !important;
}
.wp-block-search__inside-wrapper::after {
    content: "" !important;
    position: absolute !important;
    left: 26px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(-45deg) !important;
    width: 2px !important;
    height: 7px !important;
    background: var(--f1nl-text-muted) !important;
    margin-top: 6px !important;
    z-index: 1 !important;
    pointer-events: none !important;
}
/* 検索ボタンを非表示（虫眼鏡で代替） */
.wp-block-search__button {
    background: var(--color_main) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 18px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}
.wp-block-search__button:hover {
    background: var(--color_main_dark) !important;
}
/* ラベル非表示 */
.wp-block-search__label {
    display: none !important;
}

/* =============================================
   F1nal Lap - PCグローバルナビ スタイル
   ============================================= */
@media (min-width: 960px) {
  .l-header__gnav {
    display: flex !important;
  }
  .l-header__gnav .c-gnav > li > a {
    font-family: 'Oswald', 'Noto Sans JP', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--color_header_text, #e0e0e0) !important;
    padding: 8px 20px !important;
    transition: color 0.2s, border-bottom 0.2s !important;
    border-bottom: 2px solid transparent !important;
  }
  .l-header__gnav .c-gnav > li > a:hover {
    color: var(--color_main) !important;
    border-bottom: 2px solid var(--color_main) !important;
  }
  .l-header__gnav .c-gnav .sub-menu {
    border-top: 2px solid var(--color_main) !important;
  }
  .l-header__gnav .c-gnav .sub-menu a {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
  }
}

/* ドロップダウンメニュー（通常＋追従ヘッダー両対応） */
.c-gnav .sub-menu {
    background: var(--color_header_bg, #1a2a2a) !important;
    border-top: 2px solid var(--color_main) !important;
    min-width: 100% !important;
    width: max-content !important;
    padding: 8px 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.c-gnav .sub-menu a {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: var(--color_header_text, #e0e0e0) !important;
    padding: 10px 20px !important;
    transition: background 0.2s, color 0.2s !important;
}
.c-gnav .sub-menu a:hover {
    background: var(--color_main_thin) !important;
    color: var(--color_main) !important;
}

/* =============================================
   F1nal Lap - スマホのみリスト型風に変換
   PC: カード型2列のまま
   SP: リスト型（左サムネ＋右タイトル）
   ============================================= */
@media (max-width: 599px) {

    /* カード型のグリッドを1列に */
    .p-postList.-type-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

	/* 各記事アイテムを横並び（リスト型風） */
    .p-postList.-type-card .p-postList__item {
        width: 100% !important;
        border-bottom: 1px solid var(--f1nl-border-light) !important;
        padding: 10px 0 !important;
        margin-bottom: 0 !important;
    }

    .p-postList.-type-card .p-postList__item .p-postList__link {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        align-items: center !important;
    }

    /* サムネイルを左側・固定幅に */
    .p-postList.-type-card .p-postList__item .p-postList__thumb {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .p-postList.-type-card .p-postList__item .p-postList__thumb img {
        width: 120px !important;
        height: 68px !important;
        object-fit: cover !important;
        border-radius: 4px !important;
        display: block !important;
    }

    /* 本文エリアを右側に */
    .p-postList.-type-card .p-postList__item .p-postList__body {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* タイトルサイズ調整 */
    .p-postList.-type-card .p-postList__item .p-postList__title {
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        margin: 0 0 4px !important;
        padding: 0 !important;
    }

    /* 日付・カテゴリのサイズ */
    .p-postList.-type-card .p-postList__item .p-postList__meta {
        font-size: 11px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* カテゴリバッジをインライン化 */
    .p-postList.-type-card .p-postList__item .cat-label {
        position: static !important;
        display: inline !important;
        font-size: 10px !important;
        padding: 1px 6px !important;
        border-radius: 2px !important;
        margin: 0 !important;
    }

    /* SWELLのカード型デフォルトの余白をリセット */
    .p-postList.-type-card .p-postList__item .p-postList__content {
        padding: 0 !important;
        margin: 0 !important;
    }
	
	/* 記事リストと「もっと見る」ボタンの余白 */
	.is-style-more_btn {
    	margin-top: 1em;
	}
	
}

/* =============================================
   F1nal Lap - スケジュール レスポンシブ切替
   PC: テーブル表示 / スマホ: カード表示
   ============================================= */

/* --- バッジ共通（テーブル・カード両方で使用） --- */
.f1nl-badge-sprint {
    display: inline-block;
    background: var(--color_main);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}
.f1nl-badge-new {
    display: inline-block;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}
.f1nl-badge-final {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 4px;
}

/* --- PCテーブル --- */
.f1nl-schedule-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.f1nl-schedule-table thead th {
    background: var(--color_main);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}
.f1nl-schedule-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--f1nl-border-light);
}
.f1nl-schedule-table tbody tr:last-child td {
    border-bottom: none;
}
.f1nl-schedule-table .f1nl-break-row td {
    text-align: center;
    font-weight: 700;
    background: var(--f1nl-bg-surface4);
    color: var(--f1nl-text-sub2);
    padding: 8px;
}

/* --- スマホカード --- */
.f1nl-schedule-cards {
    display: none; /* PC時は非表示 */
}
.f1nl-card {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--f1nl-border-light);
}
.f1nl-card:last-child {
    border-bottom: none;
}
.f1nl-card-round {
    font-size: 18px;
    font-weight: 700;
    color: var(--color_main);
    text-align: center;
}
.f1nl-card--test .f1nl-card-round {
    font-size: 10px;
    color: var(--f1nl-rc-article);
    line-height: 1.2;
}
.f1nl-card-info {
    min-width: 0;
}
.f1nl-card-gp {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
}
.f1nl-card-circuit {
    font-size: 12px;
    color: var(--f1nl-text-sub);
    margin-top: 2px;
}
.f1nl-card-time {
    text-align: right;
    white-space: nowrap;
}
.f1nl-card-date {
    font-size: 13px;
    color: var(--f1nl-text-sub2);
}
.f1nl-card-jst {
    font-size: 13px;
    color: var(--color_main);
    font-weight: 700;
    margin-top: 2px;
}
.f1nl-card-note {
    font-size: 10px;
    color: #e11d48;
    margin-top: 1px;
}
/* サマーブレイクカード */
.f1nl-card--break {
    display: block;
    text-align: center;
    background: var(--f1nl-bg-surface4);
    padding: 10px;
}
.f1nl-card-break {
    font-weight: 700;
    font-size: 13px;
    color: var(--f1nl-text-sub2);
}

/* --- レスポンシブ切替：768px以下でカード表示 --- */
@media (max-width: 768px) {
    .f1nl-schedule-table {
        display: none !important;
    }
    .f1nl-schedule-cards {
        display: block !important;
    }
}

/* =============================================
   Next Race Banner
   ============================================= */
.f1nl-next-race {
    background: linear-gradient(135deg, #0f1923 0%, #1a2a2a 50%, #0f1923 100%);
    border: 1px solid #2a3a3a;
    border-radius: 12px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
}
.f1nl-next-race::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #0d9488);
}
.f1nl-race-round {
    font-size: 11px;
    color: #0d9488;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.f1nl-sprint-badge {
    display: inline-block;
    background: #0d9488;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 1px;
}
.f1nl-race-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.f1nl-race-flag {
    font-size: 22px;
    line-height: 1;
}
.f1nl-race-title {
    font-size: 16px;
    font-weight: 800;
    color: #e8e8e8;
    line-height: 1.2;
}
.f1nl-race-circuit {
    font-size: 12px;
    color: #777;
    margin-bottom: 16px;
    padding-left: 30px;
}
/* Session info box */
.f1nl-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}
.f1nl-session-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.f1nl-session-name {
    font-size: 15px;
    font-weight: 700;
    color: #14b8a6;
}
.f1nl-session-date {
    font-size: 12px;
    color: #aaa;
    text-align: right;
}
/* Countdown */
.f1nl-countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}
.f1nl-countdown-unit {
    text-align: center;
    min-width: 48px;
}
.f1nl-countdown-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #e8e8e8;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 8px 4px;
}
.f1nl-countdown-label {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.f1nl-countdown-sep {
    font-size: 20px;
    color: #444;
    font-weight: bold;
    align-self: flex-start;
    padding-top: 8px;
}
/* Live indicator */
.f1nl-live-indicator {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    padding: 12px 0;
    animation: f1nl-pulse 1.5s ease-in-out infinite;
}
@keyframes f1nl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
/* Schedule link */
.f1nl-schedule-link {
    display: block;
    text-align: center;
    color: #0d9488;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding-top: 10px;
    border-top: 1px solid #2a3a3a;
    transition: color 0.2s;
}
.f1nl-schedule-link:hover {
    color: #14b8a6;
}
.f1nl-schedule-link span {
    margin-left: 4px;
    transition: transform 0.2s;
    display: inline-block;
}
.f1nl-schedule-link:hover span {
    transform: translateX(3px);
}

/* Schedule accordion */
.f1nl-acc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin: 0 16px;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid #2a3a3a;
    transition: opacity 0.15s;
}
.f1nl-acc-toggle:hover {
    opacity: 0.8;
}
.f1nl-acc-toggle-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.f1nl-acc-toggle-icon {
    font-size: 11px;
    color: #00b4a6;
    transition: transform 0.3s ease;
}
.f1nl-acc-toggle.is-open .f1nl-acc-toggle-icon {
    transform: rotate(180deg);
}
.f1nl-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.f1nl-acc-body.is-open {
    max-height: 400px;
}
.f1nl-acc-list {
    padding: 0 16px 10px;
}
.f1nl-acc-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.f1nl-acc-row:last-child {
    border-bottom: none;
}
.f1nl-acc-name {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    width: 76px;
    flex-shrink: 0;
    text-align: left;
}
.f1nl-acc-row.is-next .f1nl-acc-name {
    color: #00b4a6;
    font-weight: 700;
}
.f1nl-acc-row.is-done .f1nl-acc-name {
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
}
.f1nl-acc-datetime {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    margin-left: auto;
    text-align: right;
}
.f1nl-acc-row.is-next .f1nl-acc-datetime {
    color: #00b4a6;
    font-weight: 700;
}
.f1nl-acc-row.is-done .f1nl-acc-datetime {
    color: rgba(255,255,255,0.25);
}

/* Offseason */
.f1nl-offseason {
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 10px 0;
}


/* =============================================
   F1nal Lap - 記事内コメント＆筆者補足スタイル
   ============================================= */

/* --- 海外コメント（tealボーダー＋薄い背景） --- */
.is-style-f1nl-comment {
    border-left: 3px solid var(--color_main) !important;
    background: var(--f1nl-bg-surface6) !important;
    padding: 12px 16px !important;
    margin-bottom: 8px !important;
    border-radius: 0 4px 4px 0 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
}

/* --- 筆者補足（管理人メモラベル付き） --- */
.is-style-f1nl-note {
    background: var(--f1nl-bg-surface3) !important;
    border: 1px solid var(--f1nl-border-light) !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    margin: 12px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    color: var(--f1nl-text-body3) !important;
    position: relative !important;
    padding-top: 36px !important;
}
.is-style-f1nl-note::before {
    content: "管理人メモ";
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 16px;
    background: var(--f1nl-note-label-bg);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* --- 管理人コメント（記事末尾用） --- */
.is-style-f1nl-editor-comment {
    background: var(--f1nl-bg-surface) !important;
    border: 1px solid var(--f1nl-border-light3) !important;
    border-top: 3px solid var(--color_main) !important;
    border-radius: 0 0 6px 6px !important;
    padding: 16px 18px !important;
    padding-top: 40px !important;
    margin-top: 28px !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: var(--f1nl-text-body2) !important;
    position: relative !important;
}
.is-style-f1nl-editor-comment::before {
    content: "管理人のひとこと";
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 18px;
    background: var(--color_main);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* =============================================
   F1nal Lap - wpDiscuz カスタマイズ
   ============================================= */
/* 不要UI要素を一括非表示 */
.wpd-sbs-toggle,
.wpdiscuz-subscribe-bar,
.wpd-form-head,
.wc_social_plugin_wrapper,
.wpd-editor-buttons,
.wpd-toggle-wrap,
.wpd-comment-footer .wpd-comment-share,
.wpd-comment-footer .wpd-stick-btn,
.wpd-comment-footer .wpd-close-btn,
.wpd-auth,
.wc_email-wrapper,
.wpdiscuz-item.wc_email-wrapper {
    display: none !important;
}

/* --- Like-only mode --- */
.wpd-vote-down,
.wpd-vote-result-sep,
.wpd-vote-result-dislike {
    display: none !important;
}
.wpd-vote {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
}
.wpd-vote-up {
    font-size: 0 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
}
.wpd-vote-up:hover {
    color: var(--color_main) !important;
}
.wpd-vote-up svg,
.wpd-vote-up i {
    display: none !important;
}
.wpd-vote-up::before {
    content: "\f164";
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Regular", FontAwesome !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    vertical-align: -3px !important;
    margin-left: 8px !important;
    color: var(--f1nl-text-sub) !important;
    -webkit-font-smoothing: antialiased;
}
.wpd-vote-result-like {
    font-size: 13px !important;
    color: var(--f1nl-text-sub) !important;
    margin: 0 4px !important;
    order: 2 !important;
}
.wpd-vote-result-like::after {
    content: "\00A0\3044\3044\306D";
    font-size: 13px;
    color: var(--f1nl-text-sub);
}
.wpd-vote-up.wpd-up,
.wpd-vote-result-like.wpd-up {
    color: var(--color_main) !important;
}

/* 返信フォーム（セカンダリ）を非表示 */
.wpd-secondary-form-wrapper {
    display: none !important;
}
/* テキストエリア横のアバターを非表示 */
#wpdcom .wpd-form-wrap .wpd-avatar {
    display: none !important;
}
/* Name欄のアイコン非表示 */
#wpdcom .wc_name-wrapper .wpd-field-icon {
    display: none !important;
}
/* テキストエリアを全幅に */
#wpdcom .wpd-field-comment {
    width: 100%;
    margin-left: 0;
}
/* --- テキストエリア高さ（5〜6行分） --- */
#wpdcom .ql-editor,
#wpdcom textarea {
    min-height: 120px !important;
    max-height: 200px !important;
}
/* コメント入力欄をシンプルに */
#wpdcom .wpd-form-wrap {
    padding: 10px 0 !important;
}
/* 画像添付アイコン表示 */
#wpdcom .wpdiscuz-textarea-foot {
    display: inline-block !important;
}
/* =============================================
   フッター：名前欄 + 送信ボタン 横並び
   ============================================= */
#wpdcom .wpd-form-foot {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}
#wpdcom .f1nl-submit-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-top: 4px !important;
}
#wpdcom .f1nl-submit-row .wc_name-wrapper {
    flex: 1 !important;
    max-width: 300px !important;
    margin: 0 !important;
}
#wpdcom .f1nl-submit-row .wc_name-wrapper input {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid var(--f1nl-border-light) !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}
#wpdcom .f1nl-submit-row .wc-field-submit {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* email欄は常に非表示 */
#wpdcom .wpd-form-foot .wpd-form-col-left {
    display: none !important;
}
/* コメント間の境界線 */
#wpdcom [id^="wpd-comm-"].depth-1 {
    border-bottom: 1px solid var(--f1nl-border-mid) !important;
    padding-bottom: 0 !important;
    margin-bottom: 5px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
}
#wpdcom [id^="wpd-comm-"].depth-1 .wpd-comment-wrap {
    padding-bottom: 0px !important;
}

/* =============================================
   フラット＋アンカー方式
   ============================================= */

/* --- 通し番号 --- */
.f1nl-comment-num {
    font-size: 14px;
    font-weight: bold;
    color: var(--color_main);
    margin-right: 6px;
}

/* --- 自前返信ボタン --- */
.f1nl-reply-btn {
    font-size: 13px;
    color: var(--color_main);
    font-weight: bold;
    margin-left: 12px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.f1nl-reply-btn:hover {
    color: var(--color_main_dark);
    text-decoration: underline;
}

/* --- アンカーリンク --- */
.f1nl-anchor-link {
    color: var(--color_main) !important;
    font-weight: bold;
    text-decoration: none !important;
    cursor: pointer;
}
.f1nl-anchor-link:hover {
    color: var(--color_main_dark) !important;
    text-decoration: underline !important;
}

/* --- ポップアップ --- */
.f1nl-anchor-popup {
    position: absolute;
    z-index: 10000;
    background: var(--f1nl-bg-card);
    border: 1px solid var(--color_border);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-height: 250px;
    max-width: 360px;
    overflow-y: auto;
    pointer-events: auto;
}
.f1nl-anchor-popup .wpd-comment-wrap {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    padding: 0 !important;
    margin: 0 !important;
}
.f1nl-anchor-popup .wpd-comment-left {
    flex-shrink: 0 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}
.f1nl-anchor-popup .wpd-comment-left img {
    width: 28px !important;
    height: 28px !important;
}
.f1nl-anchor-popup .wpd-comment-right {
    flex: 1 !important;
    min-width: 0;
}
/* ヘッダー：名前＋番号だけ表示、その他非表示 */
.f1nl-anchor-popup .wpd-comment-header {
    margin-bottom: 2px !important;
}
.f1nl-anchor-popup .wpd-comment-author {
    font-size: 12px !important;
    line-height: 1.3 !important;
}
.f1nl-anchor-popup .wpd-comment-author .f1nl-comment-num {
    font-size: 12px !important;
}
/* 時刻・リンク・投票など不要要素を非表示 */
.f1nl-anchor-popup .wpd-comment-date,
.f1nl-anchor-popup .wpd-comment-link,
.f1nl-anchor-popup .wpd-comment-status,
.f1nl-anchor-popup .wpdiscuz-comment-date,
.f1nl-anchor-popup .wpd-comment-footer,
.f1nl-anchor-popup .f1nl-reply-btn {
    display: none !important;
}
/* 本文 */
.f1nl-anchor-popup .wpd-comment-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-top: 2px !important;
}
.f1nl-anchor-popup .wpd-comment-text p {
    margin: 0 !important;
}
/* スマホ用：移動リンク */
.f1nl-popup-jump {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--f1nl-border-light);
    font-size: 12px;
    color: var(--color_main) !important;
    text-decoration: none !important;
    text-align: right;
}
.f1nl-popup-jump:active {
    color: var(--color_main_dark) !important;
}

/* --- コメントハイライト（スクロール時） --- */
@keyframes f1nl-flash {
    0% { background-color: var(--color_main_thin); }
    100% { background-color: transparent; }
}
.f1nl-highlight {
    animation: f1nl-flash 2s ease-out;
    border-radius: 4px;
}

/* =============================================
   スマホ対応（768px以下）
   ============================================= */
@media (max-width: 768px) {
    #wpdcom .f1nl-submit-row .wc_name-wrapper {
        max-width: none !important;
        flex: 1 !important;
    }
	/* コメント表示レイアウト */
    .wpd-comment-wrap {
        display: flex !important;
        flex-direction: row !important;
        gap: 0px;
        padding: 8px 0 !important;
        margin: 0 !important;
    }
    .wpd-comment-wrap .wpd-comment-left {
        flex-shrink: 0 !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 10px 0 0 !important;
    }
    .wpd-comment-wrap .wpd-comment-right {
        flex: 1 !important;
        width: auto !important;
    }
    .wpd-comment-wrap .wpd-avatar {
        padding: 0 !important;
        margin: 0 !important;
    }
    /* ポップアップをスマホで全幅に近く */
    .f1nl-anchor-popup {
        max-width: calc(100vw - 20px) !important;
        left: 10px !important;
        right: 10px !important;
    }
}

/* =============================================
   Recent Comments Widget
   ============================================= */
.f1nl-rc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.f1nl-rc-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--f1nl-border-light4);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.f1nl-rc-list li:last-child .f1nl-rc-item {
  border-bottom: none;
}

.f1nl-rc-item:hover {
  background: var(--f1nl-bg-surface2);
}

.f1nl-rc-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color_gray);
}

.f1nl-rc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f1nl-rc-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.f1nl-rc-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--f1nl-text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.f1nl-rc-meta {
  font-size: 11.5px;
  color: var(--f1nl-text-sub);
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.f1nl-rc-author {
  color: var(--f1nl-rc-author);
  font-weight: 600;
  white-space: nowrap;
}

.f1nl-rc-sep {
  margin: 0 4px;
  color: var(--f1nl-rc-sep);
}

.f1nl-rc-article {
  color: var(--f1nl-rc-article);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   F1nal Lap - トップページ カテゴリタブフィルター
   BC-3 ソフトチップ（角丸小さめ）
   ============================================= */
.category-filter .c-tabList {
    background: transparent !important;
    border: none !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
}
.category-filter .c-tabList__button {
    background: transparent !important;
    color: var(--f1nl-text-sub2) !important;
    border: 1px solid var(--f1nl-border-light2) !important;
    border-radius: 6px !important;
    padding: 9px 22px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}
.category-filter .c-tabList__button:hover {
    color: var(--color_main) !important;
    border-color: var(--color_main) !important;
}
.category-filter .c-tabList__button[aria-selected="true"] {
    color: var(--color_main) !important;
    background: var(--color_main_thin) !important;
    border: 1px solid var(--color_main) !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}
.category-filter .c-tabBody {
    border: none !important;
    padding: 24px 0 0 !important;
    background: transparent !important;
}
@media (max-width: 599px) {
    .category-filter .c-tabList {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 0 !important;
        list-style: none !important;
    }
	.category-filter .c-tabList__item {
		flex: 0 1 auto !important;
		min-width: 0 !important;
	}
    .category-filter .c-tabList__button {
        width: 100% !important;
        text-align: center !important;
        font-size: 13px !important;
        padding: 7px 8px !important;
    }
}

/* スマホメニュー サブメニュー矢印の視認性改善 */
.c-submenuToggleBtn {
    color: var(--f1nl-border-light2) !important;
}


/* =============================================
   F1nal Lap - Race Result / FP Report Table Styles
   Common styles for race-result and FP articles
   ============================================= */
.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;
  }
}

/* =============================================
   Article Slider v3
   ============================================= */
.f1nl-slider {
    max-width: 1200px;
    margin: 24px auto 4;
    padding: 0 20px;
}
.f1nl-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.f1nl-slider-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding-left: 12px;
    border-left: 3px solid var(--color_main, #00b4d8);
}
.f1nl-slider-viewport {
    overflow: hidden;
    border-radius: 8px;
    cursor: grab;
}
.f1nl-slider-viewport:active {
    cursor: grabbing;
}
.f1nl-slider-track {
    display: flex;
    gap: 14px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    -webkit-user-select: none;
}
.f1nl-slider-card {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: var(--color_text);
    display: block;
}
.f1nl-slider-card:hover {
    transform: translateY(-2px);
}
.f1nl-slider-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color_gray);
    overflow: hidden;
    border-radius: 8px;
}
.f1nl-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.f1nl-slider-cat {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color_main, #00b4d8);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 1;
}
.f1nl-slider-body {
    padding: 10px 4px;
}
.f1nl-slider-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--color_text);
}
.f1nl-slider-meta {
    font-size: 11px;
    color: var(--f1nl-text-sub);
}

/* Dot indicators */
.f1nl-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 4px 0;
}
.f1nl-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--f1nl-slider-dot);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}
.f1nl-slider-dot.is-active {
    background: var(--f1nl-slider-dot-active);
}

/* Responsive */
@media (max-width: 600px) {
    .f1nl-slider-card {
        min-width: 220px;
        max-width: 220px;
    }
    .f1nl-slider {
        padding: 0 16px;
    }
    .f1nl-slider-dot {
        width: 8px;
        height: 8px;
    }
}


/* ===================================
   Weekly Digest Widget
   =================================== */

.f1nl-digest {
  background: var(--f1nl-bg-surface2);
  border: 1px solid var(--f1nl-border-light3);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.f1nl-digest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color_main, #009b9b);
}

.f1nl-digest-title {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--color_main, #009b9b);
  letter-spacing: 0.02em;
}

.f1nl-digest-date {
  font-size: 0.82em;
  color: var(--f1nl-text-sub);
}

.f1nl-digest-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color_border);
  line-height: 1.65;
  font-size: 0.92em;
  color: var(--color_text);
}

.f1nl-digest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.f1nl-digest-icon {
  flex-shrink: 0;
  font-size: 1.1em;
  line-height: 1.65;
}

.f1nl-digest-text a {
  color: var(--color_main, #009b9b);
  text-decoration: none;
  font-weight: 600;
}

.f1nl-digest-text a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .f1nl-digest {
    padding: 16px;
    margin-bottom: 20px;
  }

  .f1nl-digest-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .f1nl-digest-item {
    font-size: 0.88em;
  }
}

/* ===================================
   PICK UP Card (Standalone)
   =================================== */
.f1nl-pickup {
  padding: 0px;
}
.f1nl-pickup-label {
  font-size: 0.75em;
  font-weight: 700;
  color: var(--color_main, #009b9b);
  background: var(--color_main_thin);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.f1nl-pickup-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--f1nl-border-light3);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.f1nl-pickup-card:hover {
  border-color: var(--color_main, #009b9b);
  box-shadow: 0 2px 8px rgba(0, 155, 155, 0.1);
}
.f1nl-pickup-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color_gray);
}
.f1nl-pickup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.f1nl-pickup-info {
  padding: 10px 12px 12px;
}
.f1nl-pickup-cat {
  display: inline-block;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--color_main, #009b9b);
  margin-bottom: 4px;
}
.f1nl-pickup-title {
  display: block;
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color_text);
}
@media (max-width: 768px) {
  .f1nl-pickup {
    padding: 12px;
  }
  .f1nl-pickup-label {
    margin-bottom: 8px;
  }
  .f1nl-pickup-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 0;
  }
  .f1nl-pickup-card:hover {
    border-color: transparent;
    box-shadow: none;
  }
  .f1nl-pickup-thumb {
    width: 110px;
    flex-shrink: 0;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
  }
  .f1nl-pickup-info {
    padding: 0;
    min-width: 0;
  }
  .f1nl-pickup-title {
    font-size: 0.85em;
  }
}

/* PC（960px以上）で記事スライダーの高さを制限 */
@media (min-width: 960px) {
  .p-mainVisual__slider .p-mainVisual__slide {
    max-height: 400px; /* お好みで調整 */
  }
  .p-mainVisual__slider .p-mainVisual__slide img {
    max-height: 400px;
    object-fit: cover;
  }
}

/* =============================================
   F1nal Lap - More Button (Dot Separator)
   ============================================= */
.is-style-more_btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 2px 0 !important;
    position: relative !important;
}
.is-style-more_btn::before,
.is-style-more_btn::after {
    pointer-events: none !important;
}
.is-style-more_btn a {
    position: static !important;
}
.is-style-more_btn a::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.is-style-more_btn::before,
.is-style-more_btn::after {
    content: "" !important;
    display: block !important;
    width: 40px !important;
    border-top: 2px dotted rgba(13, 148, 136, 0.3) !important;
    transition: width 0.3s ease, border-color 0.3s ease, border-style 0.3s ease !important;
}
.is-style-more_btn a {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--color_main) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 8px 4px !important;
    min-width: auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}
.is-style-more_btn a::after {
    font-size: 11px !important;
    font-weight: 400 !important;
    position: static !important;
    transform: none !important;
    transition: transform 0.2s ease !important;
}
@media (hover: hover) {
    .is-style-more_btn:hover::before,
    .is-style-more_btn:hover::after {
        width: 50px !important;
        border-style: solid !important;
        border-color: rgba(13, 148, 136, 0.5) !important;
    }
    .is-style-more_btn a:hover {
        background: none !important;
        color: var(--color_main_dark) !important;
    }
    .is-style-more_btn a:hover::after {
        transform: translateX(3px) !important;
    }
}
/* SP: tap feedback */
.is-style-more_btn:active::before,
.is-style-more_btn:active::after {
    width: 50px !important;
    border-style: solid !important;
    border-color: rgba(13, 148, 136, 0.5) !important;
}
.is-style-more_btn a:active {
    color: var(--color_main_dark) !important;
}
.is-style-more_btn a:active {
    background: none !important;
    box-shadow: none !important;
    color: var(--color_main_dark) !important;
}
/* SP: kill SWELL default tap highlight */
@media (hover: none) {
    .is-style-more_btn a:hover,
    .is-style-more_btn a:active,
    .is-style-more_btn a:focus {
        background: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* =============================================
   Standings Page: Team-colored point bars
   Add to SWELL child theme style.css
   ============================================= */

/* -- 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}
