/* CYCLING247 — Concept A */
/* Homepage hero v2 */

.c247-hero {
    --c247-pink: #d70b52;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(265px, 1fr);
    gap: 20px;
    padding: 20px;
    background: #191a1f;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.c247-hero,
.c247-hero * {
    box-sizing: border-box;
}

.c247-hero-main {
    min-width: 0;
    background: #191a1f;
}

.c247-hero-feature {
    position: relative;
    height: clamp(300px, 32vw, 450px);
    overflow: hidden;
    background: #2e3038;
    border-radius: 3px 3px 0 0;
}

.c247-hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.c247-hero-slide[hidden] {
    display: none !important;
}

.c247-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c247-hero-overlay {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    padding: 75px 26px 24px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0,0,0,.9)
    );
}

.c247-hero-overlay h2 {
    font-size: clamp(25px, 2.7vw, 39px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #fff;
    max-width: 730px;
    margin: 9px 0 16px;
}

.c247-eyebrow {
    display: inline-block;
    padding: 4px 7px;
    background: var(--c247-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.c247-hero-overlay a {
    display: inline-block;
    background: var(--c247-pink);
    color: #fff !important;
    padding: 10px 19px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    border-radius: 2px;
    line-height: 1.25;
}

.c247-hero-overlay a:hover {
    background: #af0841;
    color: #fff !important;
}

.c247-hero-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #111216;
    padding: 0;
}

.c247-hero .c247-hero-tab {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 78px;
    padding: 12px 12px 13px;
    border: 0;
    border-right: 1px solid #36373c;
    border-top: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #ddd;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.32;
    text-align: left;
    text-transform: none;
    cursor: pointer;
    overflow-wrap: break-word;
    box-shadow: none;
}

.c247-hero .c247-hero-tab:hover,
.c247-hero .c247-hero-tab:focus {
    background: #24262d;
    color: #fff;
    box-shadow: none;
}

.c247-hero .c247-hero-tab.is-active {
    background: #292a31;
    color: #fff;
    border-top-color: var(--c247-pink);
}

.c247-hero .c247-hero-tab:focus-visible {
    outline: 2px solid var(--c247-pink);
    outline-offset: -2px;
}

.c247-hero-side {
    min-width: 0;
    background: #fff;
    color: #18191e;
    padding: 16px;
    align-self: stretch;
}

.c247-side-group {
    margin-bottom: 22px;
}

.c247-side-group:last-child {
    margin-bottom: 0;
}

.c247-side-group h3 {
    color: #191a1f;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 14px;
}

.c247-side-story {
    margin: 0 0 14px;
}

.c247-side-story:last-child {
    margin-bottom: 0;
}

.c247-side-story a {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    text-decoration: none;
    color: #191a1f;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.c247-side-story a:hover {
    color: var(--c247-pink);
}

.c247-side-story img {
    width: 83px;
    height: 61px;
    flex: 0 0 83px;
    object-fit: cover;
    display: block;
    background: #e7e7ea;
}

@media (max-width: 900px) {
    .c247-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .c247-hero-feature {
        height: clamp(280px, 52vw, 460px);
    }

    .c247-hero-side {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .c247-hero {
        padding: 0;
        gap: 0;
    }

    .c247-hero-feature {
        height: 380px;
        border-radius: 0;
    }

    .c247-hero-overlay {
        padding: 65px 18px 22px;
    }

    .c247-hero-overlay h2 {
        font-size: 29px;
    }

    .c247-hero-tabs {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .c247-hero .c247-hero-tab {
        flex: 0 0 65%;
        min-height: 84px;
        scroll-snap-align: start;
    }

    .c247-hero-side {
        padding: 22px 18px;
    }
}

/* Concept A — right column refinements */

.c247-hero {
    align-items: start;
}

.c247-hero-side {
    align-self: start;
    padding: 2px 8px 8px 12px;
    background: #fff;
}

.c247-side-group {
    margin-bottom: 28px;
}

.c247-side-group h3 {
    position: relative;
    margin: 0 0 13px;
    padding-left: 11px;
    font-size: 15px;
    font-weight: 800;
}

.c247-side-group h3::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 4px;
    height: 10px;
    background: #d70b52;
}

.c247-side-story {
    padding-bottom: 13px;
    margin-bottom: 13px;
    border-bottom: 1px solid #ececf0;
}

.c247-side-story:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.c247-side-story a {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.c247-side-story img {
    width: 90px;
    height: 65px;
    flex-basis: 90px;
}

/* Preview page cleanup — page ID 23835 only */
.page-id-23835 .entry-header {
    display: none;
}

.page-id-23835 .inside-article {
    padding-top: 0;
}

@media (max-width: 900px) {
    .c247-hero-side {
        padding: 18px;
    }
}

/* CYCLING247 Concept A — corrected hero composition */

/* Remove the outer dark panel */
.c247-hero {
    background: #fff;
    padding: 0;
    gap: 24px;
    grid-template-columns: minmax(0, 3fr) minmax(285px, 1fr);
    align-items: stretch;
}

/* Dark styling applies ONLY to the main hero */
.c247-hero-main {
    background: #191a1f;
    min-width: 0;
}

/* Hero image */
.c247-hero-feature {
    height: 450px;
    border-radius: 0;
}

/* Four integrated story selectors */
.c247-hero-tabs {
    background: #111216;
}

.c247-hero .c247-hero-tab {
    min-height: 85px;
    padding: 14px 12px;
}

/* White Latest / Trending column */
.c247-hero-side {
    background: #fff;
    color: #191a1f;
    padding: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 28px;
}

/* Section headings */
.c247-side-group {
    margin: 0;
}

.c247-side-group h3 {
    font-size: 17px;
    margin-bottom: 18px;
}

/* Larger editorial story blocks */
.c247-side-story {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ededed;
}

.c247-side-story:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.c247-side-story a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #191a1f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.c247-side-story img {
    width: 105px;
    height: 78px;
    flex: 0 0 105px;
    object-fit: cover;
}

/* Tablet */
@media (max-width: 900px) {
    .c247-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .c247-hero-feature {
        height: clamp(300px, 52vw, 450px);
    }

    .c247-hero-side {
        padding: 0 12px 20px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .c247-hero {
        gap: 22px;
    }

    .c247-hero-feature {
        height: 380px;
    }

    .c247-hero-side {
        padding: 0 16px 24px;
    }

    .c247-side-story img {
        width: 95px;
        height: 70px;
        flex-basis: 95px;
    }
}

/* Concept A — corner radius + fuller right column */

/* Overall structure */
.c247-hero {
    align-items: stretch;
}

/* Left hero block gets rounded corners and clips cleanly */
.c247-hero-main {
    border-radius: 12px;
    overflow: hidden;
}

/* Hero image area */
.c247-hero-feature {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

/* Tabs sit as the lower part of the same rounded module */
.c247-hero-tabs {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* Right white column */
.c247-hero-side {
    border-radius: 12px;
    overflow: hidden;
    padding: 22px 18px;
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

/* Make the two groups breathe more and fill the column better */
.c247-side-group {
    flex: 1 1 0;
    margin: 0;
}

.c247-side-group h3 {
    margin-bottom: 18px;
}

/* Bigger stories on the right */
.c247-side-story {
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.c247-side-story a {
    gap: 14px;
    font-size: 15px;
    line-height: 1.42;
}

.c247-side-story img {
    width: 110px;
    height: 82px;
    flex: 0 0 110px;
    border-radius: 4px;
    object-fit: cover;
}

/* Slightly nicer button shape */
.c247-hero-overlay a {
    border-radius: 4px;
}

/* Tablet */
@media (max-width: 900px) {
    .c247-hero-main,
    .c247-hero-feature,
    .c247-hero-tabs,
    .c247-hero-side {
        border-radius: 10px;
    }

    .c247-hero-tabs {
        border-radius: 0 0 10px 10px;
    }

    .c247-hero-side {
        height: auto;
        min-height: 0;
        padding: 18px;
        gap: 22px;
    }

    .c247-side-group {
        flex: 0 0 auto;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .c247-hero-main,
    .c247-hero-feature,
    .c247-hero-tabs,
    .c247-hero-side {
        border-radius: 0;
    }

    .c247-side-story a {
        font-size: 14px;
    }

    .c247-side-story img {
        width: 95px;
        height: 72px;
        flex-basis: 95px;
    }
}

/* Concept A — balance right column better */

/* Give the right column a bit more width and align the whole module */
.c247-hero {
    grid-template-columns: minmax(0, 2.45fr) minmax(340px, 1fr);
    gap: 22px;
    align-items: start;
}

/* Keep the white card aligned with the top of the hero */
.c247-hero-side {
    align-self: start;
    margin-top: 0;
    padding: 8px 18px 18px;
    min-height: 100%;
    height: 100%;
    justify-content: flex-start;
    gap: 30px;
}

/* Make the section titles start higher */
.c247-side-group {
    margin: 0;
}

.c247-side-group h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

/* Make stories a little larger for better balance */
.c247-side-story {
    margin-bottom: 22px;
    padding-bottom: 22px;
}

.c247-side-story a {
    gap: 15px;
    font-size: 15px;
    line-height: 1.45;
}

.c247-side-story img {
    width: 112px;
    height: 84px;
    flex: 0 0 112px;
}

/* Slightly more breathing room between Latest and Trending blocks */
.c247-side-group + .c247-side-group {
    padding-top: 4px;
}

/* Tablet */
@media (max-width: 900px) {
    .c247-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .c247-hero-side {
        padding: 12px 18px 18px;
        height: auto;
        min-height: 0;
    }

    .c247-side-story img {
        width: 100px;
        height: 74px;
        flex-basis: 100px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .c247-hero-side {
        padding: 10px 16px 20px;
    }

    .c247-side-story a {
        font-size: 14px;
    }

    .c247-side-story img {
        width: 95px;
        height: 70px;
        flex-basis: 95px;
    }
}

/* CYCLING247 — Concept A site header */

.page-id-23835 #masthead,
.page-id-23835 #site-navigation {
    display: none;
}

.c247-header {
    background: #1a1e26;
    color: #fff;
    width: 100%;
    position: relative;
    z-index: 100;
}

.c247-header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1400px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
}

.c247-header-logo {
    flex: 0 0 150px;
    display: block;
}

.c247-header-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.c247-header-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    flex: 1;
}

.c247-header-nav a {
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.c247-header-nav a:hover {
    color: #f05a90;
}

.c247-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.c247-search-toggle,
.c247-menu-toggle {
    background: transparent;
    color: #fff;
    border: 0;
    cursor: pointer;
    padding: 6px;
}

.c247-header-subscribe {
    display: inline-block;
    background: #c61653;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 750;
    text-decoration: none;
    font-size: 15px;
}

.c247-header-subscribe:hover {
    background: #a90d44;
}

.c247-search-panel {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
}

.c247-search-panel[hidden] {
    display: none;
}

.c247-search-panel form {
    display: flex;
    gap: 10px;
}

.c247-search-panel input {
    flex: 1;
    min-width: 0;
}

.c247-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.c247-menu-toggle span {
    width: 23px;
    height: 2px;
    background: #fff;
}

@media (max-width: 1050px) {
    .c247-header-inner {
        gap: 18px;
    }

    .c247-header-nav {
        gap: 14px;
    }

    .c247-header-nav a {
        font-size: 13px;
    }
}

@media (max-width: 850px) {
    .c247-header-inner {
        min-height: 66px;
        padding: 0 16px;
    }

    .c247-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1e26;
        padding: 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .c247-header-nav.is-open {
        display: flex;
    }

    .c247-menu-toggle {
        display: flex;
    }

    .c247-header-subscribe {
        padding: 9px 13px;
        font-size: 13px;
    }

    .c247-header-actions {
        gap: 10px;
    }
}

/* Concept A — full-width preview layout */

/* Remove the old GeneratePress container restrictions */
.page-id-23835 #page,
.page-id-23835 #content,
.page-id-23835 #primary,
.page-id-23835 .inside-article,
.page-id-23835 .entry-content {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* Give the new homepage component its editorial width */
.page-id-23835 .entry-content {
    max-width: 1400px;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Remove legacy page padding */
.page-id-23835 .inside-article {
    padding: 0;
}

/* Match header inner width to editorial content */
.c247-header-inner {
    max-width: 1400px;
    padding-left: 24px;
    padding-right: 24px;
}

/* Space below header */
.page-id-23835 .entry-content {
    margin-top: 32px;
}

/* Mobile */
@media (max-width: 767px) {
    .page-id-23835 .entry-content {
        padding: 0 14px;
        margin-top: 16px;
    }

    .c247-header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Concept A — preview layout spacing cleanup */

.page-id-23835 #content {
    padding: 0;
}

.page-id-23835 .entry-content {
    margin-top: 24px;
    margin-bottom: 0;
}

.page-id-23835 .c247-hero {
    margin: 0;
}

@media (max-width: 767px) {
    .page-id-23835 .entry-content {
        margin-top: 12px;
    }
}

/* CYCLING247 Concept A — Featured section */

.c247-featured {
    background: #1a1e26;
    color: #fff;
    padding: 46px 32px 52px;
    margin: 38px 0 0;
    border-radius: 8px;
}

.c247-featured * {
    box-sizing: border-box;
}

.c247-featured-heading {
    margin-bottom: 24px;
}

.c247-featured-heading h2 {
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}

.c247-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.c247-featured-card {
    min-width: 0;
}

.c247-featured-card a {
    display: block;
    text-decoration: none;
    color: #fff;
    height: 100%;
}

.c247-featured-image {
    aspect-ratio: 16 / 10;
    background: #343945;
    border-radius: 5px;
    overflow: hidden;
}

.c247-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.c247-featured-card a:hover img {
    transform: scale(1.035);
}

.c247-featured-body {
    padding-top: 13px;
}

.c247-featured-label {
    display: inline-block;
    background: #c61653;
    color: #fff;
    padding: 4px 7px;
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.c247-featured-card h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.c247-featured-card a:hover h3 {
    color: #ff85ac;
}

@media (max-width: 900px) {
    .c247-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .c247-featured {
        padding: 26px 18px 30px;
        margin-top: 26px;
    }

    .c247-featured-grid {
        gap: 20px 12px;
    }

    .c247-featured-card h3 {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c247-featured-image img {
        transition: none;
    }
}

/* Featured — horizontal carousel */

.c247-featured-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.c247-featured-controls {
    display: flex;
    gap: 8px;
}

.c247-featured .c247-featured-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #555966;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.c247-featured .c247-featured-controls button:hover {
    background: #c61653;
    border-color: #c61653;
}

.c247-featured .c247-featured-controls button:disabled {
    opacity: .35;
    cursor: default;
}

.c247-featured-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.c247-featured-grid::-webkit-scrollbar {
    display: none;
}

.c247-featured-card {
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    .c247-featured-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .c247-featured-card {
        flex-basis: 82%;
    }

    .c247-featured-grid {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c247-featured-grid {
        scroll-behavior: auto;
    }
}

/* CYCLING247 Concept A — Latest Cycling News */

.c247-news {
    padding: 42px 0 48px;
    background: #fff;
    color: #1a1e26;
}

.c247-news * {
    box-sizing: border-box;
}

.c247-news-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.c247-news-heading h2 {
    margin: 0;
    color: #1a1e26;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.c247-news-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.c247-news-all {
    color: #1a1e26;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.c247-news-all:hover {
    color: #c61653;
}

.c247-news-controls {
    display: flex;
    gap: 8px;
}

.c247-news .c247-news-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1a1e26;
    border: 1px solid #dedee2;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 25px;
    cursor: pointer;
}

.c247-news .c247-news-controls button:hover:not(:disabled) {
    color: #fff;
    border-color: #c61653;
    background: #c61653;
}

.c247-news .c247-news-controls button:disabled {
    opacity: .35;
    cursor: default;
}

.c247-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

.c247-news-grid[hidden] {
    display: none !important;
}

.c247-news-card {
    min-width: 0;
}

.c247-news-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.c247-news-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 5px;
    background: #eceef0;
    margin-bottom: 12px;
}

.c247-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.c247-news-card a:hover img {
    transform: scale(1.035);
}

.c247-news-category {
    display: block;
    color: #80838c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.c247-news-card h3 {
    color: #1a1e26;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 10px;
}

.c247-news-card a:hover h3 {
    color: #c61653;
}

.c247-news-card time {
    color: #888b94;
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .c247-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .c247-news {
        padding: 28px 0 36px;
    }

    .c247-news-heading h2 {
        font-size: 21px;
    }

    .c247-news-actions {
        gap: 10px;
    }

    .c247-news-grid {
        gap: 22px 12px;
    }

    .c247-news-card h3 {
        font-size: 14px;
    }

    .c247-news-image {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c247-news-image img {
        transition: none;
    }
}

/* CYCLING247 Concept A — Guides & Reviews */

.c247-guides {
    background: #1a1e26;
    color: #fff;
    padding: 42px 32px 48px;
    margin: 0;
    border-radius: 8px;
}

.c247-guides * {
    box-sizing: border-box;
}

.c247-guides-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.c247-guides-heading h2 {
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
}

.c247-guides-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.c247-guides .c247-guides-tab {
    background: transparent;
    color: #c9cbd3;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.c247-guides .c247-guides-tab:hover {
    background: #292c35;
    color: #fff;
}

.c247-guides .c247-guides-tab[aria-selected="true"] {
    background: transparent;
    border-bottom-color: #c61653;
    color: #fff;
}

.c247-guides .c247-guides-tab:focus-visible {
    outline: 2px solid #c61653;
    outline-offset: 2px;
}

.c247-guides-panel[hidden] {
    display: none !important;
}

.c247-guides-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
}

.c247-guide-card {
    min-width: 0;
}

.c247-guide-card a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.c247-guide-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #343945;
    border-radius: 5px;
    margin-bottom: 12px;
}

.c247-guide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.c247-guide-card a:hover img {
    transform: scale(1.035);
}

.c247-guide-card h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 9px;
}

.c247-guide-card a:hover h3 {
    color: #ff85ac;
}

.c247-guide-card time {
    display: block;
    color: #999da8;
    font-size: 11px;
    text-transform: uppercase;
}

.c247-guides-empty {
    padding: 48px 0;
    color: #b9bdc7;
    text-align: center;
}

.c247-guides-footer {
    text-align: center;
    margin-top: 32px;
}

.c247-guides-footer a {
    display: inline-block;
    padding: 12px 30px;
    background: #c61653;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.c247-guides-footer a:hover {
    background: #a90d44;
    color: #fff;
}

@media (max-width: 900px) {
    .c247-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .c247-guides {
        padding: 28px 18px 32px;
    }

    .c247-guides-heading h2 {
        font-size: 22px;
    }

    .c247-guides-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
    }

    .c247-guides .c247-guides-tab {
        white-space: nowrap;
    }

    .c247-guides-grid {
        gap: 22px 12px;
    }

    .c247-guide-card h3 {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c247-guide-image img {
        transition: none;
    }
}

/* Concept A — Guides & Reviews: heading above tabs */

.c247-guides-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.c247-guides-heading h2 {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.c247-guides-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    border-bottom: 1px solid #41444c;
}

.c247-guides .c247-guides-tab {
    padding: 10px 0 12px;
    margin: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.c247-guides .c247-guides-tab[aria-selected="true"] {
    border-bottom-color: #c61653;
}

@media (max-width: 600px) {
    .c247-guides-heading {
        gap: 12px;
    }

    .c247-guides-heading h2 {
        font-size: 22px;
    }

    .c247-guides-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        scrollbar-width: none;
    }

    .c247-guides-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Concept A — Guides & Reviews: heading above tabs */

.c247-guides-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.c247-guides-heading h2 {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.c247-guides-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    border-bottom: 1px solid #41444c;
}

.c247-guides .c247-guides-tab {
    padding: 10px 0 12px;
    margin: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.c247-guides .c247-guides-tab[aria-selected="true"] {
    border-bottom-color: #c61653;
}

@media (max-width: 600px) {
    .c247-guides-heading {
        gap: 12px;
    }

    .c247-guides-heading h2 {
        font-size: 22px;
    }

    .c247-guides-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        scrollbar-width: none;
    }

    .c247-guides-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Concept A — centred Guides & Reviews tabs */

@media (min-width: 601px) {
    .c247-guides-tabs {
        justify-content: center;
    }
}

/* Mobile: retain horizontal scrolling */
@media (max-width: 600px) {
    .c247-guides-tabs {
        justify-content: flex-start;
    }
}

/* CYCLING247 — Training & Indoor */

.c247-training {
    background: #fff;
    color: #1a1e26;
    padding: 44px 0 50px;
}

.c247-training * {
    box-sizing: border-box;
}

.c247-training-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.c247-training-heading h2 {
    margin: 0;
    color: #1a1e26;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.c247-training-heading > a {
    color: #1a1e26;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.c247-training-heading > a:hover {
    color: #c61653;
}

.c247-training-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.c247-training-main a,
.c247-training-story a {
    color: inherit;
    text-decoration: none;
}

.c247-training-main-image {
    aspect-ratio: 16 / 9;
    background: #e9e9ec;
    overflow: hidden;
    border-radius: 5px;
}

.c247-training-main-image img,
.c247-training-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c247-training-main-body {
    padding-top: 14px;
}

.c247-training-label {
    display: block;
    color: #c61653;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 7px;
}

.c247-training-main h3 {
    margin: 0;
    color: #1a1e26;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
}

.c247-training-side {
    display: grid;
    gap: 16px;
}

.c247-training-story a {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.c247-training-thumb {
    width: 112px;
    height: 84px;
    overflow: hidden;
    border-radius: 4px;
    background: #e9e9ec;
}

.c247-training-story h3 {
    margin: 0;
    color: #1a1e26;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.c247-training a:hover h3 {
    color: #c61653;
}

@media (max-width: 900px) {
    .c247-training-layout {
        grid-template-columns: 1fr;
    }

    .c247-training-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .c247-training {
        padding: 30px 0 36px;
    }

    .c247-training-heading h2 {
        font-size: 22px;
    }

    .c247-training-side {
        grid-template-columns: 1fr;
    }

    .c247-training-main h3 {
        font-size: 19px;
    }
}

/* Training & Indoor — rebalance main story and sidebar */

@media (min-width: 901px) {
    .c247-training-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
        gap: 28px;
    }

    .c247-training-story a {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
    }

    .c247-training-thumb {
        width: 150px;
        height: 108px;
    }

    .c247-training-side {
        gap: 18px;
    }

    .c247-training-story h3 {
        font-size: 15px;
        line-height: 1.4;
    }
}

/* CYCLING247 Concept A — Pro Racing */

.c247-racing {
    padding: 42px 0 52px;
    background: #fff;
    color: #1a1e26;
}

.c247-racing * {
    box-sizing: border-box;
}

.c247-racing > h2 {
    margin: 0 0 22px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: #1a1e26;
}

.c247-racing-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
    border-bottom: 1px solid #e5e5e8;
    margin-bottom: 24px;
}

.c247-racing .c247-racing-tabs button {
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #70747d;
    padding: 10px 2px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.c247-racing .c247-racing-tabs button[aria-selected="true"] {
    color: #1a1e26;
    border-bottom-color: #c61653;
}

.c247-racing .c247-racing-tabs button:hover {
    color: #c61653;
}

.c247-racing .c247-racing-tabs button:focus-visible {
    outline: 2px solid #c61653;
    outline-offset: 2px;
}

.c247-racing-panel[hidden] {
    display: none !important;
}

.c247-racing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.c247-racing-card {
    min-width: 0;
}

.c247-racing-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.c247-racing-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 5px;
    background: #eceef1;
    margin-bottom: 12px;
}

.c247-racing-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.c247-racing-card a:hover img {
    transform: scale(1.035);
}

.c247-racing-card h3 {
    color: #1a1e26;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 9px;
}

.c247-racing-card a:hover h3 {
    color: #c61653;
}

.c247-racing-card time {
    display: block;
    color: #858892;
    font-size: 11px;
    text-transform: uppercase;
}

.c247-racing-empty {
    text-align: center;
    padding: 48px 0;
    color: #858892;
}

.c247-racing-footer {
    text-align: center;
    margin-top: 30px;
}

.c247-racing-footer a {
    display: inline-block;
    background: #c61653;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.c247-racing-footer a:hover {
    background: #a90d44;
    color: #fff;
}

@media (max-width: 900px) {
    .c247-racing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .c247-racing {
        padding: 30px 0 38px;
    }

    .c247-racing > h2 {
        font-size: 22px;
    }

    .c247-racing-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 22px;
        scrollbar-width: none;
    }

    .c247-racing-tabs::-webkit-scrollbar {
        display: none;
    }

    .c247-racing-grid {
        gap: 20px 12px;
    }

    .c247-racing-card h3 {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c247-racing-image img {
        transition: none;
    }
}

/* CYCLING247 Concept A — Daily Split newsletter */

.page-id-23835 .c247-newsletter {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin: 48px 0 0 -50vw;
    padding: 65px 30px;
    background: #1a1e26;
    color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.page-id-23835 .c247-newsletter::after {
    content: "";
    position: absolute;
    top: -60%;
    right: -10%;
    width: 65%;
    height: 220%;
    background: radial-gradient(
        ellipse,
        rgba(255,255,255,.055),
        transparent 65%
    );
    pointer-events: none;
}

.c247-newsletter-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.c247-newsletter-content {
    max-width: 700px;
}

.c247-newsletter h2 {
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
}

.c247-newsletter p {
    color: #d7d9df;
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 25px;
}

.c247-newsletter .c247-newsletter-button {
    display: inline-block;
    padding: 13px 32px;
    background: #c61653;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease;
}

.c247-newsletter .c247-newsletter-button:hover {
    background: #a90d44;
    color: #fff;
}

.c247-newsletter .c247-newsletter-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .page-id-23835 .c247-newsletter {
        padding: 44px 24px;
        margin-top: 32px;
    }

    .c247-newsletter h2 {
        font-size: 27px;
    }

    .c247-newsletter p {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c247-newsletter .c247-newsletter-button {
        transition: none;
    }
}

/* Concept A — Daily Split newsletter background refinement */

.page-id-23835 .c247-newsletter {
    background: linear-gradient(
        110deg,
        #1a1c22 0%,
        #22252e 48%,
        #323640 100%
    ) !important;
    background-image: linear-gradient(
        110deg,
        #1a1c22 0%,
        #22252e 48%,
        #323640 100%
    ) !important;
}

/* Remove decorative overlay from previous version */
.page-id-23835 .c247-newsletter::before,
.page-id-23835 .c247-newsletter::after {
    content: none !important;
    display: none !important;
}

/* Daily Split newsletter — exact Concept A HTML background */

.page-id-23835 .c247-newsletter {
    min-height: 390px;
    display: flex;
    align-items: center;
    background-color: #3A3F49 !important;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,.05) 0 2px,
        transparent 2px 18px
    ) !important;
}

/* Left-to-right dark overlay from original design */
.page-id-23835 .c247-newsletter::before {
    content: "";
    display: block !important;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20,22,27,.88) 0%,
        rgba(20,22,27,.55) 45%,
        rgba(20,22,27,0) 75%
    );
    pointer-events: none;
}

.page-id-23835 .c247-newsletter::after {
    display: none !important;
    content: none !important;
}

.page-id-23835 .c247-newsletter-inner {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .page-id-23835 .c247-newsletter {
        min-height: 0;
    }
}

/* Daily Split newsletter — fix alignment to match concept */

.page-id-23835 .c247-newsletter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 390px;
    padding: 0 !important;
    background-color: #3A3F49 !important;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,.05) 0 2px,
        transparent 2px 18px
    ) !important;
}

/* stronger left-side dark wash like the design */
.page-id-23835 .c247-newsletter::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block !important;
    background: linear-gradient(
        90deg,
        rgba(12,14,19,.92) 0%,
        rgba(18,21,27,.80) 24%,
        rgba(25,29,36,.45) 48%,
        rgba(30,34,42,.12) 68%,
        rgba(30,34,42,0) 82%
    );
    pointer-events: none;
    z-index: 0;
}

.page-id-23835 .c247-newsletter::after {
    display: none !important;
    content: none !important;
}

.page-id-23835 .c247-newsletter-inner {
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 64px !important;
    display: flex;
    justify-content: flex-start;
}

.page-id-23835 .c247-newsletter-content {
    max-width: 860px;
    margin: 0 !important;
}

.page-id-23835 .c247-newsletter h2 {
    margin: 0 0 22px;
}

.page-id-23835 .c247-newsletter p {
    max-width: 820px;
    margin: 0 0 34px;
}

@media (max-width: 1024px) {
    .page-id-23835 .c247-newsletter-inner {
        padding: 0 40px !important;
    }

    .page-id-23835 .c247-newsletter-content {
        max-width: 720px;
    }
}

@media (max-width: 767px) {
    .page-id-23835 .c247-newsletter {
        min-height: auto;
        padding: 44px 0 !important;
    }

    .page-id-23835 .c247-newsletter-inner {
        padding: 0 24px !important;
    }

    .page-id-23835 .c247-newsletter-content {
        max-width: 100%;
    }
}

/* CYCLING247 Concept A — original HTML newsletter background */

.page-id-23835 .c247-newsletter {
    background-color: #3A3F49 !important;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,.05) 0 2px,
        transparent 2px 18px
    ) !important;
}

.page-id-23835 .c247-newsletter::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20,22,27,.88) 0%,
        rgba(20,22,27,.55) 45%,
        rgba(20,22,27,0) 75%
    ) !important;
    pointer-events: none;
    z-index: 0;
}

