.gjf-book-page {
    color: #171717;
    font-family: "Space Grotesk" !important;
}

.gjf-book-page * {
    box-sizing: border-box;
}

.gjf-shell {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: 0 24px;
}

.gjf-hero {
    background: #0d0d0f;
    color: #ffffff;
    padding: 185px 0;
    position: relative;
    overflow: hidden;

}

.gjf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://images.journalspress.com/2026/07/banner-dots.svg');
    background-position: top left;
    background-repeat: no-repeat;
    pointer-events: none;
    left: 13%;
}

.gjf-hero .gjf-shell {
    position: relative;
    z-index: 1;
}


.gjf-metadata-box {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 32px;
    background: transparent;
    margin: 36px 0;
}

.gjf-metadata-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 28px;
    font-weight: 500;
}

.gjf-metadata-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gjf-metadata-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gjf-metadata-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 16px;
}

.gjf-metadata-col:last-child {
    border-right: none;
    padding-right: 0;
}

.gjf-metadata-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.gjf-metadata-val {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    overflow-wrap: anywhere;
}

.gjf-metadata-divider {
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    margin: 4px 0;
}

.gjf-hero-bottom-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 36px 0;
}

.gjf-bottom-meta-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gjf-bottom-meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.gjf-bottom-meta-val {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.gjf-hero-actions-new {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 36px 0;
}

.gjf-btn-figma {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background: transparent;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gjf-btn-figma:hover {
    background: #ffffff;
    color: #0d0d0f !important;
}

.gjf-tags-new {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.gjf-tag-pill {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.gjf-tag-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.gjf-hero-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 56px;
    font-size: 13px;
}

.gjf-brand {
    font-weight: 700;
    margin-right: auto;
}

.gjf-hero-nav nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.gjf-hero-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.gjf-nav-cta {
    background: #0d99ff;
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 700;
}

.gjf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 1fr;
    gap: 60px;
    align-items: center;
}

.gjf-eyebrow {
    margin: 0 0 12px;
    color: #a6abb3;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gjf-hero-copy {
    max-width: 1000px;
}

.gjf-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    line-height: 1.2;
    font-weight: 500;
}

.gjf-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 36px;
}

.gjf-facts {
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: space-between;
}

.gjf-facts .border-bottom {
    border-color: #ffffff7a;
    padding-bottom: 16px;
    margin-bottom: 16px;
}


.gjf-fact {
    min-height: 77px;
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    flex-grow: 1;
}

.gjf-fact:nth-last-child(1) {
    border-right: none;
}

.gjf-fact span {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: "Space Grotesk Semibold";
}

.gjf-fact strong {
    display: block;
    color: #ffffff7a;
    font-size: 13px;
    font-weight: 400;
    font-family: "Space Grotesk";
    overflow-wrap: anywhere;
}

.gjf-hero-actions,
.gjf-tags,
.gjf-pill-row,
.gjf-cite-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gjf-btn,
.gjf-buy-card button {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.gjf-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 3px;
}

.gjf-btn-light {
    background: #fff;
    color: #111;
}

.gjf-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
}

.gjf-tags {
    margin-top: 14px;
}

.gjf-tags span,
.gjf-pill-row span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.78);
    padding: 5px 11px;
    font-size: 11px;
}

.gjf-cover-card {
    justify-self: end;
    width: 100%;
    max-width: 480px;
}

.gjf-cover-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.gjf-cover-placeholder {
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #d9d9d9, #f7f7f7);
}

.gjf-meta-strip {
    background: #fff;
    padding: 48px 0 24px;
}

.gjf-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e8e8e8;
    background: #fff;
}

.gjf-meta-grid div {
    padding: 18px 28px;
    min-height: 86px;
    border-right: 1px solid #e8e8e8;
}

.gjf-meta-grid div:last-child {
    border-right: 0;
}

.gjf-side-card h2 {
    display: block;
    font-size: 20px;
    margin-bottom: 20px;
}

.gjf-meta-grid strong {
    color: #161616;
    font-size: 14px;
}

.gjf-content-wrap {
    padding: 16px 0 90px;
}

.gjf-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 84px;
    align-items: start;
}

.gjf-main {
    min-width: 0;
}

.gjf-section {
    padding: 35px 0;
}

.gjf-section h2 {
    margin: 0 0 16px;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
}

.gjf-rich-text,
.gjf-accordion-list,
.gjf-citation,
.gjf-section p {
    color: #4b4f55;
    font-size: 20px;
    line-height: 1.75;
}

