/* =============================================
   GAFFEx custom overrides — matches Figma design
============================================= */

body { margin-top: 0 !important; }

/* --- Navbar -------------------------------- */
.sj-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e5e5 !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.sj-home .sj-header {
    border-bottom: 1px solid #e5e5e5 !important;
}

.sj-navigationarea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 64px;
}

.sj-logo {
    display: flex;
    align-items: center;
    width: auto !important;
}

.sj-logo img {
    height: 36px;
    width: auto;
}

.sj-rightarea {
    display: flex;
    align-items: center;
}

.sj-nav {
    float: none !important;
}

.sj-navigation {
    float: none !important;
    width: auto !important;
}

.sj-navigation > ul {
    display: flex;
    align-items: center;
    gap: 8px;
    float: none !important;
    width: auto !important;
    text-align: right;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sj-navigation > ul > li {
    float: none !important;
}

/* ── Mobile nav ────────────────────────────────────────────────── */
/* Hide on < 992 px (Bootstrap lg breakpoint) unless .show is set  */
@media (max-width: 991.98px) {

    /* Force-hide the collapsed nav even if theme CSS says otherwise */
    .sj-navigation.collapse:not(.show) {
        display: none !important;
    }

    /* Dropdown panel */
    .sj-navigation.collapse.show,
    .sj-navigation.collapsing {
        display: block !important;
        width: 100% !important;
        background: #ffffff !important;
        border-top: 1px solid #e9ecef;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 200;
        padding: 6px 0 14px;
    }

    /* Stack links vertically */
    .sj-navigation > ul {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
    }

    /* Each item */
    .sj-navigation > ul > li {
        width: 100% !important;
        background: #ffffff !important;
        border-bottom: 1px solid #f3f4f6;
    }
    .sj-navigation > ul > li:last-child {
        border-bottom: none;
    }

    /* Links */
    .sj-navigation > ul > li > a {
        display: block !important;
        padding: 13px 24px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #1a1a2e !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        white-space: nowrap;
    }
    .sj-navigation > ul > li > a:hover,
    .sj-navigation > ul > li > a:focus {
        background: #f0fbfc !important;
        color: #058B9E !important;
    }

    /* Submit button — keep its teal style, just indent it */
    .sj-navigation > ul > li > a.sj-btn,
    .sj-navigation > ul > li > a.sj-btnactive {
        margin: 8px 16px !important;
        border-radius: 6px !important;
        padding: 10px 20px !important;
        display: inline-block !important;
        width: calc(100% - 32px) !important;
        text-align: center !important;
        background: #058B9E !important;
        color: #ffffff !important;
    }

    /* Relative header so the absolute dropdown sits right below */
    #sj-header {
        position: relative;
    }
}

.sj-navigation > ul > li > a {
    color: #002C32 !important;
    padding: 8px 16px !important;
    font-weight: 400;
    font-size: 15px;
    white-space: nowrap;
}

.sj-navigation > ul > li > a:hover {
    color: #058B9E !important;
    background: transparent !important;
}

.sj-navigation > ul > li:hover > a,
.sj-navigation > ul > li:active > a,
.sj-navigation > ul > li.current-menu-item > a {
    background: transparent !important;
    color: #058B9E !important;
}

/* "Submit a work" button in navbar */
.sj-navigation > ul > li > a.sj-btn,
.sj-navigation > ul > li > a.sj-btnactive {
    background: #058B9E;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 18px !important;
    font-weight: 500;
}

.sj-navigation > ul > li > a.sj-btn:hover,
.sj-navigation > ul > li > a.sj-btnactive:hover {
    background: #046d7e;
    color: #ffffff !important;
}

/* Account link */
.nav-account-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #002C32 !important;
    font-weight: 400;
    font-size: 15px;
}

/* Publications nav link */
.nav-publications-link {
    color: #002C32 !important;
    font-weight: 400;
}

/* Hide search icon from old nav */
.sj-btntopsearch {
    display: none;
}

/* --- Hero section -------------------------- */
.gfx-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/background_home.jpg') center/cover no-repeat;
    text-align: center;
    padding: 60px 20px;
}

.gfx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 35, 0.72);
}

.gfx-hero-inner {
    position: relative;
    max-width: 720px;
    width: 100%;
    z-index: 1;
}

.gfx-hero h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gfx-hero-subtitle {
    color: rgba(255,255,255,0.80);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 28px;
}

