/* Gainzbook blog - scoped styles. Kept out of style.css so nothing here
   leaks into the rest of the app, and .blog-article-content keeps article
   typography from leaking into the rest of the blog UI either. */

.blog-theme {
    --blog-blue: #00b7fe;
    --blog-green: #00ffc8;
    --blog-container-max: 1200px;
    --blog-pad-desktop: 24px;
    --blog-pad-mobile: 16px;
    background:
        radial-gradient(1200px 800px at 10% -10%, rgba(0, 183, 254, .16) 0%, transparent 55%),
        radial-gradient(1000px 1200px at 100% 10%, rgba(0, 255, 200, .10) 0%, transparent 50%),
        linear-gradient(180deg, #0b1020, #121a31 52%, #172347);
    color: #edf3ff;
    min-height: 100vh;
}

.blog-theme a {
    color: var(--blog-blue);
    text-decoration: none;
}

.blog-theme a:hover {
    color: var(--blog-green);
}

.blog-theme :focus-visible {
    outline: 2px solid var(--blog-green);
    outline-offset: 2px;
    border-radius: 4px;
}

.blog-theme .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-navbar {
    background: rgba(11, 16, 32, .82) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.blog-navbar .blog-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}

.blog-navbar .nav-link {
    color: rgba(237, 243, 255, .82);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.blog-navbar .nav-link.active {
    color: var(--blog-green);
}

.blog-btn-primary {
    background: linear-gradient(135deg, var(--blog-blue), var(--blog-green));
    color: #05131a !important;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.blog-btn-primary:hover {
    filter: brightness(1.08);
    color: #05131a !important;
}

.blog-btn-outline {
    background: transparent;
    color: #edf3ff !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.blog-btn-outline:hover {
    border-color: var(--blog-blue);
    color: var(--blog-blue) !important;
}

.blog-btn-danger {
    background: transparent;
    color: #ff9b9b !important;
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, .45);
    border-radius: 999px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}

.blog-btn-danger:hover {
    background: rgba(239, 68, 68, .12);
    border-color: #ef4444;
    color: #ffd4d4 !important;
}

.blog-btn-sm {
    padding: 6px 14px;
    font-size: .85rem;
    min-height: 40px;
}

.blog-main {
    padding-top: 76px;
}

.blog-container {
    max-width: var(--blog-container-max);
    margin: 0 auto;
    padding: 0 var(--blog-pad-desktop);
}

@media (max-width: 639px) {
    .blog-container {
        padding: 0 var(--blog-pad-mobile);
    }
}

section + section,
.blog-container > * + * {
    margin-top: 0;
}

/* ---------- Header ---------- */
.blog-hero-header {
    position: relative;
    padding: 32px 0 28px;
    text-align: center;
    overflow: hidden;
}

.blog-hero-header::before {
    content: "";
    position: absolute;
    inset: -40px -10% auto -10%;
    height: 220px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(0, 183, 254, .18), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.blog-hero-header h1 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-hero-header p {
    color: rgba(237, 243, 255, .74);
    max-width: 620px;
    margin: 0 auto 20px;
    font-size: 1.02rem;
}

.blog-hero-header .blog-login-hint {
    margin-top: 14px;
    font-size: .9rem;
    color: rgba(237, 243, 255, .6);
}

/* ---------- Featured article ---------- */
.blog-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    background: linear-gradient(180deg, rgba(17, 24, 44, .88), rgba(11, 16, 32, .78));
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    min-height: 360px;
}

.blog-featured-image {
    position: relative;
    display: block;
    min-height: 240px;
    height: 100%;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Branded fallback (no featured image): never stretch/crop the wordmark -
   show it centred at a sane size on a dark brand gradient instead. */
.blog-featured-image.blog-media--fallback,
.blog-card-image.blog-media--fallback {
    background: linear-gradient(135deg, #0d1730, #16233f 55%, #0a1122);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12%;
}

.blog-featured-image.blog-media--fallback img,
.blog-card-image.blog-media--fallback img {
    width: auto;
    height: auto;
    max-width: 65%;
    max-height: 42%;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 183, 254, .18));
}

.blog-featured-body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--blog-blue), var(--blog-green));
    color: #05131a;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    width: fit-content;
}