.gjf-rich-text p,
.gjf-section p {
    margin: 0 0 14px;
}

.gjf-author-list {
    display: grid;
    gap: 14px;
}

.gjf-author-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 30px 0;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    font-size: 20px;
    line-height: 1.75;
}

.gjf-author-row:last-child {
    border-bottom: none;
}

.gjf-author-row img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    object-position: top;
    background: #f2f2f2;
}

.gjf-author-row h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 24px;
    font-weight: 600;
}

.gjf-accordion-list {
    margin-top: 50px;
    display: grid;
    gap: 9px;
}

.gjf-accordion-list details {
    background: #f4f4f3;
}

.gjf-accordion-list summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    color: #111;
    cursor: pointer;
    list-style: none;
}

.gjf-accordion-list summary::-webkit-details-marker {
    display: none;
}

.gjf-accordion-list summary em {
    color: #696d74;
    font-style: normal;
    font-size: 12px;
}

.gjf-accordion-list details>div {
    padding: 0 16px 16px;
}

.gjf-preview-frame {
    position: relative;
    width: 100%;
    min-height: 560px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.gjf-preview-frame iframe {
    width: 100%;
    min-height: 560px;
    border: 0;
    display: block;
}

.gjf-preview-frame .cssload-container {
    height: 100%;
    display: block;
}

.gjf-preview-frame .cssload-speeding-wheel {
    width: min(78%, 520px) !important;
    height: 18px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #eef2f7 0%, #e1e7ef 42%, #eef2f7 84%) !important;
    background-size: 220% 100% !important;
    -webkit-mask: none !important;
    mask: none !important;
    animation: gjBookSkeleton 1.2s ease-in-out infinite !important;
    position: relative !important;
    margin: 0 auto !important;
    top: 25%;
    transform: translateY(-50%);
}

.gjf-preview-frame .cssload-speeding-wheel::before,
.gjf-preview-frame .cssload-speeding-wheel::after {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #eef2f7 0%, #e1e7ef 42%, #eef2f7 84%);
    background-size: 220% 100%;
    animation: gjBookSkeleton 1.2s ease-in-out infinite;
}

.gjf-preview-frame .cssload-speeding-wheel::before {
    top: 34px;
    width: 64%;
    height: 18px;
}

.gjf-preview-frame .cssload-speeding-wheel::after {
    top: 76px;
    width: 100%;
    height: 260px;
    border-radius: 14px;
}

@keyframes gjBookSkeleton {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

.gjf-cite-tabs {
    margin-top: 40px;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 6px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F8FAFC;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gjf-cite-tabs button,
.gjf-cite-tabs a {
    flex: 1 0 auto;
    min-width: 62px;
    height: 36px;
    padding: 0 10px !important;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent !important;
    color: #475569 !important;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.gjf-cite-tabs button:hover,
.gjf-cite-tabs a:hover {
    background: #EEF2FF !important;
    border-color: #BFDBFE;
    color: #174EA6 !important;
}

.gjf-cite-tabs button.active,
.gjf-cite-tabs a.active {
    background: #111827 !important;
    border-color: #111827;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.gjf-reference-cite-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 16px;
    padding: 6px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F8FAFC;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gjf-reference-cite-tabs button,
.gjf-reference-cite-tabs a {
    min-width: 76px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent !important;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    padding: 0 10px !important;
}

.gjf-reference-cite-tabs button:hover,
.gjf-reference-cite-tabs a:hover {
    background: #EEF2FF !important;
    border-color: #BFDBFE;
    color: #174EA6 !important;
}

.gjf-reference-cite-tabs button.active,
.gjf-reference-cite-tabs button:focus-visible,
.gjf-reference-cite-tabs a.active,
.gjf-reference-cite-tabs a:focus-visible {
    background: #111827 !important;
    border-color: #111827;
    color: #FFFFFF !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
    outline: none;
    padding: 0 10px;
}

.gjf-references-list {
    width: 100%;
    margin: 0;
    padding-left: 22px;
}

.gjf-references-list li {
    margin: 0 0 14px;
    color: #495057;
    font-size: 16px;
    line-height: 1.7;
}

.gjf-reference-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    justify-content: flex-end;
}

.gjf-reference-pagination a {
    min-width: 36px;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.gjf-reference-pagination a:hover,
.gjf-reference-pagination a.active {
    background: #111827;
    border-color: #111827;
    color: #FFFFFF;
}

.gjf-pagination-ellipsis {
    min-width: 28px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 13px;
    font-weight: 700;
}

.gjf-citation {
    margin-top: 16px;
}

.gjf-disclosure-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
    margin-top: 50px;
}

.gjf-disclosure-grid article {
    background: #f4f4f3;
    padding: 22px;
    min-height: 120px;
}

.gjf-disclosure-grid article:hover {
    background: #0f0f11 !important;
    color: #fff;
    transition: all .3s ease-in-out;
}

.gjf-disclosure-grid article:hover p {
    color: #fff;
    transition: all .3s ease-in-out;
}

.gjf-disclosure-grid h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: inherit;
}

.gjf-disclosure-grid p {
    font-size: 18px;
    margin-bottom: 0;
}

.gjf-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 24px;
    min-width: 350px;
}

.gjf-side-card {
    border: 1px solid #ececec;
    padding: 24px;
    border-radius: 8px;
}

.gjf-side-card.px-0>* {
    padding-inline: 24px;
}

.gjf-side-card h2 {
    margin-top: 0;
}

.gjf-side-card .gjf-pill-row span {
    background: #f3f3f3;
    color: #333;
    font-size: 12px;
    border: 1px solid #D7D7D7;
}

.gjf-buy-card {
    background: #111216;
    color: #fff;
}

.gjf-buy-card h2 {
    color: rgba(255, 255, 255, 0.72);
}

.gjf-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.gjf-price-row span {
    font-size: 24px;
    font-weight: 800;
}

.gjf-price-row em {
    color: #71d56a;
    font-style: normal;
    text-decoration: line-through;
}

.gjf-buy-card button {
    width: 100%;
    padding: 13px 14px;
    background: #fff;
    color: #111;
    border-radius: 2px;
}

.gjf-buy-card ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    color: #b8bbc0;
    font-size: 10px;
    text-align: center;
}

.gjf-mini-cover {
    display: flex;
    justify-content: center;
    background: #f8f8f7;
}

.gjf-mini-cover .gjf-cover-img {
    width: min(100%, 150px);
}

.gjf-metrics {
    display: grid;
    gap: 12px;
}

.gjf-metrics div {
    border-top: 1px solid #ececec;
    padding-top: 12px;
}

.gjf-metrics strong {
    display: block;
    color: #111;
    font-size: 20px;
}

.gjf-metrics span,
.gjf-side-card dt {
    color: #7a7e85;
    font-size: 12px;
}

.gjf-side-card dl {
    margin: 0;
}

.gjf-side-card dt {
    margin-top: 12px;
}

.gjf-side-card dd {
    margin: 4px 0 0;
    color: #111;
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {

    .gjf-hero-grid,
    .gjf-content-grid {
        grid-template-columns: 1fr;
    }

    .gjf-cover-card {
        justify-self: center;
        max-width: 400px;
        margin: 40px auto 0;
    }

    .gjf-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .gjf-shell {
        padding: 0 18px;
    }

    .gjf-hero {
        padding-top: 18px;
    }

    .gjf-hero-nav {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 36px;
    }

    .gjf-hero-nav nav {
        order: 3;
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .gjf-hero h1 {
        font-size: 28px;
    }

    .gjf-facts,
    .gjf-meta-grid,
    .gjf-disclosure-grid,
    .gjf-sidebar {
        grid-template-columns: 1fr;
    }

    .gjf-meta-grid div {
        border-right: 0;
        border-bottom: 1px solid #e8e8e8;
    }

    .gjf-author-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .gjf-author-row img {
        width: 56px;
        height: 56px;
    }

    .gjf-cite-tabs button,
    .gjf-cite-tabs a {
        flex: 1 0 auto;
        min-width: 66px;
    }

    /* Responsive overrides for new Figma hero elements */
    .gjf-metadata-box {
        padding: 20px;
    }

    .gjf-metadata-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .gjf-metadata-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 12px;
    }

    .gjf-metadata-row .gjf-metadata-col:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }

    .gjf-hero-bottom-meta {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .gjf-hero h1 {
        font-size: 24px;
    }

    .gjf-hero-actions .gjf-btn {
        width: 100%;
    }

    .gjf-cover-card {
        max-width: 240px;
    }

    .gjf-buy-card ul {
        grid-template-columns: 1fr;
    }

    /* Responsive overrides for new Figma hero elements */
    .gjf-metadata-row {
        grid-template-columns: 1fr;
    }

    .gjf-metadata-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 12px;
    }

    .gjf-metadata-row .gjf-metadata-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .gjf-hero-bottom-meta {
        grid-template-columns: 1fr;
    }

    .gjf-btn-figma {
        width: 100%;
    }
}

/* Premium full-page styling enhancements */

/* Navigation Strip Tabs */
.gjf-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    border: none !important;
}

