/*
Theme Name: GP Card Blog
Theme URI: https://example.com
Description: Magazine child theme for GeneratePress. Editorial 5-post hero + card grid.
Author: Your Name
Template: generatepress
Version: 1.19.9
Text Domain: gp-card-blog
*/

/* ==========================================================================
   1. VARIABLES
   ========================================================================== */

:root {
    --gp-accent: #2ea44f;
    --gp-accent-hover: #22863a;
    --gp-text: #111111;
    --gp-text-muted: #555555;
    --gp-line: #e6e6e6;
    --gp-bg: #ffffff;
    --gp-radius: 2px;
    --gp-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --gp-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--gp-sans);
    color: var(--gp-text);
    background: var(--gp-bg);
}

/* Logo — upload in Customizer → Site Identity */
.gp-logo-center .inside-header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gp-logo-center .site-branding,
.gp-logo-center .site-logo,
.gp-logo-center .header-widget {
    float: none !important;
    margin-left: auto;
    margin-right: auto;
}

.gp-logo-center .main-navigation .inside-navigation,
.gp-logo-center .main-navigation .menu,
.gp-logo-center .main-navigation ul {
    justify-content: center;
    text-align: center;
}

.site-logo img,
.header-image,
.custom-logo {
    width: auto;
    height: auto;
    max-width: 240px;
}

/* ==========================================================================
   2. WRAPPER + FULL WIDTH HOME
   ========================================================================== */

.card-grid-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 20px 72px;
}

.gp-home {
    max-width: 1240px;
}

.home .site-content .content-area,
.blog .site-content .content-area,
.single .site-content .content-area {
    width: 100% !important;
    max-width: 100% !important;
}

.home #right-sidebar,
.home #left-sidebar,
.blog #right-sidebar,
.blog #left-sidebar,
.single #right-sidebar,
.single #left-sidebar {
    display: none !important;
}

/* ==========================================================================
   3. SECTION TITLES
   ========================================================================== */

.gp-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 40px 0 28px;
    font-family: var(--gp-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--gp-text);
    text-align: center;
}

.gp-section-title::before,
.gp-section-title::after {
    content: "";
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: #d8d8d8;
}

/* ==========================================================================
   3b. CATEGORY CIRCLE STRIP
   ========================================================================== */

.gp-cat-strip {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 72px 0 64px;
    margin-left: calc(50% - 50vw);
    padding: 56px 0 52px;
    background: #eef4ee;
    overflow: hidden;
}

.gp-cat-strip-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 22px;
    max-width: none;
    margin: 0;
    padding: 18px 20px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scrollbar-width: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
}

.gp-cat-strip-inner::after {
    content: "";
    flex: 0 0 12px;
}

.gp-cat-strip-inner::-webkit-scrollbar {
    display: none;
}