.page-id-23835 .c247-newsletter::after {
    content: none !important;
    display: none !important;
}

.page-id-23835 .c247-newsletter-inner {
    position: relative;
    z-index: 1;
}

/* CYCLING247 Concept A — Footer */

.page-id-23835 #colophon,
.page-id-23835 footer.site-info {
    display: none !important;
}

.page-id-23835 .c247-footer {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin: 0 0 0 -50vw;
    background: #222222;
    color: #fefefe;
    box-sizing: border-box;
}

.c247-footer,
.c247-footer * {
    box-sizing: border-box;
}

.c247-footer-inner {
    max-width: 1392px;
    margin: 0 auto;
    padding: 64px 24px 28px;
}

.c247-footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: space-between;
}

.c247-footer-brand {
    flex: 1 1 320px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.c247-footer-logo {
    align-self: flex-start;
    display: inline-flex;
    line-height: 0;
}

.c247-footer-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 32px;
}

.c247-footer-brand p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    color: #d0d3d8;
}

.c247-footer-col {
    flex: 0 1 180px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c247-footer-col h2 {
    color: #fefefe;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 500;
    margin: 0 0 6px;
}

.c247-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.c247-footer-col li {
    margin: 0;
    padding: 0;
}

.c247-footer-col a,
.c247-footer-bottom a {
    color: #bfc3c9;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.c247-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.c247-footer a:focus-visible {
    outline: 2px solid #c61653;
    outline-offset: 3px;
}

.c247-footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.c247-footer-social-list li {
    margin: 0;
}

.c247-footer-social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid #fefefe;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    color: #fefefe;
    text-decoration: none;
}