.gfx-hero-search {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    margin: 0 auto 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.gfx-hero-search input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    height: 46px !important;
    padding: 10px 18px !important;
    margin: 0 !important;
    font-size: 14px;
    outline: none;
}

.gfx-hero-search button {
    background: #058B9E;
    color: #fff;
    border: none;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Lexend', sans-serif;
    transition: background 0.2s;
}

.gfx-hero-search button:hover {
    background: #046d7e;
}

.gfx-hero-allpubs {
    color: rgba(255,255,255,0.80);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 1px;
    transition: color 0.2s;
}

.gfx-hero-allpubs:hover {
    color: #ffffff;
}

/* --- Features section ---------------------- */
.gfx-features {
    background: #ffffff;
    padding: 64px 0;
    text-align: center;
}

.gfx-features-heading {
    font-size: 28px;
    font-weight: 700;
    color: #002C32;
    margin-bottom: 6px;
    line-height: 1.3;
}

.gfx-features-sub {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 40px;
}

.gfx-feature-card {
    background: #f7f8f9;
    border-radius: 10px;
    padding: 28px 20px;
    height: 100%;
    text-align: center;
    transition: box-shadow 0.2s;
}

.gfx-feature-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.gfx-feature-icon {
    font-size: 32px;
    color: #E07B2D;
    margin-bottom: 14px;
    display: block;
}

.gfx-feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #002C32;
    margin-bottom: 6px;
    line-height: 1.3;
}

.gfx-feature-desc {
    font-size: 13px;
    color: #6c757d;
    font-weight: 300;
    margin: 0;
}

.gfx-features-learn {
    display: inline-block;
    margin-top: 36px;
    color: #002C32;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #002C32;
    padding-bottom: 1px;
    text-decoration: none;
    transition: color 0.2s;
}

.gfx-features-learn:hover {
    color: #058B9E;
    border-color: #058B9E;
}

/* --- Quote section ------------------------- */
.gfx-quote {
    background: #111111;
    padding: 64px 20px;
    text-align: center;
}

.gfx-quote-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255,255,255,0.15);
}

.gfx-quote-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #333;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 28px;
}

.gfx-quote-text {
    color: #ffffff;
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

.gfx-quote-author {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 300;
    margin: 0;
}

/* --- Publications section ------------------ */
.gfx-pubs {
    background: #F2F5F6;
    padding: 56px 0 64px;
}

.gfx-pubs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.gfx-pubs-title {
    font-size: 26px;
    font-weight: 700;
    color: #002C32;
    margin: 0;
}

.gfx-pubs-actions {
    display: flex;
    gap: 8px;
}

.gfx-pubs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #002C32;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Lexend', sans-serif;
    transition: border-color 0.2s;
}

.gfx-pubs-btn:hover {
    border-color: #058B9E;
    color: #058B9E;
}

/* Publication card */
.gfx-pub-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    gap: 20px;
}

.gfx-pub-card-main {
    flex: 1;
    min-width: 0;
}

.gfx-pub-card-images {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: flex-start;
}

.gfx-pub-card-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

/* Card top row */
.gfx-pub-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.gfx-pub-authors {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gfx-pub-author-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gfx-pub-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e5e5;
}

.gfx-pub-author-name {
    font-size: 13px;
    font-weight: 500;
    color: #002C32;
    line-height: 1.2;
}

.gfx-pub-author-role {
    font-size: 11px;
    color: #6c757d;
    font-weight: 300;
    line-height: 1.2;
}

.gfx-pub-field {
    text-align: right;
    flex-shrink: 0;
    font-size: 13px;
    color: #6c757d;
    font-weight: 300;
    line-height: 1.6;
}

.gfx-pub-field strong {
    color: #002C32;
    font-weight: 500;
}

/* Keywords */
.gfx-pub-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.gfx-pub-keyword {
    background: #eef0f1;
    color: #555;
    font-size: 12px;
    font-weight: 300;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Title */
.gfx-pub-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.gfx-pub-title a {
    color: #058B9E;
    text-decoration: none;
}

.gfx-pub-title a:hover {
    text-decoration: underline;
}

/* Abstract */
.gfx-pub-abstract {
    font-size: 13px;
    color: #555;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Card footer */
.gfx-pub-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 300;
}

.gfx-pub-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* View all link */
.gfx-view-all {
    text-align: center;
    margin-top: 24px;
}

.gfx-view-all a {
    color: #002C32;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #002C32;
    padding-bottom: 1px;
    text-decoration: none;
    transition: color 0.2s;
}

.gfx-view-all a:hover {
    color: #058B9E;
    border-color: #058B9E;
}

/* --- Footer -------------------------------- */
#sj-footer {
    background: #111111 !important;
    padding: 24px 0;
}