.gp-cat-item {
    flex: 0 0 auto;
    width: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.gp-cat-avatar {
    display: block;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(46, 164, 79, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gp-cat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gp-cat-item:hover .gp-cat-avatar {
    transform: translateY(-3px);
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gp-accent);
}

.gp-cat-item:hover .gp-cat-avatar img {
    transform: scale(1.06);
}

.gp-cat-name {
    display: block;
    margin-top: 14px;
    width: 100%;
    max-width: 124px;
    font-family: var(--gp-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--gp-text);
}

.gp-cat-item:hover .gp-cat-name {
    color: var(--gp-accent);
}

@media (min-width: 1024px) {
    .gp-cat-strip-inner {
        justify-content: center;
        max-width: 1240px;
        margin: 0 auto;
        gap: 40px;
        overflow-x: visible;
        touch-action: auto;
    }

    .gp-cat-strip-inner::after {
        display: none;
    }
}

@media (min-width: 900px) {
    .gp-cat-item {
        width: 148px;
        height: auto;
    }

    .gp-cat-avatar {
        width: 132px;
        height: 132px;
    }

    .gp-cat-name {
        max-width: 148px;
        font-size: 14px;
    }
}

@media (max-width: 1023px) {
    .gp-cat-strip::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 48px;
        pointer-events: none;
        background: linear-gradient(to right, rgba(238, 244, 238, 0), #eef4ee);
    }
}

@media (max-width: 699px) {
    .gp-cat-strip {
        margin: 48px 0 44px;
        margin-left: calc(50% - 50vw);
        padding: 40px 0 36px;
    }

    .gp-cat-strip-inner {
        justify-content: flex-start;
        gap: 16px;
        padding: 16px 20px 12px;
        scroll-padding-left: 20px;
    }

    .gp-cat-item {
        height: auto;
        width: 100px;
    }

    .gp-cat-avatar {
        width: 88px;
        height: 88px;
    }

    .gp-cat-name {
        font-size: 12px;
        letter-spacing: 0.03em;
        max-width: 100px;
    }
}

/* ==========================================================================
   4. EDITORIAL HERO  (left 2 + center + right 2)
   ========================================================================== */

.gp-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 28px;
    align-items: start;
}

.gp-hero-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Featured first on phones */
.gp-hero-center {
    order: -1;
}

.gp-cat {
    display: block;
    margin: 12px 0 8px;
    color: var(--gp-accent);
    font-family: var(--gp-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gp-by {
    display: block;
    margin-top: 10px;
    color: #222;
    font-family: var(--gp-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Center featured --- */

.gp-hero-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gp-hero-main-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ececec;
}

.gp-hero-main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gp-hero-main-link:hover .gp-hero-main-media img {
    transform: scale(1.03);
}

.gp-hero-main-title {
    margin: 0 0 12px;
    font-family: var(--gp-serif);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--gp-text);
}

.gp-hero-main-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 12px;
    background: var(--gp-accent);
}

.gp-hero-main-excerpt {
    margin: 0;
    max-width: 38em;
    font-size: 16px;
    line-height: 1.55;
    color: var(--gp-text-muted);
}

/* --- Side cards --- */

.gp-hero-side-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gp-hero-side-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ececec;
}

.gp-hero-side-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gp-hero-side-link:hover .gp-hero-side-media img {
    transform: scale(1.04);
}

.gp-hero-side-title {
    margin: 0;
    font-family: var(--gp-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--gp-text);
}

.gp-hero-side-title::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 10px;
    background: var(--gp-accent);
}

.gp-hero-side + .gp-hero-side {
    padding-top: 4px;
    border-top: 1px solid var(--gp-line);
}