.c247-footer-bottom {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.18);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #bfc3c9;
}

.c247-footer-bottom a {
    font-size: 12px;
}

.c247-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

@media (max-width: 900px) {
    .c247-footer-main {
        gap: 36px;
    }

    .c247-footer-brand {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .c247-footer-inner {
        padding: 40px 24px 24px;
    }

    .c247-footer-main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    .c247-footer-brand {
        grid-column: 1 / -1;
    }

    .c247-footer-col {
        min-width: 0;
    }

    .c247-footer-col h2 {
        font-size: 16px;
    }

    .c247-footer-col a {
        font-size: 13px;
    }

    .c247-footer-bottom {
        margin-top: 36px;
    }
}

/* CYCLING247 footer — final layout and visibility fixes */

/* Hide only the old GeneratePress footer on the preview page */
.page-id-23835 .site-footer,
.page-id-23835 #colophon,
.page-id-23835 .site-info {
    display: none !important;
}

/* The custom footer is inside main content, not .site-footer */
.page-id-23835 .c247-footer {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin: 0 0 0 -50vw;
    background: #222222;
}

/* Extend the footer content across the page */
.page-id-23835 .c247-footer-inner {
    width: 100%;
    max-width: none;
    padding: 58px 64px 24px;
    margin: 0 auto;
}

/* Four desktop columns: branding plus three link groups */
.page-id-23835 .c247-footer-main {
    display: grid;
    grid-template-columns: minmax(320px, 2.5fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

.page-id-23835 .c247-footer-brand {
    max-width: 520px;
    min-width: 0;
}

/* Fix all navigation colours, including News */
.page-id-23835 .c247-footer-col a,
.page-id-23835 .c247-footer-col a:link,
.page-id-23835 .c247-footer-col a:visited {
    display: inline-block;
    color: #bfc3c9 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    text-decoration: none;
}

.page-id-23835 .c247-footer-col a:hover,
.page-id-23835 .c247-footer-col a:focus-visible {
    color: #ffffff !important;
    text-decoration: underline;
}

.page-id-23835 .c247-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-id-23835 .c247-footer-col li {
    padding: 0;
    margin: 0;
}

/* Social links: tidy circles only when configured */
.page-id-23835 .c247-footer-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-id-23835 .c247-footer-social-list a {
    width: auto;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 18px;
    border: 1px solid #858892;
    color: #fff;
    font-size: 11px;
}

@media (max-width: 1000px) {
    .page-id-23835 .c247-footer-inner {
        padding: 44px 32px 24px;
    }

    .page-id-23835 .c247-footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px;
    }

    .page-id-23835 .c247-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .page-id-23835 .c247-footer-inner {
        padding: 38px 22px 24px;
    }

    .page-id-23835 .c247-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .page-id-23835 .c247-footer-brand {
        grid-column: 1 / -1;
    }
}

/* CYCLING247 — Footer social SVG icons */

.page-id-23835 .c247-footer-social-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.page-id-23835 .c247-footer-social-list a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid #727680;
    background-color: transparent;
    color: #fff;
    font-size: 0;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

.page-id-23835 .c247-footer-social-list a:hover {
    background-color: #c61653;
    border-color: #c61653;
}

.page-id-23835 .c247-footer-social-list .c247-social-label {
    display: block;
    width: 18px;
    height: 18px;
    overflow: hidden;
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Instagram SVG */
.page-id-23835 .c247-footer-social-list
a[href*="instagram.com"] .c247-social-label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='18' cy='6' r='1' fill='white' stroke='none'/%3E%3C/svg%3E");
}

/* Facebook SVG */
.page-id-23835 .c247-footer-social-list
a[href*="facebook.com"] .c247-social-label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14.2 22v-8h2.7l.4-3.2h-3.1V8.7c0-.9.3-1.5 1.6-1.5h1.7V4.3c-.3 0-1.3-.1-2.5-.1-2.5 0-4.2 1.5-4.2 4.4v2.2H8V14h2.8v8z'/%3E%3C/svg%3E");
}

/* Show labels if another social service is added */
.page-id-23835 .c247-footer-social-list
a:not([href*="instagram.com"]):not([href*="facebook.com"]) {
    font-size: 11px;
    width: auto;
    padding: 0 10px;
}

.page-id-23835 .c247-footer-social-list
a:not([href*="instagram.com"]):not([href*="facebook.com"])
.c247-social-label {
    width: auto;
    height: auto;
    font-size: 11px;
}

@media (prefers-reduced-motion: reduce) {
    .page-id-23835 .c247-footer-social-list a {
        transition: none;
    }
}

/* CYCLING247 — TRI247-style full-bleed editorial backgrounds */

.page-id-23835 .c247-featured,
.page-id-23835 .c247-guides {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-left: -50vw;
    margin-right: 0;
    box-sizing: border-box;

    /* Background full width, content constrained to editorial grid */
    padding-left: max(24px, calc((100vw - 1352px) / 2));
    padding-right: max(24px, calc((100vw - 1352px) / 2));

    background: #1a1e26;
    border-radius: 0;
}

/* Keep both bands visually consistent */
.page-id-23835 .c247-featured {
    padding-top: 46px;
    padding-bottom: 52px;
}

.page-id-23835 .c247-guides {
    padding-top: 46px;
    padding-bottom: 52px;
}

/* Tablet and mobile */
@media (max-width: 767px) {
    .page-id-23835 .c247-featured,
    .page-id-23835 .c247-guides {
        padding: 30px 20px 36px;
        border-radius: 0;
    }
}

/* CYCLING247 — sticky header on redesigned homepage */

/* Header rendered before the GeneratePress masthead */
body.page-id-23835 .c247-header {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    width: 100%;
}

/* Keep header above editorial sections and ads */
body.page-id-23835 .c247-header-inner {
    position: relative;
    z-index: 1;
}

/* Respect WordPress admin bar when logged in */
body.admin-bar.page-id-23835 .c247-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar.page-id-23835 .c247-header {
        top: 46px;
    }
}

