/**
 * É Golo — Competition landing page (taxonomy-aps_competicao.php).
 *
 * Matches the "É Golo Competição" prototype: dark banner, sticky dark tab bar,
 * a 1fr/340px content grid (standings / fixtures / scorers / news) and a rail
 * (jornada em números, melhor marcador, AdSense MPU). Square corners
 * everywhere except chips (pill) and avatars (circle).
 *
 * Tokens: green #00A24A · live-green #00E06B · ink #0D0D0C · card-dark #1B1B19
 * yellow #FFD400 · page-bg #F4F3EF · red #C0362C · borders #DBD9D2
 * meta #6B6963 · meta-dark #8A887F.
 */

.sp-comp-page {
    background: #F4F3EF;
    color: #0D0D0C;
    font-family: 'Archivo', sans-serif;
}

.sp-comp-dot {
    color: #00A24A;
}

.sp-comp-dot--ink {
    color: #0D0D0C;
}

/* ---------------------------------------------------------------- Banner - */
.sp-comp-banner {
    background: #0D0D0C;
    color: #fff;
    padding: 30px 32px;
}

.sp-comp-banner__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.sp-comp-banner__logo {
    width: 78px;
    height: 78px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1B1B19;
    overflow: hidden;
}

.sp-comp-banner__logo img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.sp-comp-banner__logo-fallback {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 34px;
    color: #8A887F;
}

.sp-comp-banner__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sp-comp-banner__eyebrow {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .4px;
    color: #8A887F;
}

.sp-comp-banner__title {
    margin: 0;
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 40px;
    line-height: .9;
    letter-spacing: -1.5px;
    color: #fff;
}

.sp-comp-banner__sub {
    font-size: 14px;
    font-weight: 600;
    color: #B5B3AC;
}

.sp-comp-banner__follow {
    margin-left: auto;
    align-self: center;
    flex: none;
    background: #00A24A;
    color: #fff;
    font-family: 'Archivo', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 12px 22px;
    border: 0;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.sp-comp-banner__follow:hover,
.sp-comp-banner__follow:focus-visible {
    background: #00E06B;
    color: #0D0D0C;
}

/* ------------------------------------------------------------------ Tabs - */
.sp-comp-tabs {
    background: #0D0D0C;
    border-top: 1px solid #262624;
    position: sticky;
    top: 70px;
    z-index: 9;
}

.sp-comp-tabs__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
}

.sp-comp-tab {
    padding: 16px 26px;
    font-weight: 800;
    font-size: 14px;
    color: #8A887F;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}

.sp-comp-tab:hover {
    color: #fff;
}

.sp-comp-tab.is-active {
    color: #fff;
    border-bottom-color: #00A24A;
}

/* ------------------------------------------------------------- Body grid - */
.sp-comp-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 32px 48px;
}

.sp-comp-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.sp-comp-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

/* --------------------------------------------------------- Section title - */
.sp-comp-section__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 14px;
}

.sp-comp-section__title {
    margin: 0;
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 22px;
    letter-spacing: -.3px;
    text-transform: uppercase;
}

.sp-comp-section__rule {
    flex: 1;
    height: 4px;
    background: #00A24A;
}

/* --------------------------------------------------------------- Table --- */
.sp-comp-table {
    background: #fff;
    border: 1px solid #DBD9D2;
}

.sp-comp-table__head,
.sp-comp-table__row {
    display: grid;
    grid-template-columns: 32px 1fr 40px 40px 40px 40px 48px 96px;
    align-items: center;
}

.sp-comp-table__head {
    padding: 10px 14px;
    background: #0D0D0C;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.sp-comp-table__row {
    padding: 11px 14px;
    border-bottom: 1px solid #DBD9D2;
    font-size: 14px;
    font-weight: 600;
}

.sp-comp-table__row:last-child {
    border-bottom: 0;
}

.sp-comp-c {
    text-align: center;
}

.sp-comp-muted {
    color: #6B6963;
}

.sp-comp-pos {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
}