/* Tablet: featured full width, then 2-col side cards */
@media (min-width: 700px) {
    .gp-hero {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .gp-hero-center {
        grid-column: 1 / -1;
        order: -1;
    }

    .gp-hero-left,
    .gp-hero-right {
        gap: 28px;
    }
}

/* Desktop: 3 columns like ThriveNaija */
@media (min-width: 1024px) {
    .gp-hero {
        grid-template-columns: minmax(210px, 1fr) minmax(420px, 2.35fr) minmax(210px, 1fr);
        gap: 0 32px;
        align-items: start;
    }

    .gp-hero-center {
        grid-column: auto;
        order: 0;
    }

    .gp-hero-left,
    .gp-hero-right {
        gap: 32px;
    }

    .gp-hero-side + .gp-hero-side {
        padding-top: 32px;
        border-top: 1px solid var(--gp-line);
    }

    .gp-hero-main-media {
        aspect-ratio: 16 / 9.2;
    }

    .gp-hero-side-title {
        font-size: 21px;
    }
}

/* ==========================================================================
   5. LATEST CARD GRID
   ========================================================================== */

.post-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 560px) {
    .post-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .post-card-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

@media (min-width: 1100px) {
    .post-card-grid { grid-template-columns: repeat(4, 1fr); }
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.post-card-thumb {
    position: relative;
    width: 100%;
}

.post-card-media {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ececec;
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-media img {
    transform: scale(1.05);
}

.post-card-category {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 2;
    background: var(--gp-accent);
    color: #fff;
    font-family: var(--gp-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.12);
}

.post-card-category:hover,
.post-card-category:focus {
    background: var(--gp-accent-hover);
    color: #fff;
}

.post-card-body {
    padding: 26px 4px 8px;
    flex: 1;
}

.post-card-title {
    font-family: var(--gp-serif);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 7px;
    color: var(--gp-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--gp-accent);
}

.post-card-excerpt {
    font-size: 13.5px;
    color: var(--gp-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   6. LOAD MORE
   ========================================================================== */

.card-grid-pagination {
    display: none;
}

.home .paging-navigation,
.home nav.pagination,
.home .page-nav,
.blog .paging-navigation,
.blog nav.pagination {
    display: none !important;
}

.gp-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.gp-load-more {
    appearance: none;
    border: 0;
    cursor: pointer;
    min-height: 46px;
    padding: 0 32px;
    background: #111;
    color: #fff;
    font-family: var(--gp-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.gp-load-more:hover,
.gp-load-more:focus {
    background: var(--gp-accent);
}

.gp-load-more:disabled,
.gp-load-more.is-loading {
    opacity: 0.65;
    cursor: wait;
}

/* ==========================================================================
   7. SINGLE POST
   ========================================================================== */

.single .entry-header,
.single .featured-image,
.single .page-header-image-single,
.single .paging-navigation,
.single nav.post-navigation {
    display: none !important;
}

.single .inside-article {
    padding: 0 !important;
}

.single .site-main {
    margin: 0;
}

.gp-article {
    padding-bottom: 72px;
}

.gp-split {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1240px;
    margin: 0 auto 40px;
}

.gp-split-copy {
    background: #f4efe8;
    padding: 36px 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gp-split-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gp-text-muted);
}

.gp-split-cat {
    color: var(--gp-accent);
    text-decoration: none;
}

.gp-split-cat:hover {
    color: var(--gp-accent-hover);
}

.gp-split-title {
    font-family: var(--gp-serif);
    font-size: clamp(28px, 4.4vw, 48px);
    line-height: 1.12;
    font-weight: 700;
    margin: 0 0 22px;
    color: var(--gp-text);
}

.gp-split-byline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gp-split-byline img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.gp-split-author {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
}

.gp-split-author:hover,
.gp-author-info h4 a:hover {
    color: var(--gp-accent);
}

.gp-split-avatar {
    display: block;
    line-height: 0;
}

.gp-author-info h4 a {
    color: inherit;
    text-decoration: none;
}

.gp-split-byline time {
    display: block;
    font-size: 12px;
    color: var(--gp-text-muted);
}

.gp-share-inline {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-share-inline a,
.gp-share-rail a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: var(--gp-text);
    text-decoration: none;
}

.gp-share-inline a:hover,
.gp-share-rail a:hover {
    color: #fff;
}

.gp-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.gp-share-x:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.gp-share-pinterest:hover {
    background: #e60023;
    border-color: #e60023;
    color: #fff;
}

.gp-split-media {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 280px;
    background: #ececec;
}

.gp-split-media.has-two {
    grid-template-columns: 1fr 1fr;
}

.gp-split-photo {
    overflow: hidden;
    min-height: 280px;
    position: relative;
}

.gp-pin-wrap {
    position: relative;
    display: block;
}

.gp-pin-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.gp-split-photo .gp-pin-wrap,
.gp-split-photo .gp-pin-wrap img {
    height: 100%;
    min-height: 280px;
}

.gp-split-photo .gp-pin-wrap img {
    object-fit: cover;
}

.gp-pin-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e60023;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.gp-pin-btn svg {
    display: block;
}

.gp-pin-wrap:hover .gp-pin-btn,
.gp-pin-wrap:focus-within .gp-pin-btn {
    opacity: 1;
    transform: none;
}

.gp-pin-btn:hover {
    background: #ad081b;
}

@media (hover: none) {
    .gp-pin-btn {
        opacity: 1;
        transform: none;
    }
}

.gp-split-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.gp-article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.gp-share-rail {
    display: none;
}

.gp-share-label {
    display: block;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gp-text-muted);
}

.gp-toc {
    width: 100%;
    max-width: 100%;
    margin: 0 0 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gp-line);
    box-sizing: border-box;
}

.gp-toc-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    cursor: pointer;
    list-style: none;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0 8px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gp-toc-summary::-webkit-details-marker,
.gp-toc-summary::marker {
    display: none;
}

.gp-toc-title {
    min-width: 0;
    max-width: 100%;
    font-family: var(--gp-serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    border-bottom: 2px solid var(--gp-accent);
    padding-bottom: 4px;
    color: var(--gp-text);
    overflow-wrap: anywhere;
}

.gp-toc-state {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: max-content;
    margin-left: auto;
    gap: 5px;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1.2;
    color: var(--gp-text);
    user-select: none;
}

.gp-toc-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.gp-toc-arrow.is-up {
    transform: rotate(-135deg) translateY(-1px);
}

.gp-toc-hide {
    display: none;
}

.gp-toc[open] .gp-toc-show {
    display: none;
}

.gp-toc[open] .gp-toc-hide {
    display: inline-flex;
    align-items: center;
}

.gp-toc-show {
    display: inline-flex;
    align-items: center;
}

.gp-toc-list {
    display: none;
    grid-template-columns: 1fr;
    gap: 10px 28px;
    list-style: none;
    margin: 18px 0 10px;
    padding: 0;
}

.gp-toc[open] .gp-toc-list {
    display: grid;
}

.gp-toc-list a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--gp-accent);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
}

.gp-toc-list a:hover {
    color: var(--gp-accent-hover);
}

.gp-toc-list span {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--gp-text-muted);
    margin-top: 1px;
}

.gp-single-content {
    font-size: 17px;
    line-height: 1.75;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

.gp-single-content h2,
.gp-single-content h3 {
    font-family: var(--gp-serif);
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: var(--gp-text);
    scroll-margin-top: 96px;
}

.gp-single-content p { margin-bottom: 1.4em; }

.gp-single-content img { width: 100%; height: auto; }

.gp-trending-title {
    margin: 0 0 8px;
    font-family: var(--gp-serif);
    font-size: 22px;
    font-weight: 600;
}

.gp-trending-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-trending-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gp-line);
}

.gp-trending-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ececec;
}