.gjf-meta-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.3s ease;
}

.gjf-meta-tab strong {
    font-size: 15px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 4px;
}

.gjf-meta-tab span {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
}

.gjf-meta-tab:hover {
    border-color: #0d99ff;
    background: #f1f8ff;
}

.gjf-meta-tab.active {
    background: #e7f5ff;
    border-color: #0d99ff;
}

.gjf-meta-tab.active strong {
    color: #0d99ff;
}


/* TOC Accordions */
.gjf-accordion-list {
    margin-top: 35px !important;
    gap: 16px !important;
}

.gjf-accordion-list details {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.gjf-accordion-list details[open] {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.gjf-accordion-list summary {
    background: #f4f5f6 !important;
    border-radius: 8px !important;
    padding: 20px 24px !important;
    font-weight: 400 !important;
    color: #111 !important;
    font-size: 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
    list-style: none !important;
    cursor: pointer !important;
}

.gjf-accordion-list summary::-webkit-details-marker {
    display: none !important;
}

.gjf-accordion-list summary span {
    color: #111 !important;
}

.gjf-accordion-list summary em {
    font-weight: 300 !important;
    color: #4b4f55 !important;
    font-style: normal !important;
    margin-left: auto !important;
    margin-right: 32px !important;
    font-size: 16px !important;
}

.gjf-accordion-list summary::after {
    content: "+" !important;
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #111 !important;
    transition: none !important;
}

.gjf-accordion-list .gjf-rich-text p {
    font-size: 18px;
    padding: 0 20px;
    margin-bottom: 0;
}

.gjf-accordion-list details[open] summary::after {
    content: "-" !important;
}

.gjf-accordion-list details>div,
.gjf-accordion-list details>div {
    padding: 24px 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 20px !important;
    line-height: 1.75 !important;
    color: #4b4f55 !important;
}

/* Citation Box and Copy Button */
.gjf-citation-box {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gjf-citation {
    margin: 0 !important;
    font-size: 16px !important;
    color: #495057;
    line-height: 1.6;
    flex: 1;
}

.gjf-copy-citation-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 6px;
    color: #1769FF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.gjf-copy-citation-btn:hover {
    color: #212529;
}

.gjf-copy-citation-btn svg {
    margin-right: 6px;
    color: #6c757d;
}

.gjf-download-citation {
    width: 100%;
    margin-top: 12px;
    padding-top: 16px;
}

.gjf-download-citation h3 {
    margin: 0 0 12px !important;
    color: #53627a !important;
    font-family: var(--gjf-sans) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.gjf-download-citation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
}

.gjf-download-citation-links button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1769ff;
    font-family: var(--gjf-sans);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.2s ease;
}

.gjf-download-citation-links button:hover,
.gjf-download-citation-links button:focus {
    color: #0c3fbb;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gjf-download-citation-links svg {
    flex: 0 0 auto;
}

/* Disclosure Cards */
.gjf-disclosure-grid article {
    border-radius: 8px !important;
    padding: 24px !important;
    border: 1px solid #e9ecef !important;
    background: #f8f9fa !important;
}

/* Sidebar Buy Card */
.gjf-buy-card {
    background: #18181c !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 24px !important;
    color: #ffffff !important;
}

.gjf-buy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gjf-buy-label {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.gjf-buy-price {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.gjf-buy-open-access {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #212226;
    border-radius: 8px;
    padding: 8px 20px;
    margin-bottom: 24px;
    margin-top: 20px;
}

.gjf-oa-text {
    font-size: 16px;
    font-weight: 500;
    color: #4caf50;
    font-family: "Space Grotesk";
}

.gjf-oa-badge {
    background: #2e7d32;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
}

.gjf-buy-pdf-btn {
    color: #111 !important;
    margin-bottom: 24px;
    transition: background 0.2s;
}

.gjf-buy-pdf-btn:hover {
    background: #f1f3f5;
}

.gjf-buy-devices {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.gjf-device-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.gjf-device-icon {
    background: #25262a;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 8px;
}

.gjf-device-item span {
    font-size: 12px;
    color: #aaa;
    font-family: "Space Grotesk";

}

/* Sidebar Open Access License Card */
.gjf-license-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 24px;
}

.gjf-license-cover {
    border: 1px solid #eee;
    margin-bottom: 26px;
    text-align: center;
    background: #fafafa;
    border-radius: 4px;
    max-width: 160px;
}

.gjf-license-cover img {
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.gjf-license-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
    font-family: "Space Grotesk";
}

.gjf-license-content p {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
    font-family: "Space Grotesk";
}

/* Sidebar Related Publications Card */
.gjf-related-list {
    display: flex;
    flex-direction: column;
}

.gjf-related-item {
    display: flex;
    gap: 16px;
    padding-block: 20px;
    border-bottom: 1px solid #eee;
}

.gjf-related-item:last-child {
    border-bottom: none;
}

.gjf-related-item:first-child {
    padding-top: 0;
}

.gjf-related-thumb {
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 4px;
    flex-shrink: 0;
}

.gjf-related-meta h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    font-family: "Space Grotesk";
    line-height: 1.4;
}

.gjf-related-meta span {
    font-size: 12px;
    color: #64748b;
    font-family: "Space Grotesk";
}

/* Sidebar Academic Impact Card */
.gjf-impact-list {
    display: flex;
    flex-direction: column;
}

.gjf-impact-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.gjf-impact-item:last-child {
    border-bottom: none;
}

.gjf-impact-item:first-child {
    padding-top: 0;
}

.gjf-impact-item strong {
    display: block;
    font-size: 25px;
    font-weight: 400;
    color: #1e293b;
    margin-bottom: 4px;
}

.gjf-impact-item span {
    font-size: 17px;
    color: #64748b;
}

/* Sidebar Classifications Card */
.gjf-classification-list {
    display: flex;
    flex-direction: column;
}

.gjf-classification-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.gjf-classification-item:last-child {
    border-bottom: none;
}

.gjf-classification-item:first-child {
    padding-top: 0;
}

.gjf-classification-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.gjf-classification-item span {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

.gjf-classification-item .gjf-classification-value-block {
    display: block;
    margin-top: 6px;
}

/* ==========================================================================
   Comprehensive Responsive Overrides (Figma Layout Rules)
   ========================================================================== */

/* 1. Desktop >= 1200px: Full 2-column Layout */
@media (min-width: 1200px) {
    .gjf-hero-grid {
        grid-template-columns: minmax(0, 1.25fr) 1fr !important;
        gap: 60px !important;
    }

    .gjf-content-grid {
        grid-template-columns: minmax(0, 1fr) 350px !important;
        gap: 84px !important;
    }
}

/* 2. Tablet 768px - 1199px: Stacking columns / 60/40 single readable flow */
@media (max-width: 1199px) {
    .gjf-hero {
        padding: 100px 0 !important;
    }

    .gjf-hero-grid {
        grid-template-columns: 1.2fr 1fr !important;
        gap: 40px !important;
    }

    .gjf-content-grid {
        grid-template-columns: 1fr !important;
        gap: 48px !important;
    }

    .gjf-sidebar {
        min-width: 100% !important;
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        gap: 24px !important;
    }
}

/* 3. Mobile < 768px: Single column layout, cover after title, buttons full-width */
@media (max-width: 767px) {
    .gjf-hero {
        padding: 60px 0 !important;
    }

    /* Using display: contents on gjf-hero-copy to re-order cover right after title/subtitle */
    .gjf-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .gjf-hero-copy {
        display: contents !important;
    }

    .gjf-hero-copy h1 {
        order: 1 !important;
        font-size: 32px !important;
        text-align: center !important;
        overflow-wrap: anywhere !important;
    }

    .gjf-subtitle {
        order: 2 !important;
        text-align: center !important;
        font-size: 16px !important;
        margin-bottom: 16px !important;
    }

    .gjf-cover-card {
        order: 3 !important;
        margin: 0 auto !important;
        width: 100% !important;
        text-align: center !important;
    }

    .gjf-cover-card img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        aspect-ratio: auto !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    }

    .gjf-metadata-box {
        order: 4 !important;
        padding: 20px !important;
        margin: 20px 0 !important;
        width: 100%;
    }

    .gjf-metadata-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .gjf-metadata-col {
        border-right: none !important;
        padding-right: 0 !important;
    }

    .gjf-metadata-divider {
        display: none !important;
    }

    .gjf-hero-bottom-meta {
        order: 5 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        margin: 20px 0 !important;
        width: 100%;
    }

    .gjf-hero-actions-new {
        order: 6 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin: 20px 0 !important;
    }

    .gjf-btn-figma {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
    }

    .gjf-tags-new {
        order: 7 !important;
        justify-content: center !important;
        margin-top: 20px !important;
    }

    /* Content wraps & main column */
    .gjf-content-wrap {
        padding: 24px 0 60px !important;
    }

    .gjf-section {
        margin-bottom: 32px !important;
    }

    .gjf-section h2 {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    /* Authors and Bios */
    .gjf-author-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 16px 0 !important;
    }

    .gjf-author-bio {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Disclosures Grid */
    .gjf-disclosure-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 24px !important;
    }

    .gjf-disclosure-grid article h3 {
        font-size: 18px !important;
    }

    .gjf-disclosure-grid article p {
        font-size: 14px !important;
    }

    /* Sidebar responsive stacking */
    .gjf-sidebar {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Buy PDF Button in Sidebar Card */
    .gjf-buy-pdf-btn {
        width: 100% !important;
        padding: 14px !important;
    }

    /* Modal responsive updates */
    .gj-custom-modal.active {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .gj-custom-modal .gj-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 24px 20px calc(24px + env(safe-area-inset-bottom)) !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        transform: translateY(0) !important;
        animation: gjfSlideUp 0.3s ease-out !important;
    }
}

@keyframes gjfSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* 4. Small Mobile < 480px: scale fonts down and prevent overflow */
@media (max-width: 479px) {
    .gjf-hero-copy h1 {
        font-size: 26px !important;
    }

    .gjf-metadata-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .gjf-hero-bottom-meta {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .gjf-ai-takeaway-box {
        padding: 16px !important;
    }

    .gjf-ai-takeaway-box h2 {
        font-size: 18px !important;
    }

    .gjf-accordion-list summary {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .gjf-citation-box {
        padding: 16px !important;
    }

    .gjf-citation {
        font-size: 14px !important;
    }

    .gjf-copy-citation-btn {
        padding: 12px 16px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Touch friendly button padding */
    .gjf-cite-tabs button,
    .gjf-cite-tabs a {
        min-width: 66px;
        padding: 0 10px !important;
        font-size: 12px !important;
    }
}

/* Long text, DOI & ISBN overflow safety */
.gjf-metadata-val,
.gjf-bottom-meta-val,
.gjf-citation,
.gjf-book-page h1,
.gjf-book-page h2,
.gjf-book-page h3,
.gjf-book-page h4 {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* Keywords list styling */
.gjf-keywords-new {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.gjf-keywords-label {
    font-weight: 700;
    font-size: 16px;
    color: #111;
    margin-right: 8px;
}

.gjf-keyword-pill {
    background: #f1f3f5;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gjf-keyword-pill:hover {
    background: #e9ecef;
    color: #212529;
}

.gjf-author-bio p {
    font-size: 18px;
    line-height: 2;
}

.gjf-author-bio {
    overflow: hidden;
}

.gjf-author-bio:not(.is-expanded) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: 72px;
}

.gjf-author-bio-toggle {
    display: none;
    margin: 8px 0 0;
    padding: 0;
    color: #1167b1;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.gjf-author-bio-toggle.is-visible {
    display: inline-block;
}

.gjf-author-bio-toggle:hover,
.gjf-author-bio-toggle:focus {
    color: #0b4f88;
    text-decoration: underline;
}

/* Dark Theme Support (.dark-scheme) */

.dark-scheme .gjf-book-page {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-book-page h1,
.dark-scheme .gjf-book-page h2,
.dark-scheme .gjf-book-page h3,
.dark-scheme .gjf-book-page h4 {
    color: #ffffff !important;
}

.dark-scheme .gjf-book-page p,
.dark-scheme .gjf-book-page span,
.dark-scheme .gjf-book-page em,
.dark-scheme .gjf-book-page li,
.dark-scheme .gjf-book-page dt,
.dark-scheme .gjf-book-page dd {
    color: #b8bbc0 !important;
}

/* Keywords dark overrides */
.dark-scheme .gjf-keyword-pill {
    background: #25262a !important;
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-keyword-pill:hover {
    background: #2e3035 !important;
    color: #ffffff !important;
}

/* Author Row dark overrides */
.dark-scheme .gjf-author-row {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-author-row img {
    background: #25262a !important;
}

/* Table of Contents dark overrides */
.dark-scheme .gjf-accordion-list summary {
    background: #1e2025 !important;
    color: #ffffff !important;
}

.dark-scheme .gjf-accordion-list summary span {
    color: #ffffff !important;
}

.dark-scheme .gjf-accordion-list summary em {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-accordion-list summary::after {
    color: #ffffff !important;
}

.dark-scheme .gjf-accordion-list details>div,
.dark-scheme .gjf-accordion-list details>div {
    color: #b8bbc0 !important;
}

/* Citation Box dark overrides */
.dark-scheme .gjf-citation-box {
    border-color: #2e3035 !important;
}

.dark-scheme .gjf-citation {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-copy-citation-btn {
    color: #0d99ff !important;
}

.dark-scheme .gjf-copy-citation-btn:hover {
    color: #ffffff !important;
}

.dark-scheme .gjf-download-citation h3 {
    color: #c2c8d4 !important;
}

.dark-scheme .gjf-download-citation-links button {
    color: #7fb1ff;
}

.dark-scheme .gjf-download-citation-links button:hover,
.dark-scheme .gjf-download-citation-links button:focus {
    color: #ffffff;
}

/* Academic Disclosures dark overrides */
.dark-scheme .gjf-disclosure-grid article {
    border-color: #2e3035 !important;
    background: #1e2025 !important;
}

.dark-scheme .gjf-disclosure-grid article:hover {
    background: #0d0d0f !important;
}

/* Sidebar dark overrides */
.dark-scheme .gjf-side-card {
    background: #1e2025 !important;
    border-color: #2e3035 !important;
    color: #ffffff !important;
}

.dark-scheme .gjf-side-card h2 {
    color: #ffffff !important;
}

.dark-scheme .gjf-side-card .gjf-pill-row span {
    background: #25262a !important;
    color: #ffffff !important;
    border-color: #2e3035 !important;
}

.dark-scheme .gjf-license-card {
    background: #1e2025 !important;
}

.dark-scheme .gjf-license-cover {
    background: #151619 !important;
    border-color: #2e3035 !important;
}

.dark-scheme .gjf-license-content h3 {
    color: #ffffff !important;
}

.dark-scheme .gjf-license-content p {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-related-item {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-related-thumb {
    background: #25262a !important;
}

.dark-scheme .gjf-related-meta h4 {
    color: #ffffff !important;
}

.dark-scheme .gjf-related-meta span {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-impact-item {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-impact-item strong {
    color: #ffffff !important;
}

.dark-scheme .gjf-impact-item span {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-classification-item {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-classification-item strong {
    color: #ffffff !important;
}

.dark-scheme .gjf-classification-item span {
    color: #b8bbc0 !important;
}

/* AI Takeaway Box styles */
.gjf-ai-takeaway-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #f7f9ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    position: relative;
}

.gjf-ai-takeaway-box h2 {
    color: #1e3a8a !important;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Space Grotesk", sans-serif;
}

.gjf-ai-takeaway-box p {
    color: #1e293b !important;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

/* Dark Mode overrides for AI Takeaway Box */
.dark-scheme .gjf-ai-takeaway-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}

.dark-scheme .gjf-ai-takeaway-box h2 {
    color: #38bdf8 !important;
}

.dark-scheme .gjf-book-page span,
.dark-scheme .gjf-book-page em,
.dark-scheme .gjf-book-page li,
.dark-scheme .gjf-book-page dt,
.dark-scheme .gjf-book-page dd {
    color: #b8bbc0 !important;
}

/* Keywords dark overrides */
.dark-scheme .gjf-keyword-pill {
    background: #25262a !important;
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-keyword-pill:hover {
    background: #2e3035 !important;
    color: #ffffff !important;
}

/* Author Row dark overrides */
.dark-scheme .gjf-author-row {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-author-row img {
    background: #25262a !important;
}

/* Table of Contents dark overrides */
.dark-scheme .gjf-accordion-list summary {
    background: #1e2025 !important;
    color: #ffffff !important;
}

.dark-scheme .gjf-accordion-list summary span {
    color: #ffffff !important;
}

.dark-scheme .gjf-accordion-list summary em {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-accordion-list summary::after {
    color: #ffffff !important;
}

.dark-scheme .gjf-accordion-list details>div,
.dark-scheme .gjf-accordion-list details>div {
    color: #b8bbc0 !important;
}

/* Citation Box dark overrides */
.dark-scheme .gjf-citation-box {
    border-color: #2e3035 !important;
}

.dark-scheme .gjf-citation {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-copy-citation-btn {
    color: #0d99ff !important;
}

.dark-scheme .gjf-copy-citation-btn:hover {
    color: #ffffff !important;
}

/* Academic Disclosures dark overrides */
.dark-scheme .gjf-disclosure-grid article {
    border-color: #2e3035 !important;
    background: #1e2025 !important;
}

.dark-scheme .gjf-disclosure-grid article:hover {
    background: #0d0d0f !important;
}

/* Sidebar dark overrides */
.dark-scheme .gjf-side-card {
    background: #1e2025 !important;
    border-color: #2e3035 !important;
    color: #ffffff !important;
}

.dark-scheme .gjf-side-card h2 {
    color: #ffffff !important;
}

.dark-scheme .gjf-side-card .gjf-pill-row span {
    background: #25262a !important;
    color: #ffffff !important;
    border-color: #2e3035 !important;
}

.dark-scheme .gjf-license-card {
    background: #1e2025 !important;
}

.dark-scheme .gjf-license-cover {
    background: #151619 !important;
    border-color: #2e3035 !important;
}

.dark-scheme .gjf-license-content h3 {
    color: #ffffff !important;
}

.dark-scheme .gjf-license-content p {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-related-item {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-related-thumb {
    background: #25262a !important;
}

.dark-scheme .gjf-related-meta h4 {
    color: #ffffff !important;
}

.dark-scheme .gjf-related-meta span {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-impact-item {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-impact-item strong {
    color: #ffffff !important;
}

.dark-scheme .gjf-impact-item span {
    color: #b8bbc0 !important;
}

.dark-scheme .gjf-classification-item {
    border-bottom-color: #2e3035 !important;
}

.dark-scheme .gjf-classification-item strong {
    color: #ffffff !important;
}

.dark-scheme .gjf-classification-item span {
    color: #b8bbc0 !important;
}

/* AI Takeaway Box styles */
.gjf-ai-takeaway-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #f7f9ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    position: relative;
}

.gjf-ai-takeaway-box h2 {
    color: #1e3a8a !important;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Space Grotesk", sans-serif;
}

.gjf-ai-takeaway-box p {
    color: #1e293b !important;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

/* Dark Mode overrides for AI Takeaway Box */
.dark-scheme .gjf-ai-takeaway-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #334155 !important;
}

.dark-scheme .gjf-ai-takeaway-box h2 {
    color: #38bdf8 !important;
}

.dark-scheme .gjf-ai-takeaway-box p {
    color: #e2e8f0 !important;
}

body:not(.dark-scheme) .header.is-dark:not(.-sticky) .branding .logo img {
    filter: invert(1);
}

/* Timeline Section Styling */
.gjf-timeline-section {
    margin: 40px 0;
    width: 100%;
}

.gjf-timeline-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 35px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.gjf-timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
    position: relative;
    z-index: 2;
}

.gjf-timeline-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.gjf-timeline-date {
    font-size: 13px;
    color: #6B7280;
    font-weight: 500;
}

.gjf-timeline-edition {
    font-size: 13px;
    color: #4B5563;
    font-weight: 600;
    margin-bottom: 4px;
}

.gjf-timeline-line {
    flex-grow: 1;
    height: 1px;
    background-color: #BEE3F8;
    /* Light blue */
    margin: 0 20px;
    position: relative;
    z-index: 1;
}

/* Responsive updates for Timeline */
@media (max-width: 768px) {
    .gjf-timeline-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }

    .gjf-timeline-line {
        width: 1px;
        height: 40px;
        margin: -10px 0;
        flex-grow: 0;
    }
}

/* Dark Mode overrides for Timeline */
.dark-scheme .gjf-timeline-container {
    background: #0f172a !important;
    border-color: #1e293b !important;
}

.dark-scheme .gjf-timeline-blue {
    color: #38bdf8 !important;
}

.dark-scheme .gjf-timeline-dark {
    color: #e2e8f0 !important;
}

.dark-scheme .gjf-timeline-date {
    color: #94a3b8 !important;
}

.dark-scheme .gjf-timeline-edition {
    color: #cbd5e1 !important;
}

.dark-scheme .gjf-timeline-line {
    background-color: #1e293b !important;
}