.blog-featured-body h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.28;
}

.blog-featured-body h2 a {
    color: #fff;
}

.blog-featured-body p.excerpt {
    color: rgba(237, 243, 255, .76);
    margin-bottom: 18px;
}

.blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: .82rem;
    color: rgba(237, 243, 255, .6);
    margin-bottom: 14px;
}

.blog-meta-row .badge-category {
    color: var(--blog-green);
    font-weight: 600;
}

@media (max-width: 767px) {
    .blog-featured {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .blog-featured-image {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .blog-featured-body {
        padding: 24px 20px 28px;
    }
}

/* ---------- Search + filters toolbar ---------- */
.blog-toolbar {
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.blog-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #edf3ff;
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 44px;
}

.blog-search-form input[type="search"]::placeholder {
    color: rgba(237, 243, 255, .45);
}

.blog-search-form button {
    min-height: 44px;
    min-width: 44px;
    flex: 0 0 auto;
}

.blog-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
}

.blog-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.blog-filter-group-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(237, 243, 255, .45);
    margin-right: 2px;
}

.blog-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(237, 243, 255, .8);
    font-size: .85rem;
}

.blog-chip.is-active {
    background: linear-gradient(135deg, var(--blog-blue), var(--blog-green));
    color: #05131a;
    border-color: transparent;
    font-weight: 600;
}

.blog-chip[aria-current="true"],
.blog-chip.is-active {
    box-shadow: 0 0 0 1px rgba(0, 183, 254, .35);
}

@media (max-width: 639px) {
    .blog-toolbar {
        padding: 16px;
    }

    .blog-chip {
        min-height: 44px;
        font-size: .9rem;
    }
}

/* ---------- Card grid ---------- */
/* auto-fit's repeat count is computed from the MAX track size when it's a
   definite length (not the min) - so this max is what actually determines
   the 3/2/1 column breakpoints across the required viewport widths, not
   the min. Verified empirically at 1440/1024/768/430/360. */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 340px));
    justify-content: center;
    gap: 24px;
    margin-bottom: 36px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 340px;
    justify-self: center;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
    position: relative;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(0, 183, 254, .45);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #0d1730;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(5, 19, 26, .85);
    color: var(--blog-green);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 999px;
}

.blog-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    font-size: .78rem;
    color: rgba(237, 243, 255, .55);
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: #edf3ff;
}

.blog-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.blog-card-excerpt {
    color: rgba(237, 243, 255, .68);
    font-size: .92rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-readmore {
    font-weight: 600;
    font-size: .88rem;
    color: var(--blog-blue);
    position: relative;
    z-index: 1;
}

/* ---------- Empty / no-results states ---------- */
.blog-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(237, 243, 255, .68);
    border: 1px dashed rgba(255, 255, 255, .14);
    border-radius: 18px;
    margin-bottom: 36px;
}

.blog-empty-state .actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Pagination ---------- */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 48px;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(237, 243, 255, .8);
}

.blog-pagination a:hover {
    border-color: var(--blog-blue);
    color: var(--blog-blue);
}

.blog-pagination .is-active {
    background: linear-gradient(135deg, var(--blog-blue), var(--blog-green));
    color: #05131a;
    font-weight: 700;
    border-color: transparent;
}

.blog-pagination .is-disabled {
    opacity: .35;
    pointer-events: none;
}

/* ---------- Bottom CTA ---------- */
.blog-cta-band {
    background: linear-gradient(135deg, rgba(0, 183, 254, .14), rgba(0, 255, 200, .1));
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    margin-bottom: 48px;
}