.gp-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gp-trending-num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-trending-cat {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gp-accent);
    text-decoration: none;
}

.gp-trending-name {
    font-family: var(--gp-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gp-text);
    text-decoration: none;
}

.gp-trending-name:hover {
    color: var(--gp-accent);
}

.gp-author-box {
    display: flex;
    gap: 20px;
    margin: 48px 0 36px;
    padding: 24px;
    background: #fafafa;
    border: 1px solid var(--gp-line);
}

.gp-author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.gp-author-info h4 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.gp-author-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--gp-text-muted);
}

@media (max-width: 799px) {
    .gp-split {
        margin: 8px 16px 28px;
        overflow: hidden;
    }

    .gp-split-copy {
        align-items: center;
        text-align: center;
        padding: 28px 20px 24px;
    }

    .gp-split-kicker,
    .gp-split-byline,
    .gp-share-inline {
        justify-content: center;
    }

    .gp-split-title {
        font-size: 26px;
        line-height: 1.18;
    }

    .gp-split-media.has-two {
        grid-template-columns: 1fr;
    }

    .gp-split-photo,
    .gp-split-photo img {
        min-height: 220px;
        max-height: 320px;
    }

    .gp-article-layout {
        padding: 0 16px;
        gap: 28px;
    }

    .gp-toc-title {
        font-size: 20px;
    }

    .gp-single-content {
        font-size: 16px;
    }
}

@media (min-width: 800px) {
    .gp-split {
        grid-template-columns: 1fr 1.15fr;
        min-height: 460px;
    }

    .gp-split-copy {
        padding: 48px 40px;
    }

    .gp-split-photo,
    .gp-split-photo img {
        min-height: 460px;
    }

    .gp-toc-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .gp-article-layout {
        grid-template-columns: 48px minmax(0, 1fr) 280px;
        gap: 28px 36px;
        align-items: start;
    }

    .gp-share-rail {
        display: block;
        position: sticky;
        top: 96px;
    }

    .gp-share-rail ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gp-trending {
        position: sticky;
        top: 88px;
    }
}