.gfx-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.gfx-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gfx-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.gfx-footer-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.gfx-footer-logo-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.gfx-footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 300;
    margin: 0;
}

.gfx-footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.gfx-footer-links a {
    color: rgba(255,255,255,0.70);
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.gfx-footer-links a:hover {
    color: #ffffff;
}

/* Hide old footer elements */
.sj-footerbottom,
.sj-btnscrolltotop {
    display: none;
}

/* Pagination */
#pager {
    text-align: center;
    padding: 24px 0 0;
}

#pager a {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #002C32;
    font-size: 13px;
    font-weight: 300;
    text-decoration: none;
    background: #fff;
}

#pager a:hover {
    border-color: #058B9E;
    color: #058B9E;
}

/* --- Post detail page ---------------------- */
.gfx-detail-page {
    background: #F2F5F6;
    padding: 32px 0 60px;
    min-height: 80vh;
}

.gfx-detail-back {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.gfx-detail-back a {
    color: #002C32;
    font-size: 18px;
    text-decoration: none;
    flex-shrink: 0;
}

.gfx-detail-back a:hover { color: #058B9E; }

.gfx-detail-page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #002C32;
}

.gfx-detail-meta-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.gfx-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #002C32;
    line-height: 1.4;
    margin: 0;
}

/* 2-column layout */
.gfx-detail-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.gfx-detail-left {
    flex: 1 1 0;
    min-width: 0;
}

.gfx-detail-right {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
}

.gfx-detail-draft-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

/* Section boxes */
.gfx-detail-section {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gfx-section-clickable {
    cursor: pointer;
}

.gfx-section-clickable:hover {
    border-color: #d0dfe2;
}

.gfx-section-active {
    border-color: #058B9E !important;
}

.gfx-detail-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 0;
}

.gfx-detail-section-header h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #002C32;
    margin: 0;
}

.gfx-section-badges {
    display: flex;
    gap: 4px;
}

.gfx-sbadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.gfx-sbadge-ap { background: #2da44e; }
.gfx-sbadge-nr { background: #F6BD1D; color: #000; }
.gfx-sbadge-na { background: #e5534b; }

.gfx-detail-section-body {
    padding: 12px 20px 18px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #333;
}

/* Right panel */
.gfx-detail-comments-label {
    font-size: 15px;
    font-weight: 600;
    color: #002C32;
    margin-bottom: 14px;
}

.gfx-comment-card {
    background: #fff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.gfx-comment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.gfx-comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gfx-comment-date {
    font-size: 11px;
    color: #aaa;
    font-weight: 300;
    white-space: nowrap;
}

.gfx-comment-body {
    font-size: 13px;
    color: #444;
    font-weight: 300;
    line-height: 1.6;
}

/* Verdict badges on comment cards */
.gfx-verdict-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.gfx-verdict-ap { background: #e6f4ea; color: #1a7f37; }
.gfx-verdict-nr { background: #fff8e1; color: #b08000; }
.gfx-verdict-na { background: #fde8e8; color: #c41c1c; }

/* Post comment button */
.gfx-post-comment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #058B9E;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 14px;
    font-family: 'Lexend', sans-serif;
    text-decoration: none;
    transition: background 0.2s;
}

.gfx-post-comment-btn:hover {
    background: #046d7e;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 900px) {
    .gfx-detail-columns { flex-direction: column; }
    .gfx-detail-right { width: 100%; position: static; }
}

/* --- Profile page -------------------------- */
.gfx-profil-page {
    background: #F2F5F6;
    min-height: calc(100vh - 64px);
    padding: 36px 0 60px;
}

/* Header card */
.gfx-profil-header {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.gfx-profil-avatar-wrap { flex-shrink: 0; }

.gfx-profil-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e5e5;
}

.gfx-profil-info { flex: 1; min-width: 0; }

.gfx-profil-name {
    font-size: 22px;
    font-weight: 700;
    color: #002C32;
    margin-bottom: 4px;
}

.gfx-profil-email,
.gfx-profil-field {
    font-size: 13px;
    color: #6c757d;
    font-weight: 300;
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gfx-profil-email i,
.gfx-profil-field i { color: #058B9E; font-size: 12px; }

.gfx-profil-stats {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}

.gfx-profil-stat {
    text-align: center;
}

.gfx-profil-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #058B9E;
    line-height: 1;
}

.gfx-profil-stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 300;
}

.gfx-logout-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 400;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    margin-top: 4px;
}
.gfx-logout-btn:hover {
    background: #fff0f0;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Tabs */
.gfx-profil-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 0;
    padding: 0 8px;
}

.gfx-profil-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Lexend', sans-serif;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.gfx-profil-tab:hover { color: #058B9E; }

.gfx-profil-tab.active {
    color: #058B9E;
    border-bottom-color: #058B9E;
    font-weight: 500;
}

.gfx-tab-count {
    background: #eef0f1;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    padding: 1px 7px;
    border-radius: 10px;
}

/* Edit form card */
.gfx-profil-edit-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    padding: 32px;
}

.gfx-profil-edit-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.gfx-profil-edit-avatar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gfx-profil-edit-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e5e5;
}

.gfx-avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #d0d5d8;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.gfx-avatar-upload-btn:hover { border-color: #058B9E; color: #058B9E; }

.gfx-profil-edit-fields { flex: 1; }

.gfx-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.gfx-form-row .gfx-form-group { flex: 1; }

.gfx-form-group {
    margin-bottom: 16px;
}

.gfx-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #002C32;
    margin-bottom: 5px;
}

.gfx-form-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d0d5d8;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-family: 'Lexend', sans-serif;
    color: #002C32;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gfx-form-input:focus {
    border-color: #058B9E;
    outline: none;
}