.blog-cta-band h2 {
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-cta-band p {
    color: rgba(237, 243, 255, .76);
    max-width: 560px;
    margin: 0 auto 20px;
}

.blog-cta-band .actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 479px) {
    .blog-cta-band .actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.blog-footer-band {
    padding: 24px 0 40px;
    color: rgba(237, 243, 255, .5);
    font-size: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.blog-footer-band .blog-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ---------- Article page ---------- */
.blog-breadcrumbs {
    font-size: .85rem;
    color: rgba(237, 243, 255, .55);
    margin: 20px 0 20px;
}

.blog-breadcrumbs a {
    color: rgba(237, 243, 255, .7);
}

.blog-article-header {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.blog-article-header h1 {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 14px 0 10px;
}

.blog-article-header .lead {
    color: rgba(237, 243, 255, .74);
    font-size: 1.08rem;
    margin-bottom: 16px;
}

.blog-article-header .blog-meta-row {
    justify-content: center;
    margin-bottom: 0;
}

.blog-article-hero {
    max-width: 1100px;
    margin: 0 auto 36px;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0d1730;
}

.blog-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-article-hero.blog-media--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d1730, #16233f 55%, #0a1122);
    padding: 8%;
}

.blog-article-hero.blog-media--fallback img {
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 45%;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 183, 254, .18));
}

/* ---------- Admin toolbar (compact) ---------- */
.blog-admin-toolbar {
    max-width: 1100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .035);
}

.blog-admin-toolbar-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(0, 183, 254, .85);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}

.blog-admin-toolbar .badge-draft {
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
}

.blog-admin-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

@media (max-width: 639px) {
    .blog-admin-toolbar-actions {
        margin-left: 0;
        width: 100%;
    }
}

/* Scoped article typography - must not leak outside .blog-article-content */
.blog-article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.06rem;
    line-height: 1.75;
    color: rgba(237, 243, 255, .92);
}

.blog-article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.1em 0 .7em;
    color: #fff;
    line-height: 1.3;
}

.blog-article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.7em 0 .6em;
    color: #fff;
    line-height: 1.3;
}

.blog-article-content h4 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 1.5em 0 .5em;
    color: #fff;
}

.blog-article-content h2:first-child,
.blog-article-content h3:first-child,
.blog-article-content h4:first-child {
    margin-top: 0;
}

.blog-article-content p {
    margin: 0 0 1.3em;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1.3em 1.4em;
    padding: 0;
}

.blog-article-content li {
    margin-bottom: .5em;
}

.blog-article-content li > ul,
.blog-article-content li > ol {
    margin-top: .5em;
    margin-bottom: 0;
}

.blog-article-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.blog-article-content strong {
    color: #fff;
    font-weight: 700;
}

.blog-article-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .14);
    margin: 2em 0;
}

.blog-article-content blockquote {
    border-left: 3px solid var(--blog-blue);
    margin: 1.6em 0;
    padding: .4em 0 .4em 1.2em;
    color: rgba(237, 243, 255, .78);
    font-style: italic;
}

/* Tables come from stored article HTML, so there's no wrapper element to
   scroll - the table itself becomes the horizontally-scrollable box
   (display:block on <table> lets the browser generate the anonymous table
   wrapper needed to keep thead/tbody columns aligned while the element
   scrolls independently of the page). */
.blog-article-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    font-size: .95rem;
    margin: 1.6em 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.blog-article-content th,
.blog-article-content td {
    /* min-width on thead/tbody has no effect on the table layout algorithm -
       it has to live on the cells themselves to actually force a column
       width and trigger the table's own horizontal scroll on narrow
       screens (verified: thead/tbody min-width computed but was ignored
       by layout). */
    min-width: 110px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    border-right: 1px solid rgba(255, 255, 255, .06);
    padding: 12px 16px;
    text-align: left;
    white-space: normal;
}

.blog-article-content th:last-child,
.blog-article-content td:last-child {
    border-right: none;
}