@media (max-width: 500px) {
    .gp-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .gp-split-media.has-two {
        grid-template-columns: 1fr;
    }
}

.gp-related {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--gp-line);
}

.gp-related .gp-section-title { margin-top: 0; }

.gp-related .post-card-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .gp-related .post-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .gp-related .post-card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   8. ARCHIVE TITLES
   ========================================================================== */

.card-grid-title {
    font-family: var(--gp-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--gp-text);
    margin: 0 0 32px;
    text-align: center;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-info,
.footer-widgets {
    display: none !important;
}

.gp-site-footer {
    margin-top: 72px;
    background: #111;
    color: #f4f4f4;
}

.gp-footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 20px 40px;
}

.gp-footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    font-family: var(--gp-serif);
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.gp-footer-about {
    max-width: 320px;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #c8c8c8;
}

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

.gp-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #333;
    color: #fff;
    text-decoration: none;
}

.gp-footer-social a:hover {
    border-color: var(--gp-accent);
    background: var(--gp-accent);
}

.gp-footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.gp-footer-heading {
    margin: 0 0 14px;
    font-family: var(--gp-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.gp-footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-footer-widget li {
    margin: 0 0 8px;
}

.gp-footer-widget a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: 14px;
}

.gp-footer-widget a:hover {
    color: #fff;
}

.gp-footer-hint p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

.gp-footer-bar {
    border-top: 1px solid #2a2a2a;
}

.gp-footer-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px 22px;
}

