:root {
    --jgpc-home-purple: #6d46c7;
    --jgpc-home-purple-dark: #4e2d9f;
    --jgpc-home-purple-pale: #f3efff;
    --jgpc-home-ink: #17161b;
    --jgpc-home-muted: #706d79;
    --jgpc-home-line: #e9e6ef;
    --jgpc-home-card: #fff;
    --jgpc-home-soft: #faf9fc;
    --jgpc-home-shadow: 0 10px 30px rgba(32, 22, 58, .08);
}

body.jgpc-home-page #commonHeader {
    display: none !important;
}

.jgpc-home-gallery,
.jgpc-home-gallery * {
    box-sizing: border-box;
}

.jgpc-home-gallery {
    width: 100%;
    overflow: hidden;
    color: var(--jgpc-home-ink);
    font-family: inherit;
    line-height: 1.55;
}

.jgpc-home-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.jgpc-home-sitebar {
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--jgpc-home-line);
}

.jgpc-home-sitebar__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.jgpc-home-brand {
    flex: 0 0 auto;
    color: var(--jgpc-home-ink) !important;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.035em;
    text-decoration: none !important;
}

.jgpc-home-brand strong {
    font-weight: 850;
}

.jgpc-home-nav {
    display: flex;
    align-items: stretch;
    gap: 30px;
    min-height: 68px;
}

.jgpc-home-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #514d57 !important;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .01em;
    text-decoration: none !important;
}

.jgpc-home-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--jgpc-home-purple);
    opacity: 0;
    transform: scaleX(.65);
    transition: opacity .18s ease, transform .18s ease;
}

.jgpc-home-nav a:hover,
.jgpc-home-nav a:focus-visible,
.jgpc-home-nav a.is-current {
    color: var(--jgpc-home-purple-dark) !important;
}

.jgpc-home-nav a:hover::after,
.jgpc-home-nav a:focus-visible::after,
.jgpc-home-nav a.is-current::after {
    opacity: 1;
    transform: scaleX(1);
}

.jgpc-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(156, 118, 244, .17), transparent 35%),
        radial-gradient(circle at 82% 0%, rgba(205, 185, 255, .27), transparent 34%),
        linear-gradient(180deg, #fbf9ff 0%, #fff 100%);
    border-bottom: 1px solid rgba(109, 70, 199, .06);
}

.jgpc-home-hero__shape {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(109,70,199,.09);
    border-radius: 999px;
    pointer-events: none;
}

.jgpc-home-hero__shape--a {
    width: 720px;
    height: 250px;
    left: -220px;
    top: 30px;
    transform: rotate(-8deg);
}

.jgpc-home-hero__shape--b {
    width: 650px;
    height: 210px;
    right: -200px;
    top: 45px;
    transform: rotate(8deg);
}

.jgpc-home-hero__inner {
    min-height: 355px;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: stretch;
}

.jgpc-home-hero__copy {
    position: relative;
    z-index: 2;
    align-self: center;
    padding: 44px 20px 44px 0;
}

.jgpc-home-hero h1 {
    margin: 0;
    max-width: 640px;
    color: var(--jgpc-home-ink);
    font-size: clamp(42px, 4.5vw, 62px);
    line-height: 1.04;
    letter-spacing: -.042em;
}

.jgpc-home-hero__copy p {
    max-width: 510px;
    margin: 20px 0 26px;
    color: #55515c;
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.65;
}

.jgpc-home-primary-button,
.jgpc-home-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 48px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .01em;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.jgpc-home-primary-button {
    min-width: 215px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--jgpc-home-purple), var(--jgpc-home-purple-dark));
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(109,70,199,.24);
}

.jgpc-home-primary-button:hover,
.jgpc-home-primary-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 13px 30px rgba(109,70,199,.29);
}

.jgpc-home-hero__media {
    position: relative;
    align-self: stretch;
    min-width: 0;
    overflow: hidden;
}

.jgpc-home-hero__media::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, #f8f5ff 0%, rgba(248,245,255,.48) 19%, rgba(248,245,255,0) 47%);
    pointer-events: none;
}

.jgpc-home-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 355px;
    object-fit: cover;
    object-position: center 22%;
    transform: scale(1.02);
}

.jgpc-home-hero__media.is-empty {
    display: grid;
    place-items: center;
    color: var(--jgpc-home-purple);
    font-weight: 800;
}

.jgpc-home-content {
    padding: 6px 0 54px;
}

.jgpc-home-section {
    margin-top: 48px;
}

.jgpc-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.jgpc-home-section-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 8px;
    color: var(--jgpc-home-ink);
    font-size: clamp(23px, 2.3vw, 30px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.jgpc-home-section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    border-radius: 2px;
    background: var(--jgpc-home-purple);
}

.jgpc-home-section-heading > a {
    flex: 0 0 auto;
    margin-bottom: 7px;
    color: var(--jgpc-home-purple-dark) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.jgpc-home-popular-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jgpc-home-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
}