/* Empty state */
.gfx-profil-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.gfx-profil-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

.gfx-profil-empty p {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .gfx-profil-header { flex-direction: column; text-align: center; }
    .gfx-profil-stats { justify-content: center; }
    .gfx-profil-edit-grid { flex-direction: column; align-items: center; }
    .gfx-form-row { flex-direction: column; gap: 0; }
}

/* --- Auth pages (login / signup) ----------- */
.gfx-auth-page {
    min-height: calc(100vh - 64px);
    background: #F2F5F6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.gfx-auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 40px 40px 36px;
    width: 100%;
    max-width: 420px;
}

.gfx-auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.gfx-auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #002C32;
    text-align: center;
    margin-bottom: 6px;
}

.gfx-auth-subtitle {
    font-size: 14px;
    color: #6c757d;
    font-weight: 300;
    text-align: center;
    margin-bottom: 24px;
}

/* ORCID button */
.gfx-orcid-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid #d0d5d8;
    border-radius: 6px;
    background: #fff;
    color: #002C32;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: border-color 0.2s, background 0.2s;
}

.gfx-orcid-btn:hover {
    border-color: #A6CE39;
    background: #f9fdf0;
}

/* Divider */
.gfx-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #aaa;
    font-size: 12px;
    font-weight: 300;
}

.gfx-auth-divider::before,
.gfx-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

/* Crispy form field overrides inside auth card */
.gfx-auth-card .form-group { margin-bottom: 16px; }
.gfx-auth-card label {
    font-size: 13px;
    font-weight: 500;
    color: #002C32;
    margin-bottom: 5px;
}
.gfx-auth-card input[type="text"],
.gfx-auth-card input[type="email"],
.gfx-auth-card input[type="password"] {
    height: 42px !important;
    border-radius: 6px !important;
    border: 1px solid #d0d5d8 !important;
    font-size: 14px;
    padding: 8px 14px !important;
    margin: 0 !important;
    width: 100%;
    transition: border-color 0.2s;
}
.gfx-auth-card input:focus {
    border-color: #058B9E !important;
    outline: none;
}

.gfx-auth-forgot {
    text-align: right;
    margin: -8px 0 16px;
}
.gfx-auth-forgot a {
    font-size: 12px;
    color: #058B9E;
    font-weight: 300;
    text-decoration: none;
}
.gfx-auth-forgot a:hover { text-decoration: underline; }