.gp-footer-copy {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.gp-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gp-footer-legal a {
    color: #888;
    text-decoration: none;
    font-size: 12px;
}

.gp-footer-legal a:hover {
    color: #fff;
}

@media (min-width: 700px) {
    .gp-footer-cols {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 960px) {
    .gp-footer-inner {
        grid-template-columns: 1.2fr 2fr;
        gap: 64px;
        padding: 72px 20px 48px;
        align-items: start;
    }

    .gp-footer-bar-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}


/* ==========================================================================
   RESPONSIVE SAFETY PATCH — v1.19.1
   Keeps single-post content and TOC controls inside the viewport.
   ========================================================================== */

.gp-article,
.gp-article-layout,
.gp-article-main,
.gp-single-content {
    max-width: 100%;
    box-sizing: border-box;
}

.gp-article-main {
    min-width: 0;
    width: 100%;
}

.gp-single-content img,
.gp-single-content figure,
.gp-single-content video,
.gp-single-content iframe,
.gp-single-content .wp-block-image,
.gp-single-content .wp-block-video,
.gp-single-content .wp-block-embed {
    max-width: 100%;
}

.gp-single-content video,
.gp-single-content img {
    height: auto;
}

.gp-single-content p,
.gp-single-content li,
.gp-single-content a {
    overflow-wrap: break-word;
    word-break: normal;
}

.gp-single-content pre,
.gp-single-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gp-single-content table {
    max-width: 100%;
}

@media (max-width: 799px) {
    .gp-toc-summary {
        column-gap: 10px;
    }

    .gp-toc-state {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .gp-toc {
        margin-bottom: 24px;
    }

    .gp-toc-summary {
        column-gap: 8px;
    }

    .gp-toc-title {
        font-size: 19px;
        line-height: 1.3;
    }

    .gp-toc-state {
        font-size: 13px;
        gap: 4px;
    }

    .gp-toc-arrow {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 340px) {
    .gp-toc-summary {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 10px;
    }

    .gp-toc-state {
        justify-self: end;
        margin-left: 0;
    }
}


/* Comments restored for the custom single-post template. */
.gp-comments-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--gp-line);
    max-width: 100%;
}

.gp-comments-section .comments-title,
.gp-comments-section .comment-reply-title {
    margin-bottom: 24px;
}

.gp-comments-section .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gp-comments-section textarea,
.gp-comments-section input:not([type="submit"]),
.gp-comments-section select {
    max-width: 100%;
    box-sizing: border-box;
}


/* ==========================================================================
   STYLING TIP — GUTENBERG PATTERN
   ========================================================================== */

.gp-styling-tip {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 36px 0;
    padding: 32px 36px 34px;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(circle at 0 0, rgba(205, 139, 118, 0.18), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(213, 169, 151, 0.15), transparent 34%),
        linear-gradient(135deg, #fffaf7 0%, #fffdfb 52%, #fbf1ec 100%);

    border: 1px solid rgba(171, 112, 92, 0.30);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(58, 37, 30, 0.07);
}

.gp-styling-tip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 36px;
    width: 82px;
    height: 4px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(90deg, #9f604e, #d2a18f);
}

.gp-styling-tip::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -70px;
    bottom: -100px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(163, 102, 82, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(163, 102, 82, 0.025),
        0 0 0 48px rgba(163, 102, 82, 0.018);
    pointer-events: none;
}

.gp-styling-tip .gp-styling-tip__label {
    position: relative;
    z-index: 1;
    display: inline-block;
    width: auto;
    margin: 0 0 15px !important;
    padding: 7px 13px;

    background: #efddd6;
    border: 1px solid rgba(145, 86, 68, 0.12);
    border-radius: 999px;

    color: #815043;
    font-family: var(--gp-sans);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gp-styling-tip .gp-styling-tip__text {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 !important;

    color: #29211f;
    font-family: var(--gp-serif);
    font-size: clamp(21px, 2.2vw, 27px);
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: -0.012em;
}

@media (max-width: 520px) {
    .gp-styling-tip {
        margin: 28px 0;
        padding: 27px 22px 29px;
        border-radius: 14px;
    }

    .gp-styling-tip::before {
        left: 22px;
        width: 64px;
    }

    .gp-styling-tip .gp-styling-tip__label {
        margin-bottom: 13px !important;
        font-size: 10px;
    }

    .gp-styling-tip .gp-styling-tip__text {
        font-size: 20px;
        line-height: 1.52;
    }
}

/* ========================================================================== 
   EDITORIAL IMAGE + TEXT BLOCK — reference layout
   ========================================================================== */
.gp-editorial-block {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:16px;
    align-items:start;
    width:100%;
    max-width:100%;
    margin:26px 0 30px;
    padding:0;
    box-sizing:border-box;
}
.gp-editorial-media {
    position:relative;
    width:100%;
    min-width:0;
    margin:0 !important;
    aspect-ratio:4 / 5;
    overflow:hidden;
    background:#f3f3f3;
}
.gp-editorial-media img {
    display:block;
    width:100%;
    height:100%;
    margin:0;
    object-fit:cover;
}
.gp-editorial-content {
    min-width:0;
    padding:0;
}
.gp-editorial-heading {
    margin:0 0 16px !important;
    color:var(--gp-text);
    font-family:var(--gp-sans);
    font-size:26px;
    font-weight:500;
    line-height:1.22;
    letter-spacing:-.025em;
}
.gp-editorial-copy {
    color:var(--gp-text);
    font-family:var(--gp-sans);
    font-size:16px;
    font-weight:400;
    line-height:1.62;
}
.gp-editorial-copy p { margin:0 0 1.55em; }
.gp-editorial-copy p:last-child { margin-bottom:0; }

@media (max-width:680px) {
    .gp-editorial-block,
    .gp-editorial-block.is-right {
        grid-template-columns:1fr;
        gap:14px;
        margin:24px 0 28px;
    }

    /* On small screens always read: title -> image -> description. */
    .gp-editorial-content {
        display:contents;
    }
    .gp-editorial-heading {
        order:1;
        font-size:24px;
        margin:0 0 2px !important;
    }
    .gp-editorial-media,
    .gp-editorial-block.is-right .gp-editorial-media {
        order:2;
    }
    .gp-editorial-copy {
        order:3;
        font-size:16px;
        line-height:1.62;
    }
}