.jgpc-home-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--jgpc-home-line);
    border-radius: 12px;
    background: var(--jgpc-home-card);
    box-shadow: var(--jgpc-home-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.jgpc-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 34px rgba(32,22,58,.11);
}

.jgpc-home-card__link {
    display: block;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
}

.jgpc-home-card__media {
    overflow: hidden;
    background: var(--jgpc-home-soft);
}

.jgpc-home-card--popular .jgpc-home-card__media {
    aspect-ratio: 16 / 8.2;
}

.jgpc-home-card--latest .jgpc-home-card__media {
    aspect-ratio: 16 / 9;
}

.jgpc-home-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.jgpc-home-card:hover .jgpc-home-card__media img {
    transform: scale(1.025);
}

.jgpc-home-card__media.is-empty {
    display: grid;
    place-items: center;
    min-height: 160px;
    color: var(--jgpc-home-purple);
    font-weight: 800;
}

.jgpc-home-card__body {
    padding: 13px 14px 15px;
}

.jgpc-home-card__category {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 7px;
    padding: 3px 9px;
    border: 1px solid #ded2fa;
    border-radius: 999px;
    background: #faf7ff;
    color: var(--jgpc-home-purple);
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jgpc-home-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--jgpc-home-ink);
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.jgpc-home-card--latest h3 {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.jgpc-home-card time {
    display: block;
    margin-top: 11px;
    color: #96919d;
    font-size: 11px;
    letter-spacing: .08em;
}

.jgpc-home-series-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.jgpc-home-series-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 10px;
    background: #ece8f4;
    box-shadow: 0 8px 24px rgba(32,22,58,.07);
    color: #fff !important;
    text-decoration: none !important;
}

.jgpc-home-series-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform .35s ease;
}

.jgpc-home-series-card:hover img {
    transform: scale(1.035);
}

.jgpc-home-series-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,8,16,.02) 25%, rgba(15,12,22,.72) 100%);
}

.jgpc-home-series-card__name {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 16px;
    bottom: 15px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    text-shadow: 0 2px 9px rgba(0,0,0,.4);
}

.jgpc-home-centered-cta,
.jgpc-home-mobile-cta {
    text-align: center;
}

.jgpc-home-centered-cta {
    margin-top: 16px;
}

.jgpc-home-outline-button {
    min-width: 220px;
    padding: 10px 20px;
    border: 1px solid var(--jgpc-home-purple);
    background: #fff;
    color: var(--jgpc-home-purple-dark) !important;
}

.jgpc-home-outline-button:hover,
.jgpc-home-outline-button:focus-visible {
    transform: translateY(-1px);
    background: #faf7ff;
    box-shadow: 0 8px 22px rgba(109,70,199,.10);
}

.jgpc-home-mobile-cta {
    display: none;
    margin-top: 16px;
}

.jgpc-home-why {
    padding: 20px 22px 18px;
    border: 1px solid var(--jgpc-home-line);
    border-radius: 15px;
    background: linear-gradient(180deg, #fff 0%, #fcfaff 100%);
}

.jgpc-home-why .jgpc-home-section-heading {
    margin-bottom: 13px;
}

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

.jgpc-home-why-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

.jgpc-home-why-item__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--jgpc-home-purple-pale);
    color: var(--jgpc-home-purple);
}

.jgpc-home-why-item__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.jgpc-home-why-item h3 {
    margin: 1px 0 5px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
}

.jgpc-home-why-item p {
    margin: 0 !important;
    color: var(--jgpc-home-muted);
    font-size: 12px;
    line-height: 1.55;
}

.jgpc-home-why__cta {
    margin-top: 15px;
    text-align: right;
}

.jgpc-home-why__cta .jgpc-home-outline-button {
    min-width: 205px;
    min-height: 43px;
    font-size: 13px;
}

.jgpc-home-affiliate {
    margin: -7px 0 13px;
    color: #7d7885;
    font-size: 11px;
}

.jgpc-home-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.jgpc-home-product {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 104px;
    overflow: hidden;
    border: 1px solid var(--jgpc-home-line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(32,22,58,.055);
    color: inherit !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.jgpc-home-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(32,22,58,.09);
}

.jgpc-home-product__media {
    overflow: hidden;
    background: var(--jgpc-home-soft);
}

.jgpc-home-product__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jgpc-home-product__media.is-empty {
    display: grid;
    place-items: center;
    color: var(--jgpc-home-purple);
    font-size: 12px;
    font-weight: 800;
}

.jgpc-home-product__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 13px;
}

.jgpc-home-product__brand {
    margin-bottom: 3px;
    color: #797480;
    font-size: 10px;
}

.jgpc-home-product strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--jgpc-home-ink);
    font-size: 13px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.jgpc-home-product__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    color: #8b8690;
    font-size: 10px;
}