/* CYCLING247 — unified desktop editorial grid */

body.page-id-23835 {
    --c247-content-width: 1400px;
    --c247-side-gutter: 24px;
}

/* Remove GeneratePress's extra inset around our homepage */
body.page-id-23835 #content {
    padding: 0 !important;
}

body.page-id-23835 #primary,
body.page-id-23835 #main,
body.page-id-23835 .inside-article {
    width: 100%;
    max-width: none;
}

body.page-id-23835 .inside-article {
    padding: 0 !important;
}

/* One consistent editorial grid */
body.page-id-23835 .entry-content {
    width: calc(100% - 48px);
    max-width: var(--c247-content-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Header uses the same horizontal alignment */
body.page-id-23835 .c247-header-inner {
    width: calc(100% - 48px);
    max-width: var(--c247-content-width);
    margin-left: auto;
    margin-right: auto;
}

/* Hero should no longer lose width inside entry-content */
body.page-id-23835 .c247-hero {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Full-bleed background sections, inner cards aligned to grid */
@media (min-width: 1449px) {
    body.page-id-23835 .c247-featured,
    body.page-id-23835 .c247-guides {
        padding-left: calc((100vw - 1400px) / 2);
        padding-right: calc((100vw - 1400px) / 2);
    }
}

@media (min-width: 768px) and (max-width: 1448px) {
    body.page-id-23835 .c247-featured,
    body.page-id-23835 .c247-guides {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* CYCLING247 — RUN247-aligned editorial width */

body.page-id-23835 {
    --c247-content-width: 1440px;
    --c247-side-gutter: 24px;
}

/* Override legacy GeneratePress content constraints */
body.page-id-23835 #page,
body.page-id-23835 #content,
body.page-id-23835 #primary,
body.page-id-23835 #main,
body.page-id-23835 .inside-article {
    max-width: none !important;
}

body.page-id-23835 #content,
body.page-id-23835 .inside-article {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Shared content width for header and all editorial sections */
body.page-id-23835 .entry-content,
body.page-id-23835 .c247-header-inner {
    width: calc(100% - 48px) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-id-23835 .c247-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Full-width dark sections, with inner content aligned to 1440px */
body.page-id-23835 .c247-featured,
body.page-id-23835 .c247-guides {
    padding-left: max(24px, calc((100vw - 1440px) / 2)) !important;
    padding-right: max(24px, calc((100vw - 1440px) / 2)) !important;
}

/* Responsive grid */
@media (max-width: 767px) {
    body.page-id-23835 .entry-content,
    body.page-id-23835 .c247-header-inner {
        width: calc(100% - 32px) !important;
    }

    body.page-id-23835 .c247-featured,
    body.page-id-23835 .c247-guides {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* CYCLING247 — correct horizontal centering of the page container */

body.page-id-23835 #page {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 1560px !important;
}

/* Keep editorial content centred within the container */
body.page-id-23835 .entry-content {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Header uses the same 1440px editorial grid */
body.page-id-23835 .c247-header-inner {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 1560px) {
    body.page-id-23835 #page {
        max-width: 100% !important;
    }
}

/* CYCLING247 — match TRI247/RUN247 entry container */

body.page-id-23835 .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Keep the homepage header aligned to the same full-width layout */
body.page-id-23835 .c247-header-inner {
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Editorial hero uses the full available width */
body.page-id-23835 .c247-hero {
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Constrain white editorial sections to match the hero */
body.page-id-23835 .c247-news,
body.page-id-23835 .c247-training,
body.page-id-23835 .c247-racing {
    width: calc(100% - 48px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark editorial sections stay full bleed */
body.page-id-23835 .c247-featured,
body.page-id-23835 .c247-guides {
    left: auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    padding-left: max(24px, calc((100vw - 1440px) / 2)) !important;
    padding-right: max(24px, calc((100vw - 1440px) / 2)) !important;
}

@media (max-width: 767px) {
    body.page-id-23835 .c247-header-inner,
    body.page-id-23835 .c247-hero,
    body.page-id-23835 .c247-news,
    body.page-id-23835 .c247-training,
    body.page-id-23835 .c247-racing {
        width: calc(100% - 32px) !important;
    }
}

/* CYCLING247 — unified editorial grid, matching RUN247 */

/* Full-width WordPress content structure */
body.page-id-23835 #page,
body.page-id-23835 #content,
body.page-id-23835 #primary,
body.page-id-23835 #main,
body.page-id-23835 .inside-article,
body.page-id-23835 .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Shared centered content width */
body.page-id-23835 {
    --c247-grid-width: 1560px;
    --c247-grid-gutter: 24px;
}

body.page-id-23835 .c247-header-inner,
body.page-id-23835 .c247-hero,
body.page-id-23835 .c247-news,
body.page-id-23835 .c247-training,
body.page-id-23835 .c247-racing {
    width: calc(100% - 2 * var(--c247-grid-gutter)) !important;
    max-width: var(--c247-grid-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Dark sections remain full viewport width */
body.page-id-23835 .c247-featured,
body.page-id-23835 .c247-guides {
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;

    padding-left: max(
        var(--c247-grid-gutter),
        calc((100vw - var(--c247-grid-width)) / 2)
    ) !important;

    padding-right: max(
        var(--c247-grid-gutter),
        calc((100vw - var(--c247-grid-width)) / 2)
    ) !important;
}

/* Newsletter and footer continue spanning viewport */
body.page-id-23835 .c247-newsletter,
body.page-id-23835 .c247-footer {
    left: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
}

@media (max-width: 767px) {
    body.page-id-23835 {
        --c247-grid-gutter: 16px;
    }
}

/* CYCLING247 — RUN247-style single article hero */

/* Hide the obsolete first hero retained in the imported element */
body.single-post #hero--post.display-none {
    display: none !important;
}

/* Centre the newer article hero */
body.single-post .small-con {
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}

/* Keep hero contents within the editorial container */
body.single-post .small-con > .gb-container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Featured image */
body.single-post .small-con .featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Article metadata */
body.single-post .news-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.single-post .news-author img {
    border-radius: 50%;
}

body.single-post .news-date {
    width: fit-content;
    margin-left: 64px;
    margin-top: -30px;
}

body.single-post .featured-tag {
    display: inline-block;
    width: fit-content;
    padding: 5px 10px;
    background: #1a1e26;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    body.single-post .small-con {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    body.single-post .news-date {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* CYCLING247 — sitewide network header/footer */

/* Hide the legacy GeneratePress header/navigation */
body:not(.page-id-23835) .site-header,
body:not(.page-id-23835) #site-navigation,
body:not(.page-id-23835) .main-navigation {
    display: none !important;
}

/* Keep the new header's presentation consistent */
body:not(.page-id-23835) .c247-header {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    background: #1a1e26;
}

body.admin-bar:not(.page-id-23835) .c247-header {
    top: 32px;
}

body:not(.page-id-23835) .c247-header-inner {
    width: calc(100% - 48px) !important;
    max-width: 1560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hide the old footer outside the homepage */
body:not(.page-id-23835) .site-footer,
body:not(.page-id-23835) .footer-widgets {
    display: none !important;
}

body:not(.page-id-23835) .c247-footer {
    width: 100%;
    background: #222;
}

/* Match homepage footer typography and spacing */
body:not(.page-id-23835) .c247-footer-inner {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 782px) {
    body.admin-bar:not(.page-id-23835) .c247-header {
        top: 46px;
    }
}

@media (max-width: 767px) {
    body:not(.page-id-23835) .c247-header-inner {
        width: calc(100% - 32px) !important;
    }
}

/* CYCLING247 — article author, date and sharing */

/* Metadata section directly beneath the featured image */
body.single-post .small-con .gb-container-2827de90 {
    width: 100%;
    padding-top: 30px !important;
    padding-bottom: 35px !important;
}

/* Author/date group on left, sharing on right */
body.single-post .small-con .gb-container-bc63605b {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

/* Author and date stacked together */
body.single-post .small-con .gb-container-984adc63 {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
}

body.single-post .news-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
}

body.single-post .news-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

body.single-post .news-date {
    display: flex !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    width: auto !important;
}

/* Sharing controls on the right */
body.single-post .small-con .novashare {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin: 0 !important;
}

body.single-post .small-con .novashare p {
    margin: 0 !important;
}

/* Mobile: natural stacked layout */
@media (max-width: 767px) {
    body.single-post .small-con .gb-container-bc63605b {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    body.single-post .small-con .novashare {
        justify-content: flex-start !important;
    }
}

/* CYCLING247 — precise article metadata alignment */

body.single-post .small-con .gb-container-984adc63 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: auto !important;
    gap: 5px !important;
}

/* WordPress author block */
body.single-post .news-author {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: auto !important;
    min-height: 48px;
}

body.single-post .news-author .wp-block-post-author__avatar {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
}

body.single-post .news-author .wp-block-post-author__avatar img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 50% !important;
}

body.single-post .news-author .wp-block-post-author__content {
    flex: 0 1 auto !important;
    width: auto !important;
    margin: 0 !important;
}

body.single-post .news-author .wp-block-post-author__name {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 500;
}

/* Align date beneath author name, not beneath avatar */
body.single-post .news-date {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    margin: -5px 0 0 64px !important;
    font-size: 16px;
    color: #6b7280;
}

body.single-post .news-date .date-image {
    display: flex;
    margin: 0 !important;
}

/* Sharing */
body.single-post .small-con .novashare {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

body.single-post .small-con .novashare .ns-button-wrapper {
    opacity: 1 !important;
}

body.single-post .small-con .novashare .ns-button-icon svg {
    width: 20px;
    height: 20px;
}

/* Mobile */
@media (max-width: 767px) {
    body.single-post .news-date {
        margin-left: 64px !important;
        font-size: 14px;
    }
}

/* CYCLING247 — final article author/date spacing */

body.single-post .news-author .wp-block-post-author__content,
body.single-post .news-author .wp-block-post-author__name {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

body.single-post .news-author {
    min-height: 48px;
    height: auto;
}

body.single-post .news-date {
    margin-top: -4px !important;
    line-height: 1.4;
}

body.single-post .small-con .gb-container-984adc63 {
    gap: 0 !important;
}

/* CYCLING247 — single post meta row under featured image */
body.single-post .small-con {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

body.single-post .small-con .gb-container-bc63605b {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
}

body.single-post .small-con .gb-container-984adc63 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    flex: 0 1 auto !important;
}

body.single-post .news-author,
body.single-post .news-date {
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
}

body.single-post .novashare {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    text-align: right !important;
}

body.single-post .novashare p {
    margin: 0 !important;
}

body.single-post .novashare .ns-buttons,
body.single-post .novashare .ns-buttons-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

@media (max-width: 768px) {
    body.single-post .small-con {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.single-post .small-con .gb-container-bc63605b {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    body.single-post .novashare {
        margin-left: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    body.single-post .novashare .ns-buttons,
    body.single-post .novashare .ns-buttons-wrapper {
        justify-content: flex-start !important;
    }
}

/* CYCLING247 — final author and sharing row */

/* Keep the author and date in one aligned column */
body.single-post .small-con .gb-container-984adc63 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
}

/* Author avatar + name */
body.single-post .small-con .news-author {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    gap: 16px !important;
    margin: 0 !important;
}

body.single-post .small-con .news-author .wp-block-post-author__avatar {
    display: block !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
}

body.single-post .small-con .news-author .wp-block-post-author__avatar img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.single-post .small-con .news-author .wp-block-post-author__content,
body.single-post .small-con .news-author .wp-block-post-author__name {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Date directly below the author name */
body.single-post .small-con .news-date {
    margin: 0 0 0 64px !important;
    width: auto !important;
}

/* Match RUN247's single NovaShare popup control */
body.single-post .small-con .novashare {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: auto !important;
    margin-left: auto !important;
}

body.single-post .small-con .novashare .ns-buttons,
body.single-post .small-con .novashare .ns-buttons-wrapper {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
}

body.single-post .small-con .novashare .ns-button.share {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    cursor: pointer;
}

body.single-post .small-con .novashare .ns-button-wrapper,
body.single-post .small-con .novashare .ns-button-icon {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    align-items: center !important;
    justify-content: center !important;
}

body.single-post .small-con .novashare .ns-button-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: #4a5565 !important;
    color: #4a5565 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* CYCLING247 — visible NovaShare popup icon */
body.single-post .small-con .novashare a.ns-button.share
.ns-button-icon svg,
body.single-post .small-con .novashare a.ns-button.share
.ns-button-icon svg path {
    color: #4a5565 !important;
    fill: #4a5565 !important;
}

/* Cycling247 — make white author logo black on transparent background */
body.single-post .news-author .wp-block-post-author__avatar img {
    filter: brightness(0) !important;
}

/* CYCLING247 — Yoast FAQ editorial styling */

body.single-post .wp-block-yoast-faq-block {
    margin: 32px 0 48px;
}

body.single-post .wp-block-yoast-faq-block
.schema-faq-section {
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* Questions */
body.single-post .wp-block-yoast-faq-block
.schema-faq-question {
    display: block;
    position: relative;
    padding: 18px 48px 18px 20px !important;
    margin: 0 !important;
    background: #f5f6f8 !important;
    color: #1a1e26 !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    border: 0 !important;
}

/* Replace old question-mark icon with magenta accent */
body.single-post .wp-block-yoast-faq-block
.schema-faq-question::before,
body.single-post .wp-block-yoast-faq-block
.schema-faq-question::after {
    content: none !important;
}

/* Answers */
body.single-post .wp-block-yoast-faq-block
.schema-faq-answer {
    display: block;
    padding: 16px 20px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #4a5565 !important;
    font-size: 15px;
    line-height: 1.7;
    border: 0 !important;
}

body.single-post .wp-block-yoast-faq-block
.schema-faq-answer p {
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
    body.single-post .wp-block-yoast-faq-block
    .schema-faq-question {
        padding: 15px 16px !important;
        font-size: 15px;
    }

    body.single-post .wp-block-yoast-faq-block
    .schema-faq-answer {
        padding: 14px 16px !important;
        font-size: 14px;
    }
}

/* CYCLING247 — enforce navigation colours across all page types */

html body .c247-header .c247-header-inner .c247-header-nav a,
html body .c247-header .c247-header-inner .c247-header-nav a:link,
html body .c247-header .c247-header-inner .c247-header-nav a:visited,
html body .c247-header .c247-header-inner .c247-header-nav a:active,
html body .c247-header .c247-header-inner .c247-header-nav a[aria-current] {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
}

html body .c247-header .c247-header-inner .c247-header-nav a:hover,
html body .c247-header .c247-header-inner .c247-header-nav a:focus-visible {
    color: #d10b51 !important;
}

/* CYCLING247 — active navigation underline */
.c247-header-nav a {
    position: relative;
    padding-bottom: 8px;
}

.c247-header-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d10b51;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.c247-header-nav a:hover::after,
body.c247-nav-news .c247-header-nav a:nth-child(1)::after,
body.c247-nav-road .c247-header-nav a:nth-child(2)::after,
body.c247-nav-gravel .c247-header-nav a:nth-child(3)::after,
body.c247-nav-indoor .c247-header-nav a:nth-child(4)::after,
body.c247-nav-training .c247-header-nav a:nth-child(5)::after,
body.c247-nav-gear .c247-header-nav a:nth-child(6)::after,
body.c247-nav-racing .c247-header-nav a:nth-child(7)::after {
    transform: scaleX(1);
}


/* CYCLING247 — Category archive hero */

body.category .c247-category-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 340px;
    width: 100%;
    background-color: #171c25;
    background-image:
        linear-gradient(
            90deg,
            rgba(12, 17, 26, .94) 0%,
            rgba(12, 17, 26, .80) 45%,
            rgba(12, 17, 26, .40) 100%
        ),
        var(--c247-category-image, linear-gradient(125deg, #252e3d, #11151c));
    background-size: cover;
    background-position: center;
    color: #fff;
}

body.category .c247-category-hero__inner {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 24px;
}

body.category .c247-category-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

body.category .c247-category-hero__eyebrow span {
    width: 28px;
    height: 3px;
    background: #d10b51;
}

body.category .c247-category-hero__title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    color: #fff !important;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    text-transform: none;
}

body.category .c247-category-hero__description {
    max-width: 660px;
    font-size: 17px;
    line-height: 1.7;
    color: #e3e7ed;
}

body.category .c247-category-hero__description p {
    margin: 0 0 12px;
}

/* Hide the legacy archive loop's duplicate title */
body.category .gb-headline-43a9d7d4 {
    display: none !important;
}

@media (max-width: 767px) {
    body.category .c247-category-hero {
        min-height: 260px;
    }

    body.category .c247-category-hero__inner {
        padding: 42px 20px;
    }

    body.category .c247-category-hero__title {
        font-size: clamp(32px, 9vw, 46px);
    }

    body.category .c247-category-hero__description {
        font-size: 15px;
    }
}

/* CYCLING247 — full-width category archives */

body.category #primary,
body.category .content-area {
    width: 100% !important;
    float: none !important;
}

body.category #right-sidebar,
body.category #left-sidebar,
body.category .widget-area.sidebar {
    display: none !important;
}

body.category .site-content {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Existing GenerateBlocks archive loop — three columns */
@media (min-width: 1025px) {
    body.category .gb-grid-wrapper-e86dd12b {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 28px !important;
    }

    body.category .gb-grid-wrapper-e86dd12b > .gb-grid-column,
    body.category .gb-grid-wrapper-e86dd12b > .gb-container {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.category .gb-grid-wrapper-e86dd12b {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px !important;
    }
}

@media (max-width: 767px) {
    body.category .site-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.category .gb-grid-wrapper-e86dd12b {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* CYCLING247 — fix dark footer navigation links */
.c247-footer a,
.c247-footer a:link,
.c247-footer a:visited {
    color: #d1d5db !important;
}

.c247-footer a:hover {
    color: #ffffff !important;
}

/* CYCLING247 — hero carousel bottom tab typography */
body.home button.c247-hero-tab {
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

@media (max-width: 767px) {
    body.home button.c247-hero-tab {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}