.blog-article-content thead th {
    background: rgba(255, 255, 255, .07);
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid rgba(0, 183, 254, .35);
}

.blog-article-content tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .02);
}

.blog-article-content tbody tr:last-child td {
    border-bottom: none;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.4em 0;
}

.blog-article-content figure {
    margin: 1.6em 0;
}

.blog-article-content figcaption,
.blog-article-content .figure-caption {
    font-size: .85rem;
    color: rgba(237, 243, 255, .55);
    text-align: center;
    margin-top: .5em;
}

.blog-article-content code {
    background: rgba(255, 255, 255, .08);
    border-radius: 4px;
    padding: .15em .4em;
    font-size: .92em;
}

.blog-article-content pre {
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 1.4em 0;
}

.blog-article-content pre code {
    background: none;
    padding: 0;
}

/* ---------- Workout table component ---------- */
.blog-article-content .workout-table th:first-child,
.blog-article-content .workout-table td:first-child {
    font-weight: 600;
    color: #fff;
}

.blog-article-content .workout-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.4em 0;
}

.blog-article-content .workout-meta span {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Guidance callouts ---------- */
.blog-article-content .callout {
    border-radius: 12px;
    padding: 16px 18px;
    margin: 1.6em 0;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.blog-article-content .callout strong {
    display: block;
    margin-bottom: 2px;
}

.blog-article-content .callout-tip {
    border-color: rgba(0, 255, 200, .4);
    background: rgba(0, 255, 200, .07);
}

.blog-article-content .callout-tip strong {
    color: var(--blog-green);
}

.blog-article-content .callout-progression {
    border-color: rgba(0, 183, 254, .4);
    background: rgba(0, 183, 254, .07);
}

.blog-article-content .callout-progression strong {
    color: var(--blog-blue);
}

.blog-article-content .callout-warning {
    border-color: rgba(239, 68, 68, .5);
    background: rgba(239, 68, 68, .08);
}

.blog-article-content .callout-warning strong {
    color: #ff9b9b;
}

/* ---------- Article footer: share, prev/next, related, CTA ---------- */
.blog-article-actions {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-article-actions .blog-share-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-article-actions .blog-back-link {
    margin-left: auto;
}

@media (max-width: 479px) {
    .blog-article-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-article-actions .blog-back-link {
        margin-left: 0;
    }
}

.blog-share-status {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.blog-copy-confirm {
    font-size: .85rem;
    color: var(--blog-green);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.blog-prev-next {
    max-width: 1100px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.blog-prev-next.blog-prev-next--single a {
    grid-column: 1 / -1;
}

@media (max-width: 639px) {
    .blog-prev-next {
        grid-template-columns: 1fr;
    }
}

.blog-prev-next a {
    display: block;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: #edf3ff;
    transition: border-color .2s ease, transform .2s ease;
}

.blog-prev-next a:hover,
.blog-prev-next a:focus-visible {
    border-color: rgba(0, 183, 254, .45);
    transform: translateY(-2px);
}

.blog-prev-next .prev-next-next {
    text-align: right;
}

@media (max-width: 639px) {
    .blog-prev-next .prev-next-next {
        text-align: left;
    }
}

.blog-prev-next .direction {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(237, 243, 255, .5);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.blog-prev-next .prev-next-next .direction {
    justify-content: flex-end;
}

@media (max-width: 639px) {
    .blog-prev-next .prev-next-next .direction {
        justify-content: flex-start;
    }
}

.blog-prev-next .prev-next-title {
    font-weight: 600;
}

.blog-related {
    max-width: 1100px;
    margin: 48px auto 0;
}

.blog-related h2 {
    text-align: center;
    font-weight: 800;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.blog-workout-cta {
    max-width: 800px;
    margin: 48px auto 0;
    background: linear-gradient(135deg, rgba(0, 183, 254, .14), rgba(0, 255, 200, .1));
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 24px 28px;
    text-align: center;
}

.blog-workout-cta h2 {
    margin-bottom: 8px;
}