.jgpc-home-product__meta b {
    color: #2456b8;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .jgpc-home-latest-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .jgpc-home-card--latest .jgpc-home-card__media {
        aspect-ratio: 16 / 10;
    }

    .jgpc-home-card--latest h3 {
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    .jgpc-home-container {
        width: min(100% - 28px, 1240px);
    }

    .jgpc-home-sitebar__inner {
        min-height: 64px;
    }

    .jgpc-home-brand {
        font-size: 20px;
    }

    .jgpc-home-nav {
        min-height: 64px;
        gap: 24px;
    }

    .jgpc-home-nav a {
        font-size: 12px;
    }

    .jgpc-home-nav a:first-child,
    .jgpc-home-nav a:last-child {
        display: none;
    }

    .jgpc-home-hero__inner {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .jgpc-home-hero__copy {
        padding: 38px 10px 28px;
        text-align: center;
    }

    .jgpc-home-hero h1 {
        font-size: clamp(39px, 10vw, 52px);
        line-height: 1.03;
    }

    .jgpc-home-hero h1 br {
        display: none;
    }

    .jgpc-home-hero__copy p {
        max-width: 620px;
        margin: 17px auto 22px;
        font-size: 15px;
    }

    .jgpc-home-hero__media {
        height: 280px;
    }

    .jgpc-home-hero__media::before {
        background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 25%);
    }

    .jgpc-home-hero__media img {
        min-height: 280px;
        object-position: center 24%;
    }

    .jgpc-home-popular-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .jgpc-home-card--popular .jgpc-home-card__link {
        display: grid;
        grid-template-columns: 42% 58%;
        min-height: 170px;
    }

    .jgpc-home-card--popular .jgpc-home-card__media {
        aspect-ratio: auto;
        min-height: 170px;
    }

    .jgpc-home-card--popular .jgpc-home-card__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .jgpc-home-latest-grid {
        display: flex;
        margin-right: -14px;
        padding-right: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .jgpc-home-latest-grid::-webkit-scrollbar {
        display: none;
    }

    .jgpc-home-card--latest {
        flex: 0 0 64%;
        scroll-snap-align: start;
    }

    .jgpc-home-card--latest .jgpc-home-card__media {
        aspect-ratio: 10 / 9;
    }

    .jgpc-home-series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .jgpc-home-series-card,
    .jgpc-home-series-card img {
        min-height: 165px;
    }

    .jgpc-home-series-card__name {
        left: 13px;
        bottom: 12px;
        font-size: 18px;
    }

    .jgpc-home-why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .jgpc-home-shop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .jgpc-home-container {
        width: calc(100% - 28px);
    }

    .jgpc-home-content {
        padding-top: 0;
        padding-bottom: 24px;
    }

    .jgpc-home-section {
        margin-top: 40px;
    }

    .jgpc-home-section-heading {
        margin-bottom: 14px;
    }

    .jgpc-home-section-heading h2 {
        font-size: 26px;
    }

    .jgpc-home-section-heading > a {
        display: none;
    }

    .jgpc-home-hero__copy {
        padding-top: 34px;
        padding-bottom: 24px;
    }

    .jgpc-home-hero h1 {
        font-size: 40px;
    }

    .jgpc-home-hero__copy p {
        font-size: 14px;
        line-height: 1.6;
    }

    .jgpc-home-primary-button {
        width: min(100%, 280px);
    }

    .jgpc-home-hero__media {
        height: 235px;
    }

    .jgpc-home-hero__media img {
        min-height: 235px;
    }

    .jgpc-home-card--popular .jgpc-home-card__link {
        min-height: 150px;
    }

    .jgpc-home-card--popular .jgpc-home-card__media {
        min-height: 150px;
    }

    .jgpc-home-card--popular h3 {
        font-size: 14px;
    }

    .jgpc-home-card--latest {
        flex-basis: 73%;
    }

    .jgpc-home-mobile-cta {
        display: block;
    }

    .jgpc-home-mobile-cta .jgpc-home-outline-button,
    .jgpc-home-centered-cta .jgpc-home-outline-button {
        width: min(100%, 310px);
    }

    .jgpc-home-why {
        padding: 18px;
    }

    .jgpc-home-why-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .jgpc-home-why-item {
        gap: 12px;
        padding: 11px 0;
    }

    .jgpc-home-why-item__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .jgpc-home-why-item h3 {
        font-size: 16px !important;
    }

    .jgpc-home-why-item p {
        font-size: 12px;
    }

    .jgpc-home-why__cta {
        margin-top: 10px;
        text-align: center;
    }

    .jgpc-home-why__cta .jgpc-home-outline-button {
        width: 100%;
    }

    .jgpc-home-affiliate {
        line-height: 1.55;
    }

    .jgpc-home-product {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jgpc-home-gallery *,
    .jgpc-home-gallery *::before,
    .jgpc-home-gallery *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* v1.2.0: dynamic 30-day WP Popular Posts ranking label */
.jgpc-home-popular-note {
    margin: -8px 0 14px;
    color: var(--jgpc-home-muted);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .04em;
}

@media (max-width: 767px) {
    .jgpc-home-popular-note {
        margin: -6px 0 12px;
        font-size: 11px;
    }
}