.gfx-auth-submit {
    width: 100%;
    padding: 12px;
    background: #058B9E;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: background 0.2s;
}
.gfx-auth-submit:hover { background: #046d7e; }

.gfx-auth-separator {
    height: 1px;
    background: #e5e5e5;
    margin: 24px 0 20px;
}

.gfx-auth-switch {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 12px;
}

.gfx-auth-signup-btn {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #058B9E;
    border-radius: 6px;
    color: #058B9E;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    font-family: 'Lexend', sans-serif;
    transition: background 0.2s, color 0.2s;
}
.gfx-auth-signup-btn:hover {
    background: #058B9E;
    color: #fff;
    text-decoration: none;
}

/* --- Search page --------------------------- */
.gfx-search-title {
    font-size: 36px;
    font-weight: 700;
    color: #002C32;
    margin: 40px 0 24px;
}

.gfx-search-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gfx-search-form {
    display: flex;
    flex: 1;
    min-width: 280px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #d0d5d8;
    background: #fff;
}

.gfx-search-form input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    height: 44px !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    font-size: 14px;
    font-family: 'Lexend', sans-serif;
    outline: none;
    background: transparent;
}

.gfx-search-form button {
    background: #058B9E;
    color: #fff;
    border: none;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Lexend', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.gfx-search-form button:hover {
    background: #046d7e;
}

.gfx-search-count {
    font-size: 14px;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 20px;
}

.gfx-filter-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .gfx-hero h1 { font-size: 32px; }
    .gfx-pub-card { flex-direction: column; }
    .gfx-pub-card-images { width: 100%; flex-direction: row; }
    .gfx-pub-card-images img { width: 80px; height: 60px; }
    .gfx-footer-inner { flex-direction: column; text-align: center; }
    .gfx-footer-links { justify-content: center; }
}

/* ── Pagination ─────────────────────────────────── */
.gfx-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #002C32;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.gfx-page-btn:hover {
    background: #f0fbfc;
    border-color: #058B9E;
    color: #058B9E;
    text-decoration: none;
}
.gfx-page-active {
    background: #058B9E;
    border-color: #058B9E;
    color: #fff;
    font-weight: 600;
}

/* ── Post create page ───────────────────────────── */
.gfx-create-page {
    background: #f5f7f8;
    min-height: 100vh;
    padding: 40px 0 60px;
}

.gfx-create-header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.gfx-create-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    color: #002C32;
    background: #fff;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s;
}
.gfx-create-back:hover { background: #f0fbfc; color: #058B9E; text-decoration: none; }

.gfx-create-title {
    font-size: 26px;
    font-weight: 700;
    color: #002C32;
    margin: 0;
}
.gfx-create-subtitle {
    font-size: 14px;
    color: #6c757d;
    font-weight: 300;
    margin: 2px 0 0;
}

/* Steps */
.gfx-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.gfx-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gfx-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    background: #fff;
    transition: all 0.2s;
}

.gfx-step.active .gfx-step-circle {
    border-color: #058B9E;
    background: #058B9E;
    color: #fff;
}
.gfx-step.done .gfx-step-circle {
    border-color: #04B937;
    background: #04B937;
    color: #fff;
}
.gfx-step.done .gfx-step-circle::before {
    content: '✓';
}
.gfx-step.done .gfx-step-circle { font-size: 0; }
.gfx-step.done .gfx-step-circle::before { font-size: 14px; }

.gfx-step-label {
    font-size: 13px;
    color: #aaa;
    font-weight: 400;
}
.gfx-step.active .gfx-step-label { color: #058B9E; font-weight: 600; }
.gfx-step.done .gfx-step-label { color: #04B937; }

.gfx-step-line {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 16px;
    max-width: 80px;
}

/* Card */
.gfx-create-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 32px 40px;
    margin-bottom: 24px;
    overflow: visible;
}

select[multiple], select[multiple].form-control {
    height: auto !important;
    min-height: 120px;
}

.gfx-create-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #002C32;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gfx-create-step-badge {
    background: #058B9E;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.gfx-create-card-desc {
    font-size: 13px;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 24px;
}

.gfx-create-fields { margin-bottom: 8px; }

.gfx-create-actions {
    display: flex;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

/* Section tabs (step 2) */
.gfx-create-section-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    overflow-x: auto;
}