.sp-comp-club {
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-comp-club a:hover {
    color: #00A24A;
}

.sp-comp-pts {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
}

.sp-comp-form {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.sp-comp-form__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.sp-comp-form__chip--win {
    background: #00A24A;
}

.sp-comp-form__chip--draw {
    background: #8A887F;
}

.sp-comp-form__chip--loss {
    background: #C0362C;
}

/* --------------------------------------------------------------- Legend -- */
.sp-comp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #6B6963;
}

.sp-comp-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-comp-legend__swatch {
    width: 10px;
    height: 10px;
}

/* ------------------------------------------------------------- Fixtures -- */
.sp-comp-fixtures {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-comp-fixture {
    background: #fff;
    border: 1px solid #DBD9D2;
    display: grid;
    grid-template-columns: 92px 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    transition: border-color .15s ease;
}

.sp-comp-fixture:hover {
    border-color: #00A24A;
}

.sp-comp-fixture__time {
    font-size: 12px;
    font-weight: 800;
    color: #6B6963;
}

.sp-comp-fixture__time.is-live {
    color: #00A24A;
}

.sp-comp-fixture__home {
    text-align: right;
    font-weight: 800;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-comp-fixture__score {
    background: #0D0D0C;
    color: #fff;
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 15px;
    padding: 4px 12px;
    white-space: nowrap;
}

.sp-comp-fixture__score.is-live {
    background: #00A24A;
}

.sp-comp-fixture__away {
    font-weight: 800;
    font-size: 15px;
    color: #6B6963;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------------------------------------------- Scorers -- */
.sp-comp-scorers {
    background: #fff;
    border: 1px solid #DBD9D2;
}

.sp-comp-scorer {
    display: grid;
    grid-template-columns: 40px 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #DBD9D2;
}

.sp-comp-scorer:last-child {
    border-bottom: 0;
}

.sp-comp-scorer__rank {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 20px;
    color: #0D0D0C;
}

.sp-comp-scorer__rank.is-first {
    color: #00A24A;
}

.sp-comp-scorer__avatar,
.sp-comp-best__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #EFEEE8;
    color: #6B6963;
    font-weight: 800;
    text-transform: uppercase;
}

.sp-comp-scorer__avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.sp-comp-scorer__id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-comp-scorer__name {
    font-weight: 800;
    font-size: 15px;
}

.sp-comp-scorer__name a:hover {
    color: #00A24A;
}

.sp-comp-scorer__club {
    font-size: 12px;
    font-weight: 600;
    color: #6B6963;
}

.sp-comp-scorer__goals {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.sp-comp-scorer__goals-n {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 24px;
    color: #00A24A;
}

.sp-comp-scorer__goals-l {
    font-size: 12px;
    font-weight: 700;
    color: #6B6963;
}

/* ----------------------------------------------------------------- News -- */
.sp-comp-news {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sp-comp-news__item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid #DBD9D2;
    padding-bottom: 18px;
}

.sp-comp-news__thumb {
    height: 110px;
    background: #EFEEE8;
    overflow: hidden;
}

.sp-comp-news__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-comp-news__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sp-comp-news__tag {
    font-size: 12px;
    font-weight: 800;
    color: #00A24A;
    text-transform: uppercase;
}

.sp-comp-news__title {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 21px;
    line-height: 1.1;
}

.sp-comp-news__item:hover .sp-comp-news__title {
    color: #00A24A;
}

.sp-comp-news__meta {
    font-size: 13px;
    color: #6B6963;
    font-weight: 600;
}

/* ----------------------------------------------------------------- Rail -- */
.sp-comp-rail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-comp-numbers {
    background: #00A24A;
    color: #fff;
    padding: 20px;
}

.sp-comp-numbers__head,
.sp-comp-best__head {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 15px;
}

.sp-comp-numbers__head {
    margin-bottom: 14px;
}

.sp-comp-numbers__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sp-comp-numbers__val {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 34px;
    line-height: 1;
}

.sp-comp-numbers__lbl {
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.sp-comp-numbers__empty {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.sp-comp-best__head {
    margin-bottom: 12px;
}

.sp-comp-best__card {
    background: #fff;
    border: 2px solid #0D0D0C;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.sp-comp-best__avatar {
    width: 60px;
    height: 60px;
    flex: none;
    font-size: 24px;
}

.sp-comp-best__id {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sp-comp-best__name {
    font-weight: 800;
    font-size: 16px;
}

.sp-comp-best__name a:hover {
    color: #00A24A;
}

.sp-comp-best__club {
    font-size: 12px;
    font-weight: 600;
    color: #6B6963;
}

.sp-comp-best__goals {
    font-family: 'Archivo Black', 'Archivo', sans-serif;
    font-style: italic;
    font-size: 22px;
    color: #00A24A;
    margin-top: 2px;
}

.sp-comp-best__card--empty {
    justify-content: center;
    min-height: 80px;
}

.sp-comp-best__empty {
    font-size: 13px;
    font-weight: 600;
    color: #6B6963;
}

/* ------------------------------------------------------------ Responsive - */
@media (max-width: 960px) {
    .sp-comp-grid {
        grid-template-columns: 1fr;
    }

    .sp-comp-rail {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .sp-comp-banner,
    .sp-comp-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .sp-comp-banner__inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .sp-comp-banner__title {
        font-size: 30px;
    }

    .sp-comp-banner__follow {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .sp-comp-table__head,
    .sp-comp-table__row {
        grid-template-columns: 26px 1fr 30px 34px 42px 74px;
    }

    /* Hide V / E / D on narrow screens; keep #, club, J, Pts, Forma. */
    .sp-comp-table__head span:nth-child(4),
    .sp-comp-table__head span:nth-child(5),
    .sp-comp-table__head span:nth-child(6),
    .sp-comp-table__row > span:nth-child(4),
    .sp-comp-table__row > span:nth-child(5),
    .sp-comp-table__row > span:nth-child(6) {
        display: none;
    }

    .sp-comp-news__item {
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }

    .sp-comp-news__title {
        font-size: 17px;
    }
}