.gfx-create-section-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.gfx-create-section-tab:hover { color: #058B9E; }
.gfx-create-section-tab.active {
    color: #058B9E;
    border-bottom-color: #058B9E;
    font-weight: 600;
}

.gfx-create-section-hint {
    font-size: 12px;
    color: #6c757d;
    font-weight: 300;
    margin-bottom: 0;
    font-style: italic;
}

/* Section blocks (step 2) */
.gfx-create-sections {
    display: block;
}

.gfx-create-section-block {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
    width: 100%;
}

.gfx-create-section-label {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gfx-create-section-label strong {
    font-size: 14px;
    font-weight: 600;
    color: #002C32;
    display: block;
    margin-bottom: 2px;
}

.gfx-section-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #058B9E;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gfx-create-section-block .mce-container,
.gfx-create-section-block textarea {
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
}

.gfx-create-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: #058B9E;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: background 0.2s;
}
.gfx-create-btn-primary:hover { background: #046d7e; color: #fff; }

.gfx-create-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #002C32;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: background 0.15s, border-color 0.15s;
}
.gfx-create-btn-outline:hover { background: #f0fbfc; border-color: #058B9E; }

/* --- Comment verdict options (modal) ------- */
.gfx-verdict-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gfx-verdict-option {
    display: block;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    margin: 0;
    padding: 0;
}

.gfx-verdict-option:hover { border-color: #058B9E; background: #f0fbfc; }

.gfx-verdict-option.gfx-verdict-selected { background: #f8fffe; }
.gfx-verdict-option-ap.gfx-verdict-selected { border-color: #04B937; background: #f4fef6; }
.gfx-verdict-option-nr.gfx-verdict-selected { border-color: #E07B2D; background: #fff8f2; }
.gfx-verdict-option-na.gfx-verdict-selected { border-color: #E40707; background: #fff4f4; }

.gfx-verdict-option-inner {
    padding: 12px 14px;
}

.gfx-verdict-option-inner p {
    font-size: 12px;
    font-weight: 300;
    color: #6c757d;
    margin: 4px 0 0;
    line-height: 1.4;
}

.gfx-verdict-option-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gfx-verdict-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
}

.gfx-vcheck-ap { background: #04B937; }
.gfx-vcheck-nr { background: #E07B2D; }
.gfx-vcheck-na { background: #E40707; }

/* --- Signup page wider card ---- */
.gfx-auth-page.gfx-auth-page-signup .gfx-auth-card {
    max-width: 500px;
}

/* --- Reproducibility score ---- */

/* Ring widget (post detail) */
.gfx-score-widget {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fffe;
    border: 1px solid #e0f5f7;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
}

.gfx-score-ring-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.gfx-score-ring-wrap svg {
    transform: rotate(-90deg);
}

.gfx-score-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gfx-score-ring-pct {
    font-size: 17px;
    font-weight: 700;
    color: #002C32;
}

.gfx-score-ring-unit {
    font-size: 9px;
    color: #6c757d;
    margin-top: 1px;
}

.gfx-score-info { flex: 1; min-width: 0; }

.gfx-score-verdict {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gfx-score-breakdown {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gfx-score-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6c757d;
}

.gfx-score-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gfx-score-dot-ap { background: #04B937; }
.gfx-score-dot-nr { background: #E07B2D; }
.gfx-score-dot-na { background: #E40707; }

.gfx-score-total {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 6px;
}

/* Mini pill (post list) */
.gfx-score-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid currentColor;
}

.gfx-score-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* --- Attachments zone --------- */
.gfx-attach-zone {
    border-top: 1px dashed #dee2e6;
    margin-top: 16px;
    padding-top: 12px;
}

.gfx-attach-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.gfx-attach-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 10px;
    transition: border-color 0.15s;
}
.gfx-attach-item:hover { border-color: #058B9E; }

/* Image thumbnail */
.gfx-attach-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
}
.gfx-attach-preview-link { flex-shrink: 0; }

/* File type icon box */
.gfx-attach-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.gfx-attach-icon-dataset { background: #e8f5e9; color: #2e7d32; }
.gfx-attach-icon-pdf     { background: #fce4e4; color: #c62828; }
.gfx-attach-icon-text    { background: #e3f2fd; color: #1565c0; }
.gfx-attach-icon-archive { background: #fff3e0; color: #e65100; }
.gfx-attach-icon-other   { background: #f3e5f5; color: #6a1b9a; }

/* File info */
.gfx-attach-info {
    flex: 1;
    min-width: 0;
}
.gfx-attach-name {
    font-size: 13px;
    font-weight: 600;
    color: #002C32;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.gfx-attach-name:hover { color: #058B9E; }
.gfx-attach-caption {
    font-size: 11px;
    color: #6c757d;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gfx-attach-meta {
    font-size: 11px;
    color: #adb5bd;
}

/* Delete button */
.gfx-attach-del {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.gfx-attach-del:hover { color: #E40707; background: #fff0f0; }

/* Upload button */
.gfx-attach-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px dashed #058B9E;
    border-radius: 6px;
    color: #058B9E;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Lexend', sans-serif;
    transition: background 0.15s;
}
.gfx-attach-upload-btn:hover { background: #f0fbfc; }

/* =============================================
   Author Dashboard
============================================= */
.gfx-dashboard {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

.gfx-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.gfx-dash-title {
    font-family: 'Lexend', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.gfx-dash-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.gfx-dash-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #058B9E;
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Lexend', sans-serif;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.gfx-dash-new-btn:hover { background: #047284; color: #fff; text-decoration: none; }

/* Stat cards */
.gfx-dash-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 900px) { .gfx-dash-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gfx-dash-cards { grid-template-columns: 1fr; } }

.gfx-dash-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 20px 20px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.gfx-dash-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.gfx-dash-card-value {
    font-size: 26px;
    font-weight: 700;
    font-family: 'Lexend', sans-serif;
    color: #1a1a2e;
    line-height: 1;
}

.gfx-dash-card-value--muted { color: #adb5bd; }

.gfx-dash-card-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 400;
}

/* Panel layout */
.gfx-dash-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    margin-bottom: 24px;
    align-items: start;
}
@media (max-width: 900px) { .gfx-dash-row { grid-template-columns: 1fr; } }

.gfx-dash-panel {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.gfx-dash-panel-title {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    color: #374151;
    margin: 0 0 20px;
}

/* Verdict breakdown bars */
.gfx-verdict-breakdown { display: flex; flex-direction: column; gap: 14px; }

.gfx-vb-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gfx-vb-bar-wrap {
    flex: 1;
    height: 10px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden;
}

.gfx-vb-bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s;
    min-width: 3px;
}

.gfx-vb-count {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    width: 28px;
    text-align: right;
}

/* Per-article table */
.gfx-dash-table-wrap { overflow-x: auto; }

.gfx-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gfx-dash-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.gfx-dash-table td {
    padding: 12px 12px;
    border-bottom: 1px solid #f9fafb;
    vertical-align: middle;
}

.gfx-dash-table tr:last-child td { border-bottom: none; }

.gfx-dash-post-link {
    color: #1a1a2e;
    font-weight: 500;
    text-decoration: none;
}
.gfx-dash-post-link:hover { color: #058B9E; text-decoration: underline; }

.gfx-dash-date { color: #9ca3af; white-space: nowrap; }
.gfx-dash-na { color: #d1d5db; }

.gfx-score-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.gfx-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}
.gfx-status-published { background: #dcfce7; color: #166534; }
.gfx-status-draft     { background: #f3f4f6; color: #6b7280; }

/* Recent reviews */
.gfx-dash-reviews { display: flex; flex-direction: column; gap: 14px; }

.gfx-dash-review-item {
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
}

.gfx-dash-review-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 4px;
}

.gfx-dash-review-who { font-weight: 600; color: #374151; }
.gfx-dash-review-on  { color: #9ca3af; }
.gfx-dash-review-post { color: #058B9E; text-decoration: none; font-weight: 500; }
.gfx-dash-review-post:hover { text-decoration: underline; }
.gfx-dash-review-date { color: #9ca3af; font-size: 12px; }

.gfx-dash-review-comment {
    font-size: 13px;
    color: #6b7280;
    margin: 6px 0 0;
    font-style: italic;
    line-height: 1.5;
}

.gfx-dash-empty {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

.gfx-badge-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.gfx-badge-ap { background: #dcfce7; color: #166534; }
.gfx-badge-nr { background: #fef9c3; color: #854d0e; }
.gfx-badge-na { background: #fee2e2; color: #991b1b; }

/* =============================================
   Bookmark button
============================================= */
.gfx-bm-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: #adb5bd;
    font-size: 15px;
    line-height: 1;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
}
.gfx-bm-btn:hover { color: #F6BD1D; background: #fffbeb; }
.gfx-bm-btn--active { color: #F6BD1D !important; }
.gfx-bm-btn--active:hover { color: #d97706 !important; background: #fffbeb; }

/* Bookmark button on detail page */
.gfx-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gfx-bm-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
}
.gfx-bm-detail-btn:hover { border-color: #F6BD1D; color: #b45309; background: #fffbeb; }
.gfx-bm-detail-btn.gfx-bm-btn--active {
    border-color: #F6BD1D;
    background: #fffbeb;
    color: #b45309;
}

/* Bookmarks list page */
.gfx-bm-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.gfx-bm-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 20px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: box-shadow 0.15s;
}
.gfx-bm-item:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.07); }

.gfx-bm-content { flex: 1; min-width: 0; }

.gfx-bm-title {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    margin: 0 0 6px;
    line-height: 1.4;
}
.gfx-bm-title a { color: #1a1a2e; text-decoration: none; }
.gfx-bm-title a:hover { color: #058B9E; }

.gfx-bm-abstract {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.55;
}

.gfx-bm-saved-at { font-size: 12px; color: #9ca3af; margin-left: auto; }

.gfx-bm-remove-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #d1d5db;
    font-size: 14px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    align-self: flex-start;
}
.gfx-bm-remove-btn:hover { color: #ef4444; background: #fef2f2; }

/* =============================================
   Comment Threads
============================================= */
.gfx-replies-wrap {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gfx-reply {
    background: #f8f9fa;
    border-left: 3px solid #e9ecef;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
}

.gfx-reply--nested {
    margin-left: 20px;
    border-left-color: #058B9E;
    background: #f0fbfc;
}

.gfx-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gfx-reply-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gfx-reply-author {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.gfx-reply-date {
    font-size: 11px;
    color: #9ca3af;
    margin-left: auto;
}

.gfx-reply-body {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.gfx-reply-btn {
    background: none;
    border: none;
    padding: 3px 0;
    font-size: 11px;
    color: #9ca3af;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-family: 'Lexend', sans-serif;
    transition: color 0.15s;
}
.gfx-reply-btn:hover { color: #058B9E; }

.gfx-reply-btn--main {
    font-size: 12px;
    color: #058B9E;
    margin-top: 10px;
    font-weight: 500;
}

.gfx-reply-form-wrap {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
}

.gfx-reply-textarea {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Lexend', sans-serif;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
}
.gfx-reply-textarea:focus { border-color: #058B9E; }

.gfx-reply-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.gfx-reply-submit-btn {
    background: #058B9E;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
    transition: background 0.15s;
}
.gfx-reply-submit-btn:hover { background: #047284; }

.gfx-reply-cancel-btn {
    background: none;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #6b7280;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
}

/* =============================================
   Moderation Panel
============================================= */
.gfx-mod-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gfx-mod-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fafafa;
    transition: box-shadow 0.15s;
}
.gfx-mod-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

.gfx-mod-content { flex: 1; min-width: 0; }

.gfx-mod-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    font-size: 12px;
}

.gfx-mod-author { font-weight: 600; color: #374151; }

.gfx-mod-field {
    background: #e8f5f7;
    color: #058B9E;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
}

.gfx-mod-title {
    font-size: 15px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    margin: 4px 0 6px;
    line-height: 1.4;
}
.gfx-mod-title a { color: #1a1a2e; text-decoration: none; }
.gfx-mod-title a:hover { color: #058B9E; }

.gfx-mod-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.gfx-mod-approve-btn,
.gfx-mod-reject-btn {
    border: none;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Lexend', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background 0.15s;
}

.gfx-mod-approve-btn {
    background: #dcfce7;
    color: #166534;
}
.gfx-mod-approve-btn:hover { background: #bbf7d0; }

.gfx-mod-reject-btn {
    background: #fee2e2;
    color: #991b1b;
}
.gfx-mod-reject-btn:hover { background: #fecaca; }

/* =============================================
   ORCID Profile Section
============================================= */
.gfx-orcid-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.gfx-orcid-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.gfx-orcid-section-header:hover { background: #f8f9fa; }

.gfx-orcid-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    font-family: 'Lexend', sans-serif;
}

.gfx-orcid-count {
    background: #A6CE39;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 99px;
}

.gfx-orcid-chevron {
    color: #9ca3af;
    font-size: 13px;
    transition: transform 0.2s;
}

.gfx-orcid-works {
    border-top: 1px solid #e9ecef;
    padding: 8px 0 4px;
}

.gfx-orcid-work {
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.gfx-orcid-work:last-of-type { border-bottom: none; }

.gfx-orcid-work-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.gfx-orcid-year {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}

.gfx-orcid-type {
    font-size: 11px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 1px 7px;
    border-radius: 99px;
}

.gfx-orcid-work-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.4;
}
.gfx-orcid-work-title a { color: #058B9E; text-decoration: none; }
.gfx-orcid-work-title a:hover { text-decoration: underline; }

.gfx-orcid-work-journal {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    font-style: italic;
}

.gfx-orcid-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #A6CE39;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
}
.gfx-orcid-view-all:hover { text-decoration: underline; color: #8ab22e; }

/* Full-text search badge */
.gfx-fts-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}
