/*
 * pages.css — Page-specific styles (login, register, search, about, article detail, etc.)
 * Split from modern-ojs.css for maintainability
 */

/* =========================================
   16. Login Page — PC split-screen layout
========================================= */

/* Full-width container override for login */
body.pkp_page_login .pkp_structure_content {
    max-width: 100% !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    height: calc(100vh - 53px);
    overflow: hidden;
}
body.pkp_page_login .pkp_structure_content[style] {
    padding-top: 0 !important;
}
body.pkp_page_login .pkp_structure_main {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    height: 100%;
    min-height: 0 !important;
}
body.pkp_page_login .pkp_structure_main > .page {
    flex: 1;
}

/* =========================================================
   LOGIN PAGE — CNKI-style contained-split layout.
   Centered container with brand visual + form side by side.
========================================================= */

/* Page background */
body.pkp_page_login .ac-auth {
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f4f8 50%, #eef1f6 100%);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

/* Container: holds visual + form side by side */
.ac-auth__container {
    display: flex;
    width: 880px;
    min-height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #fff;
}

/* ── Left: brand visual ── */
.ac-auth__visual {
    width: 360px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0c3547 0%, #0e5171 50%, #1a7a9b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}
.ac-auth__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0v40M0 20h40' stroke='%23fff' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
}
.ac-auth__visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff !important;
    max-width: 260px;
}
.ac-auth__visual-icon {
    margin-bottom: 20px;
}
.ac-auth__visual-title {
    font-family: var(--font-heading, system-ui);
    font-size: var(--title-lg);
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.ac-auth__visual-desc {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.8) !important;
    margin: 0 0 32px;
    line-height: 1.7;
}
.ac-auth__visual-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.ac-auth__visual-features > span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.72) !important;
}
.ac-auth__visual-features .fa {
    font-size: var(--text-xs);
    color: rgba(120,210,240,0.7) !important;
}

/* ── Right: form side ── */
.ac-auth__form-side {
    flex: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ac-auth__title {
    font-family: var(--font-heading, system-ui);
    font-size: var(--title-xl);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ── Alerts ── */
.ac-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    line-height: 1.45;
    margin-bottom: 16px;
}
.ac-auth__alert .fa { margin-top: 2px; flex-shrink: 0; }
.ac-auth__alert--info {
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    color: #0c5d8f;
}
.ac-auth__alert--info .fa { color: #1a8bc9; }
.ac-auth__alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.ac-auth__alert--error .fa { color: #dc2626; }
.ac-auth__alert--compact {
    padding: 6px 10px;
    font-size: var(--text-xs);
    margin-bottom: 8px;
}

/* ── Form fields ── */
.ac-auth__field {
    margin-bottom: 16px;
}
.ac-auth__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}

.ac-auth__input {
    display: block;
    width: 100%;
    padding: 9px 14px;
    font-size: var(--text-md);
    color: #1a1a2e;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-sizing: border-box;
    outline: none;
    line-height: 1.4;
    height: auto;
}
.ac-auth__input:focus {
    border-color: #1a7a9b;
    box-shadow: var(--focus-ring);
}
.ac-auth__input::placeholder {
    color: #98a2b3;
}

/* Password wrapper */
.ac-auth__input-wrap {
    position: relative;
}
.ac-auth__input-wrap .ac-auth__input {
    padding-right: 36px;
}
.ac-auth__pw-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    box-shadow: none;
    padding: 4px 6px;
    cursor: pointer;
    color: #98a2b3;
    font-size: var(--text-md);
    transition: color var(--transition-fast);
    min-width: 0;
    width: auto;
    height: auto;
}
.ac-auth__pw-toggle:hover {
    color: #333;
}

/* Field errors */
.ac-auth__field-error {
    display: none;
    font-size: var(--text-xs);
    color: #dc2626;
    margin-top: 4px;
    line-height: 1.3;
}

/* CAPTCHA row */
.ac-auth__captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ac-auth__captcha-input { flex: 1; min-width: 0; }
.ac-auth__captcha-img {
    height: 38px;
    min-width: 110px;
    border-radius: var(--radius-sm);
    border: 1px solid #d0d5dd;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    object-fit: contain;
}
.ac-auth__captcha-img:hover { opacity: 0.75; }
.ac-auth__captcha-btn {
    background: #f9fafb;
    border: 1px solid #d0d5dd;
    border-radius: var(--radius-sm);
    padding: 6px 9px;
    cursor: pointer;
    color: #667085;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    box-shadow: none;
    min-width: 0;
    width: auto;
    height: auto;
}
.ac-auth__captcha-btn:hover { background: #f3f4f6; }
.ac-auth__captcha-btn--spin .fa { animation: ac-spin 0.6s linear infinite; }
@keyframes ac-spin { to { transform: rotate(360deg); } }

/* Email verification code field */
.ac-email-code-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.ac-email-code-input {
    flex: 1;
    letter-spacing: 4px;
    font-size: var(--text-lg);
    font-weight: 600;
    text-align: center;
}
.ac-email-code-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-width: 100px;
}
.ac-email-code-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0e7490, #155e75);
    box-shadow: var(--shadow-sm);
}
.ac-email-code-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}
.ac-email-code-hint {
    font-size: var(--text-xs);
    color: #94a3b8;
    margin-top: 4px;
}
.ac-auth__field-error {
    color: #dc2626;
    font-size: var(--text-xs);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Remember + forgot row */
.ac-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.ac-auth__checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: var(--text-sm);
    color: #475467;
    font-weight: 400;
    margin: 0;
}
.ac-auth__checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #1a7a9b;
    flex-shrink: 0;
}

/* Submit */
.ac-auth__submit {
    width: 100%;
    height: 42px;
    margin-top: 20px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #1e8bab 0%, #1a7a9b 100%);
    color: #fff;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
}
.ac-auth__submit:hover {
    background: linear-gradient(180deg, #1a7fa0 0%, #16708d 100%);
    box-shadow: var(--shadow-md);
}
.ac-auth__submit:active {
    background: #125c75;
    transform: translateY(1px);
}
.ac-auth__submit--loading { opacity: 0.65; pointer-events: none; }
.ac-auth__submit-spinner { font-size: var(--text-md); }

/* Privacy agree */
.ac-auth__agree {
    text-align: center;
    font-size: var(--text-xs);
    color: #98a2b3;
    margin-top: 14px;
    line-height: 1.5;
}

/* Register link */
.ac-auth__register-link {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
    text-align: center;
    font-size: var(--text-sm);
    color: #475467;
}

/* Links */
.ac-auth__link {
    color: #1a7a9b;
    text-decoration: none;
    font-weight: 500;
}
.ac-auth__link:hover { text-decoration: underline; }
.ac-auth__link-sm {
    font-size: var(--text-xs);
    color: #1a7a9b;
    text-decoration: none;
}
.ac-auth__link-sm:hover { text-decoration: underline; }

/* Hide OJS chrome on all auth pages */
body.pkp_page_login .ac-footer-wrapper,
body.pkp_page_login .cmp_breadcrumbs,
body.pkp_page_login .pkp_structure_head,
body.pkp_op_lostPassword .ac-footer-wrapper,
body.pkp_op_lostPassword .cmp_breadcrumbs,
body.pkp_op_lostPassword .pkp_structure_head,
body.pkp_op_resetPassword .ac-footer-wrapper,
body.pkp_op_resetPassword .cmp_breadcrumbs,
body.pkp_op_resetPassword .pkp_structure_head,
body.pkp_op_registerComplete .ac-footer-wrapper,
body.pkp_op_registerComplete .cmp_breadcrumbs,
body.pkp_op_registerComplete .pkp_structure_head {
    display: none !important;
}

/* Subtitle + hint text */
.ac-auth__subtitle {
    font-size: var(--text-sm);
    color: #667085;
    margin: -16px 0 20px;
    line-height: 1.6;
}
.ac-auth__hint {
    font-size: var(--text-xs);
    color: #667085;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* Lost password + reset password + register complete — same full-page layout as login */
body.pkp_op_lostPassword .pkp_structure_content,
body.pkp_op_resetPassword .pkp_structure_content,
body.pkp_op_registerComplete .pkp_structure_content {
    max-width: 100% !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    height: calc(100vh - 53px);
    overflow: hidden;
}
body.pkp_op_lostPassword .pkp_structure_content[style],
body.pkp_op_resetPassword .pkp_structure_content[style],
body.pkp_op_registerComplete .pkp_structure_content[style] {
    padding-top: 0 !important;
}
body.pkp_op_lostPassword .pkp_structure_main,
body.pkp_op_resetPassword .pkp_structure_main,
body.pkp_op_registerComplete .pkp_structure_main {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    height: 100%;
    min-height: 0 !important;
}
body.pkp_op_lostPassword .pkp_structure_main > .page,
body.pkp_op_resetPassword .pkp_structure_main > .page,
body.pkp_op_registerComplete .pkp_structure_main > .page {
    flex: 1;
}
body.pkp_op_lostPassword .ac-auth,
body.pkp_op_resetPassword .ac-auth,
body.pkp_op_registerComplete .ac-auth {
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f4f8 50%, #eef1f6 100%);
    border-radius: 0;
    box-sizing: border-box;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .ac-auth__container {
        flex-direction: column;
        width: 90%;
        max-width: 440px;
        min-height: auto;
    }
    .ac-auth__visual {
        width: 100%;
        padding: 28px 24px;
        min-height: auto;
    }
    .ac-auth__visual-features { display: none; }
    .ac-auth__visual-desc { margin-bottom: 0; }
    .ac-auth__form-side { padding: 24px 20px; }
}
@media (max-width: 480px) {
    body.pkp_page_login .ac-auth,
    body.pkp_op_lostPassword .ac-auth,
    body.pkp_op_resetPassword .ac-auth {
        padding: 0;
        align-items: flex-start;
    }
    .ac-auth__container {
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .ac-auth__visual {
        border-radius: 0;
        padding: 20px 16px;
    }
    .ac-auth__form-side { padding: 20px 16px; }
}


/* =========================================
   17. Register Page — CNKI contained split
========================================= */

/* Full-width container for register + complete */
body.pkp_page_user.pkp_op_register .pkp_structure_content {
    max-width: 100% !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    height: calc(100vh - 53px);
    overflow: hidden;
}
body.pkp_page_user.pkp_op_register .pkp_structure_content[style] {
    padding-top: 0 !important;
}
body.pkp_page_user.pkp_op_register .pkp_structure_main {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    height: 100%;
    min-height: 0 !important;
}
body.pkp_page_user.pkp_op_register .pkp_structure_main > .page {
    flex: 1;
}

/* Hide OJS chrome on register + complete */
body.pkp_page_user.pkp_op_register .ac-footer-wrapper,
body.pkp_page_user.pkp_op_register .cmp_breadcrumbs,
body.pkp_page_user.pkp_op_register .pkp_structure_head {
    display: none !important;
}

/* Page background — fit exactly in viewport, no page-level scroll */
body.pkp_page_user.pkp_op_register .ac-auth {
    height: 100%;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 36px 16px;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f4f8 50%, #eef1f6 100%);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    box-sizing: border-box;
}

/* Register uses same width as other auth pages for seamless transitions */
.ac-auth__container--wide {
    max-height: 100%;
}

/* Scrollable form side for long register form */
.ac-auth__form-side--scroll {
    overflow-y: auto;
    max-height: 100%;
    justify-content: flex-start;
}

/* Subtitle under page title */
.ac-auth__subtitle {
    font-size: var(--text-sm);
    color: #667085;
    margin: -8px 0 20px;
    line-height: 1.5;
}
.ac-auth__subtitle--center {
    text-align: center;
    margin-bottom: 24px;
}

/* Required asterisk */
.ac-auth__required {
    color: #dc2626;
    margin-left: 2px;
}

/* Select inputs */
.ac-auth__select {
    appearance: auto;
    cursor: pointer;
}

/* ── Left panel: numbered benefit cards ── */
.ac-auth--register .ac-auth__visual-content {
    max-width: 280px;
}
.ac-auth__visual-icon .fa {
    font-size: var(--display-lg);
    color: rgba(255,255,255,0.85);
}
.ac-auth__visual-icon--success .fa {
    font-size: var(--display-lg);
    color: #6ee7b7;
}
.ac-auth__benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-top: 4px;
}
.ac-auth__benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ac-auth__benefit-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: var(--text-xs);
    font-weight: 700;
    color: rgba(120,210,240,0.9);
    flex-shrink: 0;
}
.ac-auth__benefit-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ac-auth__benefit-text strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255,255,255,0.92) !important;
    line-height: 1.4;
}
.ac-auth__benefit-text span {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.6) !important;
    line-height: 1.5;
}

/* ── Form sections ── */
.ac-auth--register .ac-auth__section {
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
}
.ac-auth--register .ac-auth__section--flat {
    background: transparent;
    border: none;
    padding: 0;
}
.ac-auth__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading, system-ui);
    font-size: var(--text-md);
    font-weight: 600;
    color: #1a7a9b;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecf0;
}
.ac-auth__section-title .fa {
    font-size: var(--text-sm);
    color: #1a7a9b;
}

/* Two-column field row */
.ac-auth__row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Block checkbox (consent, reviewer) */
.ac-auth__checkbox--block {
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: var(--text-sm);
    color: #475467;
    line-height: 1.5;
}
.ac-auth__checkbox--block:last-child {
    margin-bottom: 0;
}
.ac-auth__checkbox--block input[type="checkbox"] {
    margin-top: 3px;
}
.ac-auth__checkbox--block a {
    color: #1a7a9b;
    font-weight: 600;
}

/* Reviewer panel */
.ac-auth__panel {
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: var(--radius-md);
}
.ac-auth__panel--reviewer {
    background: #f0f9ff;
    border-color: #bae6fd;
}
.ac-auth__panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #344054;
    margin-bottom: 10px;
}
.ac-auth__panel-title .fa {
    color: #f59e0b;
    font-size: var(--text-xs);
}

/* Submit button with icon */
.ac-auth--register .ac-auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}
.ac-auth--register .ac-auth__submit .fa {
    font-size: var(--text-md);
}

/* Login link at bottom of register form */
.ac-auth--register .ac-auth__register-link {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eaecf0;
    text-align: center;
    font-size: var(--text-sm);
    color: #667085;
}

/* Form errors — override default theme's bright-red #formErrors */
.ac-auth--register #formErrors,
body .page_register #formErrors,
body .cmp_form#register #formErrors {
    background: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
    border-radius: var(--radius-md);
    padding: 14px 18px !important;
    margin-bottom: 16px;
    font-size: var(--text-md);
    color: #991B1B !important;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ac-auth--register #formErrors .pkp_form_error,
body .page_register #formErrors .pkp_form_error,
body .cmp_form#register .pkp_form_error {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #991B1B !important;
    font-size: var(--text-md) !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ac-auth--register #formErrors .pkp_form_error::before,
body .page_register #formErrors .pkp_form_error::before,
body .cmp_form#register #formErrors .pkp_form_error::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: #DC2626;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ac-auth--register #formErrors .pkp_form_error_list,
body .page_register #formErrors .pkp_form_error_list,
body .cmp_form#register #formErrors .pkp_form_error_list {
    margin: 2px 0 0;
    padding-left: 28px;
    list-style: none;
}
.ac-auth--register #formErrors .pkp_form_error_list li,
body .page_register #formErrors .pkp_form_error_list li,
body .cmp_form#register #formErrors .pkp_form_error_list li {
    position: relative;
    padding: 3px 0;
    color: #991B1B !important;
    font-size: var(--text-sm);
}
.ac-auth--register #formErrors .pkp_form_error_list li::before,
body .page_register #formErrors .pkp_form_error_list li::before,
body .cmp_form#register #formErrors .pkp_form_error_list li::before {
    content: '•';
    position: absolute;
    left: -14px;
    color: #DC2626;
    font-weight: 700;
}
.ac-auth--register #formErrors a,
body .page_register #formErrors a,
body .cmp_form#register #formErrors a {
    color: #B91C1C !important;
    text-decoration: underline;
    text-decoration-color: rgba(185, 28, 28, 0.3);
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.ac-auth--register #formErrors a:hover,
body .page_register #formErrors a:hover,
body .cmp_form#register #formErrors a:hover {
    color: #991B1B !important;
    text-decoration-color: #991B1B;
}

/* Site-wide context role selection (registrationFormContexts.tpl) */
.ac-auth--register fieldset[name="contexts"] {
    border: 1px solid #eaecf0;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #f9fafb;
}
.ac-auth--register fieldset[name="contexts"] > legend {
    font-family: var(--font-heading, system-ui);
    font-size: var(--text-md);
    font-weight: 600;
    color: #1a7a9b;
    padding: 0 4px;
}
.ac-auth--register .context_optin .contexts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ac-auth--register .context_optin .context {
    padding: 12px 0;
    border-bottom: 1px solid #eaecf0;
}
.ac-auth--register .context_optin .context:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ac-auth--register .context_optin .context .name {
    font-weight: 600;
    font-size: var(--text-md);
    color: #344054;
    margin-bottom: 8px;
}
.ac-auth--register .context_optin fieldset.roles {
    border: none;
    padding: 0;
    margin: 0 0 8px;
}
.ac-auth--register .context_optin fieldset.roles legend {
    font-size: var(--text-xs);
    color: #667085;
    margin-bottom: 6px;
}
.ac-auth--register .context_optin fieldset.roles label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: #475467;
    margin-bottom: 6px;
    cursor: pointer;
}
.ac-auth--register .context_privacy label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--text-sm);
    color: #475467;
    line-height: 1.5;
}

/* Info card (shown instead of flat journal list when >5 journals) */
.ac-auth__section--info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}
.ac-auth__info-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ac-auth__info-icon {
    color: #0284c7;
    font-size: var(--title-md);
    margin-top: 2px;
    flex-shrink: 0;
}
.ac-auth__info-text {
    font-size: var(--text-sm);
    color: #1e3a5f;
    margin: 0 0 6px;
    line-height: 1.55;
}
.ac-auth__info-hint {
    font-size: var(--text-xs);
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ── Journal homepage: Join banner ── */
.ac-join-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid #bae6fd;
    padding: 14px 0;
}
.ac-join-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ac-join-text {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.ac-join-icon {
    font-size: var(--title-lg);
    color: #0284c7;
    flex-shrink: 0;
}
.ac-join-text strong {
    display: block;
    font-size: var(--text-md);
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 2px;
}
.ac-join-text span {
    font-size: var(--text-sm);
    color: #475569;
}
.ac-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}
.ac-join-btn:hover {
    background: linear-gradient(135deg, #0369a1, #075985);
    box-shadow: var(--shadow-sm);
}
.ac-join-btn .fa {
    font-size: var(--text-md);
}

/* ── Register responsive ── */
@media (max-width: 960px) {
    .ac-auth__container--wide {
        flex-direction: column;
        width: 90%;
        max-width: 520px;
        max-height: none;
    }
    .ac-auth__form-side--scroll {
        max-height: none;
        overflow-y: visible;
    }
    .ac-auth__benefits { display: none; }
    .ac-auth__visual-desc { margin-bottom: 0; }
}
@media (max-width: 768px) {
    .ac-auth--register .ac-auth__row-2col {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    body.pkp_page_user.pkp_op_register .ac-auth {
        padding: 0;
        align-items: flex-start;
    }
    .ac-auth__container--wide {
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .ac-auth__row-2col {
        grid-template-columns: 1fr;
    }
    .ac-auth--register .ac-auth__section {
        background: transparent;
        border: none;
        border-bottom: 1px solid #eaecf0;
        border-radius: 0;
        padding: 0 0 12px;
        margin-bottom: 12px;
    }
    .ac-auth--register .ac-auth__input {
        padding: 12px 14px;
        font-size: var(--text-lg);
    }
    .ac-auth--register .ac-auth__submit {
        height: 48px;
        font-size: var(--text-lg);
    }
    .ac-auth--register .ac-auth__label {
        font-size: var(--text-md);
    }
}


/* =========================================
   18. About Pages
========================================= */
.page_about .contact_section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.page_about .contact {
    position: relative;
    overflow: hidden;
    background: var(--bg-trust);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}
.page_about .contact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--academic-blue);
}
.page_about .contact.support::before {
    background: var(--action-color);
}
.page_about .contact h2 {
    font-size: var(--title-md) !important;
    margin-top: 0 !important;
    margin-bottom: var(--space-sm) !important;
    border: none !important;
}
.page_about .contact .name {
    font-weight: 700;
    font-size: var(--title-sm);
    color: var(--text-primary);
    margin-bottom: 4px;
}
.page_about .contact .title,
.page_about .contact .affiliation {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.page_about .contact .phone,
.page_about .contact .email {
    font-size: var(--text-md);
    margin-top: var(--space-xs);
}
.page_about .contact .phone .label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}
.page_about .contact .email a {
    color: var(--action-color);
    font-weight: 500;
}
.page_about .address {
    position: relative;
    overflow: hidden;
    background: var(--bg-trust);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    font-size: var(--text-md);
    line-height: 1.65;
    color: var(--text-secondary);
}
.page_about .address::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-dark);
}

/* Editorial Masthead */
.page_masthead h2 {
    font-size: var(--title-lg) !important;
    margin-top: var(--space-lg) !important;
    padding-bottom: var(--space-xs) !important;
    border-bottom: 1px solid var(--border-light) !important;
}
.page_masthead .user_listing {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-sm);
}
.page_masthead .user_listing li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-sm);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: box-shadow var(--transition-fast);
}
.page_masthead .user_listing li:hover {
    box-shadow: var(--shadow-sm);
}
.page_masthead .user_listing .name {
    font-weight: 700;
    color: var(--text-primary);
}
.page_masthead .user_listing .affiliation {
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--text-md);
}
.page_masthead .user_listing .affiliation::before {
    content: "— ";
    color: var(--border-dark);
}
.page_masthead .user_listing .date_start {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
}
.page_masthead hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: var(--space-lg) 0;
}

/* Submissions Page — Most important conversion page */
.page_submissions .cmp_notification {
    background: var(--bg-trust) !important;
    border-left-color: var(--action-color) !important;
    padding: var(--space-md) !important;
    font-size: var(--text-base) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: var(--space-lg) !important;
}
.page_submissions .cmp_notification a {
    font-weight: 700 !important;
    color: var(--action-color) !important;
    text-decoration: underline !important;
}
.page_submissions h2 {
    font-family: var(--font-ui) !important;
    font-size: var(--title-lg) !important;
    font-weight: 700 !important;
    color: var(--academic-blue) !important;
    padding-bottom: var(--space-xs) !important;
    border-bottom: 2px solid var(--academic-blue) !important;
    margin-top: var(--space-lg) !important;
    margin-bottom: var(--space-sm) !important;
}
.page_submissions .author_guidelines,
.page_submissions .submission_checklist,
.page_submissions .section_policy,
.page_submissions .copyright_notice,
.page_submissions .privacy_statement {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.page_submissions ol,
.page_submissions ul {
    padding-left: var(--space-md);
    line-height: 1.75;
}
.page_submissions li {
    margin-bottom: var(--space-xs);
    position: relative;
}
.page_submissions ol li {
    counter-increment: step-counter;
}
.page_submissions p {
    line-height: 1.75;
    font-size: var(--text-base);
    color: var(--text-secondary);
}


/* =========================================
   19. Search Page — Full Redesign
   Ref: ScienceDirect / Google Scholar style
========================================= */

/* Hero search section */
/* search page: no special overrides — inherits global padding */
.page_search .search-hero {
    text-align: center;
    padding: var(--space-xs) 0 var(--space-sm);
    max-width: 720px;
    margin: 0 auto;
}
.page_search .search-hero > h1 {
    font-family: var(--font-heading);
    font-size: var(--display-sm);
    font-weight: 700;
    color: var(--academic-blue);
    margin-bottom: 4px;
}
.page_search .search-subtitle {
    font-size: var(--title-md);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

/* ── Search bar (inline input + button) ── */
.page_search .search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.page_search .search-bar:focus-within {
    border-color: var(--action-color);
    box-shadow: 0 0 0 4px rgba(0, 115, 152, 0.1), var(--shadow-md);
}
.page_search .search-bar-icon {
    display: flex;
    align-items: center;
    padding: 0 0 0 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.page_search .search-bar-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-size: var(--text-lg);
    font-family: var(--font-ui);
    color: var(--text-primary);
    background: transparent;
    min-width: 0;
    box-shadow: none;
}
.page_search .search-bar-input::placeholder {
    color: var(--text-muted);
}
.page_search .search-bar-btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: var(--action-color);
    color: var(--bg-white);
    border: none;
    border-radius: 0;
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: background var(--transition-fast);
    line-height: 1.4;
    height: 100%;
}
.page_search .search-bar-btn:hover {
    background: var(--action-hover);
}
.page_search .search-bar-btn:disabled,
.page_search .search-filter-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}
.search-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: searchSpin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes searchSpin {
    to { transform: rotate(360deg); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Search autocomplete dropdown ── */
.search-suggest-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 360px;
    overflow-y: auto;
}
.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: var(--text-md);
    line-height: 1.4;
}
.search-suggest-item:hover,
.search-suggest-item.active {
    background: #f0f9ff;
}
.search-suggest-item .suggest-icon {
    flex-shrink: 0;
    font-size: var(--text-lg);
    width: 24px;
    text-align: center;
}
.search-suggest-item .suggest-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1a202c;
}
.search-suggest-item .suggest-badge {
    flex-shrink: 0;
    font-size: var(--text-xs);
    padding: 2px 8px;
    border-radius: var(--radius-md);
    font-weight: 500;
}
.suggest-type-article .suggest-badge {
    background: #dbeafe;
    color: #1e40af;
}
.suggest-type-author .suggest-badge {
    background: #fce7f3;
    color: #9d174d;
}
.suggest-type-keyword .suggest-badge {
    background: #d1fae5;
    color: #065f46;
}
.search-filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    font-size: var(--text-md);
    color: #374151;
    background: #fff;
    appearance: auto;
}
.search-filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: var(--focus-ring);
}

/* ── Collapsible advanced filters ── */
.page_search .search-advanced-panel {
    margin-top: var(--space-xs);
    text-align: left;
}
.page_search .search-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    list-style: none;
    user-select: none;
}
.page_search .search-advanced-toggle::-webkit-details-marker {
    display: none;
}
.page_search .search-advanced-toggle:hover {
    color: var(--action-color);
    background: rgba(0, 115, 152, 0.05);
}
.page_search .search-advanced-panel[open] .search-advanced-toggle {
    color: var(--action-color);
}
.page_search .search-filters-body {
    margin-top: var(--space-sm);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}
/* filter-group no longer needed with date inputs */
.page_search .search-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.page_search .search-filter-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.page_search .search-filter-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
/* ── Date range picker (replaces Year/Month/Day dropdowns) ── */
.page_search .search-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}
.page_search .search-date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.page_search .search-date-field label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0;
}
.page_search .search-date-input,
.page_search .search-date-input + .flatpickr-input {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: var(--text-md);
    color: var(--text-primary);
    background: var(--bg-white);
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
    cursor: pointer;
}
.page_search .search-date-input:focus,
.page_search .search-date-input + .flatpickr-input:focus,
.page_search .flatpickr-input.active {
    border-color: var(--action-color);
    outline: none;
    box-shadow: var(--focus-ring);
}
.page_search .flatpickr-input::placeholder {
    color: var(--text-muted);
}
.page_search .search-date-separator {
    color: var(--text-muted);
    font-size: var(--title-md);
    padding-top: 18px;
}

/* Legacy select styling (keep for journal context dropdown) */
.page_search .search-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}
.page_search .search-filter-select:focus {
    border-color: var(--action-color);
    outline: none;
}
.page_search .search-filter-input {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    width: 100%;
    box-sizing: border-box;
}
.page_search .search-filter-input:focus {
    border-color: var(--action-color);
    outline: none;
    box-shadow: var(--focus-ring);
}
.page_search .search-filter-actions {
    text-align: right;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
}
.page_search .search-filter-btn {
    padding: 8px 24px;
    background: var(--action-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.page_search .search-filter-btn:hover {
    background: var(--action-hover);
}

/* hide old form elements that leak through */
.page_search .cmp_form { display: none !important; }
.page_search .search-form { display: block; }

/* ── Results section ── */
.page_search .search-results-section {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
}
.page_search .search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--space-md);
}
.page_search .search-results-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--title-md);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    border: none;
}
.page_search .search-results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    background: var(--action-color);
    color: var(--bg-white);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-lg);
}

/* ── Sort controls ── */
.page_search .search-sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.page_search .search-sort-label {
    font-size: var(--text-md);
    color: var(--text-secondary);
    white-space: nowrap;
}
.page_search .search-sort-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color var(--transition-normal);
}
.page_search .search-sort-select:hover {
    border-color: var(--action-color);
}
.page_search .search-sort-select:focus-visible {
    outline: none;
    border-color: var(--action-color);
    box-shadow: var(--focus-ring);
}

/* ── Search syntax help panel ── */
.page_search .search-syntax-panel {
    margin-top: 8px;
    text-align: left;
}
.page_search .search-syntax-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    list-style: none;
    user-select: none;
    transition: color var(--transition-normal), background var(--transition-normal);
}
.page_search .search-syntax-toggle::-webkit-details-marker {
    display: none;
}
.page_search .search-syntax-toggle:hover {
    color: var(--action-color);
    background: rgba(0, 115, 152, 0.05);
}
.page_search .search-syntax-panel[open] .search-syntax-toggle {
    color: var(--action-color);
}
.page_search .search-syntax-body {
    margin-top: 8px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    animation: slideDown 0.2s ease-out;
}
.page_search .search-syntax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-md);
}
.page_search .search-syntax-table th {
    text-align: left;
    padding: 6px 10px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}
.page_search .search-syntax-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.page_search .search-syntax-table tr:last-child td {
    border-bottom: none;
}
.page_search .search-syntax-table code {
    background: var(--bg-white);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: var(--text-sm);
    color: var(--action-color);
    border: 1px solid var(--border-color);
}

.page_search .search_results {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page_search .search_results > li {
    list-style: none;
    margin-bottom: var(--space-sm);
}
/* Card styles now come from .ac-article-card base in components.css */
.page_search .search_results .meta {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Empty state ── */
.page_search .search-empty-state {
    text-align: center;
    padding: var(--space-md) var(--space-md);
    max-width: 480px;
    margin: var(--space-sm) auto 0;
}
.page_search .search-empty-icon {
    margin-bottom: var(--space-sm);
}
.page_search .search-empty-icon svg {
    width: 48px;
    height: 48px;
}
.page_search .search-empty-state h3 {
    font-size: var(--title-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}
.page_search .search-empty-state p {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.page_search .search-empty-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.page_search .search-empty-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 600;
}
.page_search .search-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-trust);
    color: var(--action-color);
    border-radius: var(--radius-xs);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.page_search .search-tag:hover {
    background: var(--bg-white);
    border-color: var(--action-color);
}

/* Search keyword highlight */
.search-highlight {
    background: #FEF3C7;
    color: inherit;
    padding: 1px 2px;
    border-radius: var(--radius-sm);
    font-style: normal;
}

/* Hide the old notification in new template */
.page_search .search-empty-state + .cmp_notification {
    display: none;
}


/* =========================================
   20. Issue / Archive Pages
========================================= */
body:not(.pkp_page_index) .page.page_issue {
    padding: var(--space-md) var(--space-lg) var(--space-lg) !important;
}
.page_issue h1 {
    margin-bottom: var(--space-md) !important;
}
.page_issue .cmp_notification {
    text-align: center !important;
    padding: var(--space-xl) var(--space-lg) !important;
    border-left: none !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-white) !important;
    font-size: var(--text-base) !important;
}
.page_issue_archive .cmp_notification,
.page_issue_archive > p {
    text-align: center !important;
    padding: var(--space-xl) var(--space-lg) !important;
    border-left: none !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-white) !important;
    font-size: var(--text-base) !important;
    color: var(--text-muted) !important;
}

/* Archive — Page Header */
.page_issue_archive > h1 {
    display: none;
}
.ac-archive-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--academic-blue);
}
.ac-archive-title {
    font-size: var(--title-2xl);
    font-weight: 700;
    color: var(--academic-blue);
    margin: 0 0 8px;
}
.ac-archive-stats {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.ac-archive-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-md);
    color: var(--text-secondary);
}
.ac-archive-stat strong {
    color: var(--academic-blue);
    font-weight: 600;
}
.ac-archive-stat i {
    color: var(--academic-blue);
    font-size: 0.85em;
}

/* Archive — Year Group Accordion */
.ac-archive-year-group {
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.ac-archive-year-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--space-md);
    background: var(--bg-light);
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: background var(--transition-normal), border-color var(--transition-normal);
    user-select: none;
}
.ac-archive-year-heading::-webkit-details-marker {
    display: none;
}
.ac-archive-year-group[open] > .ac-archive-year-heading {
    background: var(--academic-blue);
    color: #fff;
    border-color: var(--academic-blue);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.ac-archive-year-label {
    font-size: var(--title-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ac-archive-year-label i {
    font-size: 0.95em;
}
.ac-archive-year-count {
    font-size: var(--text-sm);
    font-weight: 400;
    opacity: 0.7;
}
.ac-archive-year-group[open] > .ac-archive-year-heading .ac-archive-year-count {
    opacity: 0.85;
}
.ac-archive-year-arrow {
    font-size: var(--text-sm);
    transition: transform var(--transition-normal);
    margin-left: 8px;
}
.ac-archive-year-group[open] > .ac-archive-year-heading .ac-archive-year-arrow {
    transform: rotate(180deg);
}
.ac-archive-year-content {
    padding: var(--space-md) var(--space-sm);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--bg-light);
}

/* Archive — Issue Card (horizontal) */
.ac-archive-issue {
    position: relative;
    display: flex;
    align-items: stretch;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
    margin-bottom: var(--space-sm);
}
.ac-archive-issue:last-child {
    margin-bottom: 0;
}
.ac-archive-issue:hover {
    box-shadow: var(--shadow-md);
    border-color: #c5d0db;
    transform: translateY(-1px);
}
.ac-archive-issue--current {
    border-color: color-mix(in srgb, var(--academic-blue) 30%, #fff);
    box-shadow: var(--shadow-sm);
}
.ac-archive-issue--current:hover {
    border-color: color-mix(in srgb, var(--academic-blue) 50%, #fff);
}

/* Cover thumbnail */
.ac-archive-issue-cover {
    flex: 0 0 120px;
    display: block;
    overflow: hidden;
    background: var(--bg-light);
}
.ac-archive-issue-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}
.ac-archive-issue:hover .ac-archive-issue-cover img {
    transform: scale(1.03);
}

/* Issue info */
.ac-archive-issue-info {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.ac-archive-issue-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.ac-archive-issue-title {
    font-size: var(--title-sm);
    font-weight: 600;
    color: var(--academic-blue);
    text-decoration: none;
    line-height: 1.35;
    display: inline;
}
.ac-archive-issue-title:hover {
    color: var(--action-color);
}
/* Stretched link: make the whole card clickable via the title anchor */
.ac-archive-issue-title::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ac-archive-issue-series {
    font-weight: 400;
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-left: 6px;
}
/* When showTitle is off, the series span is the only visible text inside the
   title link — give it link affordance instead of plain gray text */
.ac-archive-issue-series--solo {
    margin-left: 0;
    font-weight: 600;
    font-size: var(--title-sm);
    color: var(--academic-blue);
}
.ac-archive-issue-title:hover .ac-archive-issue-series--solo {
    color: var(--action-color);
}
.ac-archive-issue-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--academic-blue);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    flex-shrink: 0;
}
.ac-archive-issue-badge i {
    font-size: var(--text-xs);
}

/* Metadata row */
.ac-archive-issue-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.ac-archive-issue-date,
.ac-archive-issue-articles {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    color: var(--text-light);
}
.ac-archive-issue-date i,
.ac-archive-issue-articles i {
    font-size: 0.78em;
    opacity: 0.7;
}

/* Description */
.ac-archive-issue-desc {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Arrow link */
.ac-archive-issue-link {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--text-lg);
    transition: color var(--transition-normal), background var(--transition-normal);
    border-left: 1px solid var(--border-light);
}
.ac-archive-issue:hover .ac-archive-issue-link {
    color: var(--academic-blue);
    background: rgba(0, 70, 96, 0.03);
}

/* Archive — List wrapper (keep for the <ul>) */
.page_issue_archive .issues_archive {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page_issue_archive .issues_archive > li {
    list-style: none;
}

/* Archive — Responsive */
@media (max-width: 768px) {
    .ac-archive-header {
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-sm);
    }
    .ac-archive-title {
        font-size: var(--title-lg);
    }
    .ac-archive-stats {
        gap: var(--space-sm);
    }
    .ac-archive-issue {
        flex-direction: column;
    }
    .ac-archive-issue-cover {
        flex: none;
        height: 140px;
        width: 100%;
    }
    .ac-archive-issue-link {
        border-left: none;
        border-top: 1px solid var(--border-light);
        flex: none;
        height: 42px;
        width: 100%;
    }
    .ac-archive-year-heading {
        padding: 10px 12px;
    }
    .ac-archive-year-label {
        font-size: var(--text-base);
    }
}
@media (max-width: 480px) {
    .ac-archive-issue-meta {
        flex-direction: column;
        gap: 4px;
    }
    .ac-archive-issue-top {
        flex-direction: column;
        gap: 6px;
    }
}

/* Issue TOC */
body .obj_issue_toc {
    margin-bottom: var(--space-md);
}
body .obj_issue_toc .sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
body .obj_issue_toc .section {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 0;
}
.page_issue .cmp_article_list > li {
    list-style: none;
    margin-bottom: var(--space-sm);
}
/* Card styles now come from .ac-article-card base in components.css */

/* =========================================
   22. Privacy / Simple Content Pages
========================================= */
.page_privacy p,
.page_about p {
    line-height: 1.75;
    font-size: var(--text-base);
}


/* =========================================
   23. Article Detail Overrides
========================================= */
body .obj_article_details {
    line-height: 1.7;
}
body .obj_article_details .page_title {
    font-family: var(--font-heading) !important;
    font-size: var(--display-sm) !important;
    line-height: 1.35 !important;
    margin-bottom: var(--space-sm) !important;
    color: var(--academic-blue) !important;
}
body .obj_article_details .authors {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--text-base);
    color: var(--text-secondary);
}
body .obj_article_details .authors .name {
    font-weight: 600;
    color: var(--text-primary);
}
body .obj_article_details .authors .orcid a {
    color: var(--success-green) !important;
    font-size: var(--text-sm);
}
body .obj_article_details .published,
body .obj_article_details .date {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
body .obj_article_details .main_entry {
    margin-bottom: var(--space-lg);
}
body .obj_article_details .main_entry .item {
    margin-bottom: var(--space-md);
}
body .obj_article_details .main_entry h2,
body .obj_article_details .main_entry h3 {
    font-family: var(--font-ui) !important;
    font-size: var(--title-md) !important;
    font-weight: 700 !important;
    color: var(--academic-blue) !important;
    margin-bottom: var(--space-xs) !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
body .obj_article_details .item.abstract .label {
    font-size: var(--title-md) !important;
    font-weight: 700 !important;
    color: var(--academic-blue) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    margin-bottom: var(--space-xs) !important;
}
body .obj_article_details .item.abstract p {
    font-size: var(--text-base) !important;
    line-height: 1.8 !important;
    color: var(--text-secondary) !important;
}
body .obj_article_details .item.keywords .label {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    font-size: var(--text-md) !important;
}
body .obj_article_details .item.keywords .value {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 6px !important;
}
body .obj_article_details .entry_details {
    background: var(--bg-trust);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
}
body .obj_article_details .entry_details .item {
    padding: 10px 12px;
    border-bottom: none;
    margin-right: 0;
    margin-bottom: 8px;
}
body .obj_article_details .entry_details .item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
body .obj_article_details .entry_details .label:not(.citation_formats_button) {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif) !important;
    font-size: var(--text-xs) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-muted) !important;
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
}
body .obj_article_details .entry_details .value {
    font-size: var(--text-md);
    color: var(--text-primary);
}
body .obj_article_details .item.doi a {
    color: var(--action-color);
    font-weight: 500;
}
body .obj_article_details .galleys_links {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}
body .obj_article_details .references .value ol {
    padding-left: var(--space-md);
}
body .obj_article_details .references .value li {
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}


/* ==========================================================================
   Section 30: Submissions / Author Guidelines Page
   ========================================================================== */

.ac-submissions-page {
    max-width: 1200px;
    margin: 0 auto;
}

.ac-submissions-hero {
    text-align: center;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f2 50%, #c3dced 100%);
    border: 1px solid #b8d4e3;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}
.ac-submissions-hero h1 {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: var(--display-sm);
    font-weight: 700;
    color: var(--academic-blue, #004660);
    margin: 0 0 8px;
}
.ac-submissions-subtitle {
    font-size: var(--text-base);
    color: var(--text-color, #444);
    max-width: 560px;
    margin: 0 auto 16px;
    line-height: 1.5;
}
.ac-submissions-hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.ac-submissions-hero .ac-btn-primary {
    background: var(--action-color, #007398);
    color: #fff;
    border-color: var(--action-color, #007398);
    font-weight: 600;
    padding: 10px 28px;
    font-size: var(--text-base);
}
.ac-submissions-hero .ac-btn-primary:hover {
    background: var(--academic-blue, #004660);
    border-color: var(--academic-blue, #004660);
}
.ac-submissions-hero .ac-btn-outline {
    border-color: var(--action-color, #007398);
    color: var(--action-color, #007398);
    background: transparent;
    padding: 10px 20px;
    font-size: var(--text-md);
}
.ac-submissions-hero .ac-btn-outline:hover {
    background: var(--action-color, #007398);
    color: #fff;
}
.ac-submissions-closed {
    display: inline-block;
    padding: 10px 20px;
    background: #fff3cd;
    color: #856404;
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* Workflow Steps */
.ac-submissions-workflow {
    margin-bottom: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.ac-submissions-workflow > .ac-submissions-section-title {
    text-align: center;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
}
.ac-workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.ac-workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 160px;
    flex: 1;
    min-width: 120px;
}
.ac-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--action-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--title-md);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    flex-shrink: 0;
}
.ac-step-title {
    font-size: var(--text-base);
    font-weight: var(--title-weight);
    color: var(--heading-color);
    margin: 0 0 4px;
}
.ac-step-content p {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}
.ac-workflow-connector {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin-top: 22px;
    flex-shrink: 0;
}

/* Two-Column Layout */
.ac-submissions-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-lg);
    align-items: start;
}
.ac-submissions-main {
    min-width: 0;
}
.ac-submissions-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: 12px;
}
.ac-submissions-section-title {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: var(--title-md);
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 var(--space-sm);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--action-color);
}
.ac-guidelines-content,
.ac-checklist-content,
.ac-section-policy-content {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-color);
}
.ac-checklist-content ol,
.ac-checklist-content ul {
    list-style: none;
    padding-left: 0;
}
.ac-checklist-content li {
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}
.ac-checklist-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-xs);
    background: transparent;
    border: 2px solid var(--action-color);
    color: var(--action-color);
    font-size: var(--text-xs);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Sidebar */
.ac-submissions-sidebar {
    position: sticky;
    top: var(--space-md);
}
.ac-sidebar-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.ac-sidebar-card-title {
    font-size: var(--title-sm);
    font-weight: var(--title-weight);
    color: var(--heading-color);
    margin: 0 0 var(--space-sm);
}
.ac-sidebar-card p {
    font-size: var(--text-md);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--space-sm);
}
.ac-sidebar-card-primary {
    background: linear-gradient(135deg, var(--academic-blue-dark, #003042), var(--academic-blue, #004660));
    border-color: transparent;
}
.ac-sidebar-card-primary .ac-sidebar-card-title,
.ac-sidebar-card-primary p {
    color: #fff;
}
.ac-sidebar-card-primary .ac-btn-primary {
    background: #fff;
    color: var(--academic-blue, #004660);
}
.ac-sidebar-card-primary .ac-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Key Info List */
.ac-key-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-key-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: var(--text-md);
}
.ac-key-info-list li:last-child {
    border-bottom: none;
}
.ac-info-label {
    color: var(--text-light);
}
.ac-info-value {
    font-weight: 600;
    color: var(--heading-color);
}

/* Page Nav (Anchor Links) */
.ac-page-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-page-nav li {
    margin-bottom: 4px;
}
.ac-page-nav a {
    display: block;
    padding: 6px 10px;
    font-size: var(--text-md);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}
.ac-page-nav a:hover {
    background: #f0f3f6;
    color: var(--action-color);
    border-left-color: var(--action-color);
}

/* Button modifiers */
.ac-btn-lg {
    padding: 14px 32px;
    font-size: var(--title-sm);
}
.ac-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}
.ac-btn-sm {
    padding: 8px 16px;
    font-size: var(--text-md);
}

/* Bottom CTA */
.ac-submissions-bottom-cta {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, #f0f7ff 0%, #e3edf7 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
}
.ac-submissions-bottom-cta .ac-submissions-section-title {
    font-size: var(--title-lg);
    font-weight: 700;
    color: var(--heading-color);
    border-bottom: none;
    margin: 0 0 var(--space-xs);
    padding-bottom: 0;
}
.ac-submissions-bottom-cta p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto var(--space-md);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .ac-submissions-content {
        grid-template-columns: 1fr;
    }
    .ac-submissions-sidebar {
        position: static;
    }
    .ac-sidebar-toc {
        display: none;
    }
    .ac-workflow-connector {
        display: none;
    }
    .ac-workflow-steps {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    .ac-workflow-step {
        flex-direction: row;
        text-align: left;
        max-width: none;
        gap: var(--space-sm);
    }
    .ac-step-number {
        margin-bottom: 0;
    }
}
@media (max-width: 600px) {
    .ac-submissions-hero {
        padding: var(--space-md);
    }
    .ac-submissions-hero h1 {
        font-size: var(--title-lg);
    }
    .ac-submissions-section {
        padding: var(--space-sm);
    }
}


/* ==========================================================================
   Section 30b: APC (Article Processing Charge) Page
   ========================================================================== */

.ac-apc-page {
    max-width: none;
}
.ac-apc-header {
    text-align: center;
    padding: var(--space-md) 0;
}
.ac-apc-header h1 {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: var(--title-2xl);
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 6px;
}
.ac-apc-subtitle {
    font-size: var(--text-base);
    color: var(--text-light);
    margin: 0;
}
.ac-apc-content {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ac-apc-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ac-apc-card.ac-apc-main {
    border: 2px solid var(--action-color);
}
.ac-apc-card-header {
    padding: 12px var(--space-md);
    background: var(--bg-trust, #F0F4F8);
    border-bottom: 1px solid var(--border-color);
}
.ac-apc-card-header h2 {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    margin: 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--heading-color);
}
.ac-apc-card-body {
    padding: var(--space-md);
}
.ac-apc-price {
    text-align: center;
    padding: 12px 0;
}
.ac-apc-price .ac-apc-currency {
    font-size: var(--title-md);
    font-weight: 500;
    color: var(--text-light);
    vertical-align: top;
    margin-right: 4px;
}
.ac-apc-price .ac-apc-amount {
    font-size: var(--display-md);
    font-weight: 700;
    color: var(--heading-color);
}
.ac-apc-free .ac-apc-amount {
    font-size: var(--title-2xl);
    color: var(--success-green, #2E7D32);
}
.ac-apc-waiver {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #E8F8F0;
    border: 1px solid #A9DFBF;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 12px;
}
.ac-apc-waiver-icon {
    color: var(--success-green, #2E7D32);
    flex-shrink: 0;
    margin-top: 2px;
}
.ac-apc-waiver strong {
    display: block;
    color: var(--success-green, #2E7D32);
    font-size: var(--text-md);
    margin-bottom: 2px;
}
.ac-apc-waiver p {
    margin: 0 0 2px;
    font-size: var(--text-md);
    color: var(--text-color);
}
.ac-apc-waiver small {
    font-size: var(--text-xs);
    color: var(--text-light);
}

/* APC lists */
.ac-apc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ac-apc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-md);
    color: var(--text-color);
    line-height: 1.5;
}
.ac-apc-icon {
    flex-shrink: 0;
}
.ac-apc-check-icon {
    color: var(--success-green, #2E7D32);
    flex-shrink: 0;
}
.ac-apc-text {
    font-size: var(--text-md);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .ac-apc-header h1 { font-size: var(--title-lg); }
    .ac-apc-price .ac-apc-amount { font-size: var(--display-sm); }
    .ac-apc-card-body { padding: var(--space-sm); }
}


/* ==========================================================================
   Section 31: About the Journal Page
   ========================================================================== */

.ac-about-page {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
}
.ac-about-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.ac-about-header h1 {
    font-size: var(--display-md);
    font-weight: 700;
    margin: 0 0 var(--space-sm);
}
.ac-about-intro {
    font-size: var(--title-md);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.ac-about-description {
    position: relative;
    overflow: hidden;
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: #f8f9fa;
    border-radius: var(--radius-md);
}
.ac-about-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--action-color);
}

/* Key Facts Grid */
.ac-about-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.ac-fact-card {
    text-align: center;
    padding: var(--space-md);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition-fast);
}
.ac-fact-card:hover {
    box-shadow: var(--shadow-md);
}
.ac-fact-icon {
    font-size: var(--display-sm);
    margin-bottom: var(--space-xs);
}
.ac-fact-card-title {
    font-size: var(--title-xs);
    color: var(--text-light);
    font-weight: 500;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ac-fact-card p {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
}

/* About Sections */
.ac-about-section {
    margin-bottom: var(--space-xl);
}
.ac-about-section > h2 {
    font-size: var(--title-xl);
    color: var(--heading-color);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--action-color);
}
.ac-about-section > p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-color);
}

/* Policies Grid */
.ac-policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}
.ac-policy-item {
    position: relative;
    overflow: hidden;
    padding: var(--space-md);
    background: #f8f9fa;
    border-radius: var(--radius-md);
}
.ac-policy-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--action-color);
}
.ac-policy-item-title {
    font-size: var(--title-sm);
    font-weight: var(--title-weight);
    color: var(--heading-color);
    margin: 0 0 var(--space-xs);
}
.ac-policy-item p {
    font-size: var(--text-md);
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

/* Quick Links Grid */
.ac-about-links {
    margin-bottom: var(--space-xl);
}
.ac-about-section-title {
    font-size: var(--title-xl);
    font-weight: var(--title-weight-bold);
    color: var(--heading-color);
    margin: 0 0 var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--action-color);
}
.ac-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}
.ac-link-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 500;
    transition: all var(--transition-fast);
}
.ac-link-card:hover {
    border-color: var(--action-color);
    box-shadow: var(--shadow-sm);
    color: var(--action-color);
}
.ac-link-icon {
    font-size: var(--title-xl);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ac-about-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .ac-about-facts {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Section 32: Issue Empty States (Current Issue + Archives)
   ========================================================================== */

.ac-empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: var(--space-lg) auto;
}
.ac-empty-state-icon {
    font-size: var(--display-lg);
    margin-bottom: var(--space-md);
}
.ac-empty-state p {
    font-size: var(--text-lg);
    color: var(--text-light);
    line-height: 1.7;
    max-width: 450px;
    margin: 0 auto var(--space-lg);
}
.ac-empty-state-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}


/* ==========================================================================
   Section 33: Article Details Page
   ========================================================================== */

.ac-article-details {
    max-width: 1200px;
    margin: 0 auto;
}

/* Article Page container — tighter padding */
body.pkp_page_article .page.page_article {
    padding: var(--space-md) var(--space-md) var(--space-lg) !important;
}

/* Article Header */
.ac-article-header {
    margin-bottom: var(--space-sm);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.ac-article-section-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f0fe;
    color: var(--action-color);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}
.ac-article-title {
    font-size: var(--display-sm);
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
    margin: 0 0 var(--space-xs);
}
.ac-article-subtitle {
    font-size: var(--title-lg);
    font-weight: 400;
    color: var(--text-light);
    margin: 0 0 var(--space-md);
}
.ac-article-authors-compact {
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
    line-height: 1.8;
}
.ac-author-inline {
    color: var(--heading-color);
    font-weight: 500;
}
.ac-orcid-inline {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 2px;
}
.ac-orcid-inline img,
.ac-orcid-inline svg {
    width: 16px;
    height: 16px;
}
.ac-article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    font-size: var(--text-md);
    color: var(--text-light);
}
.ac-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ac-meta-item + .ac-meta-item::before {
    content: "·";
    margin-right: 4px;
    color: #ccc;
}
.ac-meta-doi a {
    color: var(--action-color);
    text-decoration: none;
    word-break: break-all;
}
.ac-meta-doi a:hover {
    text-decoration: underline;
}

/* DOI Copy Button */
.ac-doi-copy-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 10px;
    font-size: var(--text-xs);
    font-family: var(--font-sans, sans-serif);
    font-weight: 600;
    color: var(--action-color, #1a5276);
    background: #EBF5FB;
    border: 1px solid #D4E6F1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    vertical-align: middle;
    gap: 3px;
}
.ac-doi-copy-btn:hover {
    background: var(--action-color, #1a5276);
    color: #fff;
    border-color: var(--action-color, #1a5276);
}

/* Article Statistics Bar */
.ac-article-stats-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E8ECF0;
    border-radius: var(--radius-md);
}
.ac-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    font-family: var(--font-sans, sans-serif);
    color: #4A5568;
}
.ac-stat-item svg {
    color: #7B8D9E;
}
.ac-stat-value {
    font-weight: 600;
    color: #1C2833;
}

/* Article Type Badge (used in section badge) */
.ac-article-section-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-sans, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    background: #EBF5FB;
    color: #1A5276;
}

/* Compact article detail items for tighter sidebar layout */
.obj_article_details .item {
    padding: 10px 12px !important;
}
.obj_article_details .sub_item {
    margin-bottom: 6px !important;
}
.obj_article_details .sub_item:last-child {
    margin-bottom: 0 !important;
}
.obj_article_details .main_entry .item .label {
    margin-bottom: 10px !important;
}

/* Article Two-Column — override default theme float layout at ALL breakpoints */
.pkp_page_article .obj_article_details .row.ac-article-row,
.obj_article_details .row.ac-article-row {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-md);
    align-items: start;
    float: none;
    width: 100%;
    margin: 0;
    border: none;
    padding: var(--space-sm) 0;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    border-top: none;
    border-bottom: none;
}
.obj_article_details .row.ac-article-row::before,
.obj_article_details .row.ac-article-row::after {
    display: none;
    content: none;
}
.pkp_page_article .obj_article_details .main_entry.ac-article-main,
.obj_article_details .main_entry.ac-article-main {
    float: none;
    width: 100%;
    border: none;
    border-right: none;
    min-width: 0;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
.pkp_page_article .obj_article_details .entry_details.ac-article-sidebar,
.obj_article_details .entry_details.ac-article-sidebar {
    float: none;
    width: 100%;
    margin: 0;
    margin-left: 0;
    border: none;
    border-left: none;
}

/* Main Content Sections */
.ac-article-section {
    margin-bottom: var(--space-sm);;
}
.ac-article-section .label,
.ac-article-main > .item > .label {
    font-size: var(--title-md);
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--action-color);
}
.ac-abstract-content {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-color);
}

/* Keywords as tags */
.ac-article-keywords {
    margin-bottom: 12px;
}
.ac-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ac-keyword-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f3f6;
    color: var(--text-color);
    border-radius: var(--radius-xs);
    font-size: var(--text-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}
.ac-keyword-tag:hover {
    background: #e8f0fe;
    border-color: var(--action-color);
    color: var(--action-color);
}

/* References */
.ac-references-list {
    counter-reset: ref-counter;
}
.ac-references-list p {
    counter-increment: ref-counter;
    padding-left: 32px;
    text-indent: -32px;
    font-size: var(--text-md);
    line-height: 1.65;
    margin-bottom: 6px;
    color: var(--text-color);
    word-break: break-word;
}
.ac-references-list p::before {
    content: "[" counter(ref-counter) "] ";
    font-weight: 600;
    color: var(--action-color);
    font-size: var(--text-sm);
}
.ac-references-list p a {
    color: var(--action-color);
    word-break: break-all;
}

/* Author Bio */
.ac-author-bio-item {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid #f0f0f0;
}
.ac-author-bio-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ac-bio-affiliation {
    display: block;
    font-size: var(--text-md);
    color: var(--text-light);
    font-weight: 400;
}
.item.author_bios .authors {
    margin: 0;
    padding: 0;
}

/* Sidebar */
.ac-article-sidebar {
    position: sticky;
    top: var(--space-md);
}
.ac-sidebar-heading {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}
.ac-galley-card {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.ac-galley-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ac-galley-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.ac-galley-view {
    background: var(--action-color);
    color: #fff;
}
.ac-galley-view:hover {
    background: var(--action-color-dark, #1a4fa0);
    color: #fff;
    text-decoration: none;
}
.ac-galley-download {
    background: #fff;
    color: var(--action-color);
    border: 1.5px solid var(--action-color);
}
.ac-galley-download:hover {
    background: var(--action-color);
    color: #fff;
    text-decoration: none;
}
.ac-galley-card .galleys_links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-galley-card .galleys_links li {
    margin-bottom: var(--space-xs);
}
.ac-galley-card .obj_galley_link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-md);
}

/* B4: CSL Citation Block — Primary format + compact switcher
   Design: Nature/MDPI pattern — show primary format, progressive disclosure for alternatives */
.item.citation {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.item.citation .sub_item.citation_display {
    margin: 0 !important;
    padding: 0 !important;
}
.item.citation .sub_item.citation_display > .label,
.item.citation .sub_item.citation_display > .ac-sidebar-heading {
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--heading-color);
    text-transform: none;
    letter-spacing: normal;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

/* Citation output with copy button */
.csl-output-wrap {
    position: relative;
    margin-bottom: 10px;
}
.item.citation #citationOutput {
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--text-color);
    padding: 12px 14px;
    padding-right: 80px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0;
    transition: opacity var(--transition-normal);
    word-break: break-word;
}
.csl-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fff;
    color: var(--action-color, #3b82f6);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1;
}
.csl-copy-btn:hover {
    background: var(--action-color, #3b82f6);
    color: #fff;
    border-color: var(--action-color, #3b82f6);
}
.csl-copy-btn--copied {
    background: #10b981 !important;
    color: #fff !important;
    border-color: #10b981 !important;
}

/* Actions row: format selector + download buttons */
.csl-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.csl-format-select select {
    font-size: var(--text-xs);
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    padding: 5px 28px 5px 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 8px center no-repeat;
    appearance: none;
    cursor: pointer;
    color: var(--text-color);
    min-width: 100px;
}
.csl-format-select select:focus {
    outline: none;
    border-color: var(--action-color, #3b82f6);
    box-shadow: var(--focus-ring);
}
.csl-downloads {
    display: flex;
    align-items: center;
    gap: 6px;
}
.csl-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--action-color, #3b82f6);
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.csl-download-btn:hover {
    background: #EEF2FF;
    border-color: var(--action-color, #3b82f6);
    text-decoration: none;
    color: var(--action-color, #3b82f6);
}
.csl-download-btn svg {
    flex-shrink: 0;
}

/* Hide legacy elements */
.ac-copy-btn { display: none; }

/* Cover thumbnail inside galley card */
.ac-galley-cover-thumb {
    text-align: center;
    margin-bottom: 10px;
}
.ac-galley-cover-thumb img {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

/* Author Cards (sidebar — compact) */
.ac-author-cards {
    /* margin-bottom handled by .item rule */
}
.ac-author-cards .authors {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-author-card {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: var(--text-md);
    line-height: 1.5;
}
.ac-author-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ac-author-card .name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--heading-color);
}
.ac-orcid-compact {
    display: inline-flex;
    vertical-align: middle;
}
.ac-orcid-compact svg.orcid_icon {
    width: 16px;
    height: 16px;
}
.ac-author-card .affiliation {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: 2px;
    line-height: 1.4;
}
.ac-author-card .contributor_roles {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 2px;
}

/* Share Card */
.ac-share-card {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.ac-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ac-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
}
.ac-share-btn:hover {
    border-color: var(--action-color);
    color: var(--action-color);
    text-decoration: none;
}
.ac-share-btn i {
    font-size: var(--text-md);
}
.ac-share-copy.ac-copied {
    background: var(--action-color);
    color: #fff;
    border-color: var(--action-color);
}
.ac-share-twitter:hover { color: #1da1f2; border-color: #1da1f2; }
.ac-share-linkedin:hover { color: #0077b5; border-color: #0077b5; }
.ac-share-email:hover { color: #ea4335; border-color: #ea4335; }

/* Related Articles Card */
.ac-related-card {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: 0;
}
.ac-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-related-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.ac-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ac-related-item a {
    display: block;
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--heading-color);
    line-height: 1.4;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.ac-related-item a:hover {
    color: var(--action-color);
}
.ac-related-date {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 3px;
}

/* No-galley text */
.ac-no-galley-text {
    font-size: var(--text-md);
    color: var(--text-light);
    margin: 0;
    padding: 8px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .obj_article_details .row.ac-article-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .obj_article_details .entry_details.ac-article-sidebar {
        position: static;
    }
    .ac-article-title {
        font-size: var(--title-xl);
    }
}
@media (max-width: 600px) {
    .ac-article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .ac-meta-item + .ac-meta-item::before {
        display: none;
    }
}


/* =========================================
   37. Contact Page
========================================= */
.page_contact {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: var(--space-section) var(--space-md);
}
.page_contact h1 {
    font-family: var(--font-heading);
    font-size: var(--display-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--academic-blue);
}
.page_contact .contact_section {
    display: grid;
    gap: var(--space-lg);
}
.page_contact .address {
    position: relative;
    overflow: hidden;
    background: var(--bg-trust);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-secondary);
}
.page_contact .address::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--academic-blue);
}
.page_contact .contact {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.page_contact .contact h2 {
    font-family: var(--font-heading);
    font-size: var(--title-md);
    color: var(--academic-blue);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 8px;
}
.page_contact .contact h2::before {
    content: '';
    width: 4px;
    height: 1.15em;
    background: var(--action-color);
    border-radius: var(--radius-sm);
}
.page_contact .contact .name {
    font-size: var(--title-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.page_contact .contact .title,
.page_contact .contact .affiliation {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.page_contact .contact .phone,
.page_contact .contact .email {
    margin-top: var(--space-sm);
    font-size: var(--text-md);
}
.page_contact .contact .phone .label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 4px;
}
.page_contact .contact .email a {
    color: var(--action-color);
    text-decoration: none;
    font-weight: 500;
}
.page_contact .contact .email a:hover {
    text-decoration: underline;
}


/* =========================================
   38. Announcements Page
========================================= */
.page_announcements,
.page_announcement {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: var(--space-section) var(--space-md);
}
.page_announcements h1,
.page_announcement h1 {
    font-family: var(--font-heading);
    font-size: var(--display-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--academic-blue);
}
.page_announcements .obj_announcements_list {
    display: grid;
    gap: var(--space-md);
}
.page_announcements .obj_announcement_summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.page_announcements .obj_announcement_summary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.page_announcements .obj_announcement_summary h2 {
    font-family: var(--font-heading);
    font-size: var(--title-md);
    margin-bottom: var(--space-xs);
}
.page_announcements .obj_announcement_summary h2 a {
    color: var(--academic-blue);
    text-decoration: none;
}
.page_announcements .obj_announcement_summary h2 a:hover {
    color: var(--action-color);
}
.page_announcements .obj_announcement_summary .date {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}
.page_announcements .obj_announcement_summary .summary {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}
.page_announcements .obj_announcement_summary .read_more a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--action-color);
    font-size: var(--text-md);
    font-weight: 500;
    text-decoration: none;
    margin-top: var(--space-sm);
}
.page_announcements .obj_announcement_summary .read_more a:hover {
    text-decoration: underline;
}

/* Announcement single page */
.page_announcement .obj_announcement_full {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.page_announcement .obj_announcement_full h1 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: var(--space-xs);
}
.page_announcement .obj_announcement_full .date {
    font-size: var(--text-md);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}
.page_announcement .obj_announcement_full .description {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-primary);
}


/* =========================================
   39. Editorial Masthead Page
========================================= */
.page_masthead {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: var(--space-section) var(--space-md);
}
.page_masthead h1 {
    font-family: var(--font-heading);
    font-size: var(--display-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--academic-blue);
}
.page_masthead h2 {
    font-family: var(--font-heading);
    font-size: var(--title-lg);
    color: var(--academic-blue);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-color);
}
.page_masthead .role_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-sm);
}
.page_masthead .role_list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.page_masthead .role_list li .name {
    font-weight: 600;
    color: var(--text-primary);
}
.page_masthead .role_list li .affiliation {
    font-size: var(--text-md);
    color: var(--text-secondary);
}

/* Editorial Masthead - Card Layout */
.ac-masthead {
    padding: var(--space-xl) var(--space-lg);
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
}
.ac-masthead-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF4F8 100%);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
}
.ac-masthead-header-left {
    flex: 1;
    min-width: 0;
}
.ac-masthead-header h1 {
    font-size: var(--title-xl);
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: none;
    margin: 0 0 6px;
}
.ac-masthead-intro {
    color: var(--text-secondary);
    font-size: var(--text-md);
    margin: 0;
    line-height: 1.5;
}
.ac-masthead-header-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}
.ac-masthead-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    min-width: 72px;
}
.ac-masthead-stat-num {
    font-size: var(--title-xl);
    font-weight: 700;
    color: var(--action-color);
    line-height: 1.2;
}
.ac-masthead-stat-label {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 2px;
}
.ac-masthead-section {
    margin-bottom: 28px;
}
.ac-masthead-section--featured {
    margin-bottom: 28px;
}
.ac-masthead-role-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--action-color);
}
.ac-masthead-role-title {
    font-size: var(--title-md);
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: none;
}
.ac-masthead-role-count {
    font-size: var(--text-sm);
    color: var(--text-light);
    background: #F1F5F9;
    padding: 2px 10px;
    border-radius: var(--radius-md);
}
.ac-masthead-role-desc {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin: -4px 0 14px;
    line-height: 1.5;
}
.ac-masthead-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.ac-masthead-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    max-width: 560px;
}
.ac-masthead-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.ac-masthead-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}
.ac-masthead-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--action-color);
    transform: translateY(-2px);
}
.ac-masthead-card--featured {
    padding: 20px 24px;
    background: linear-gradient(135deg, #FAFCFF 0%, #F0F7FB 100%);
    border: 1px solid #D1E3ED;
}
.ac-masthead-card--featured:hover {
    border-color: var(--action-color);
    box-shadow: var(--shadow-lg);
}
.ac-masthead-card-compact {
    padding: 12px 14px;
}
.ac-masthead-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EEF2FF, #C7D2FE);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ac-masthead-avatar--c0 { background: linear-gradient(135deg, #EEF2FF, #C7D2FE); }
.ac-masthead-avatar--c0 .ac-masthead-avatar-text { color: #4F46E5; }
.ac-masthead-avatar--c1 { background: linear-gradient(135deg, #ECFDF5, #A7F3D0); }
.ac-masthead-avatar--c1 .ac-masthead-avatar-text { color: #059669; }
.ac-masthead-avatar--c2 { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.ac-masthead-avatar--c2 .ac-masthead-avatar-text { color: #B45309; }
.ac-masthead-avatar--c3 { background: linear-gradient(135deg, #FEE2E2, #FECACA); }
.ac-masthead-avatar--c3 .ac-masthead-avatar-text { color: #DC2626; }
.ac-masthead-avatar--c4 { background: linear-gradient(135deg, #E0F2FE, #BAE6FD); }
.ac-masthead-avatar--c4 .ac-masthead-avatar-text { color: #0284C7; }
.ac-masthead-avatar--c5 { background: linear-gradient(135deg, #F3E8FF, #DDD6FE); }
.ac-masthead-avatar--c5 .ac-masthead-avatar-text { color: #7C3AED; }
.ac-masthead-avatar--lg {
    width: 56px;
    height: 56px;
    min-width: 56px;
}
.ac-masthead-avatar-sm {
    width: 36px;
    height: 36px;
    min-width: 36px;
}
.ac-masthead-avatar-text {
    font-size: var(--title-md);
    font-weight: 700;
    color: var(--action-color);
}
.ac-masthead-avatar--lg .ac-masthead-avatar-text {
    font-size: var(--title-xl);
}
.ac-masthead-avatar-sm .ac-masthead-avatar-text {
    font-size: var(--text-md);
}
.ac-masthead-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.ac-masthead-info {
    flex: 1;
    min-width: 0;
}
.ac-masthead-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ac-masthead-card--featured .ac-masthead-name {
    font-size: var(--title-sm);
}
.ac-masthead-card-compact .ac-masthead-name {
    font-size: var(--text-md);
}
.ac-masthead-orcid {
    display: inline-flex;
    align-items: center;
}
.ac-masthead-orcid svg,
.ac-masthead-orcid img {
    width: 16px;
    height: 16px;
}
.ac-masthead-affiliation {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ac-masthead-affiliation svg {
    color: var(--text-light);
    flex-shrink: 0;
}
.ac-masthead-email {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0 0 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ac-masthead-email a {
    color: var(--action-color);
    text-decoration: none;
}
.ac-masthead-email a:hover {
    text-decoration: underline;
}
.ac-masthead-email svg {
    color: var(--text-light);
    flex-shrink: 0;
}
.ac-masthead-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 5px 0 3px;
}
.ac-masthead-tag {
    display: inline-block;
    padding: 1px 8px;
    background: #EDF2F7;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: #4A5568;
    line-height: 1.6;
}
.ac-masthead-bio {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin: 4px 0 2px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ac-masthead-since {
    font-size: var(--text-xs);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.ac-masthead-footer-link {
    text-align: center;
    margin: 24px 0 8px;
    padding: 16px 0;
}
.ac-masthead-history-link {
    color: var(--action-color);
    font-size: var(--text-md);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--action-color);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.ac-masthead-history-link:hover {
    background: var(--action-color);
    color: #fff;
    text-decoration: none;
}
.ac-masthead-history-link:hover svg {
    stroke: #fff;
}
.ac-masthead-reviewer-desc {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}
@media (max-width: 768px) {
    .ac-masthead {
        padding: var(--space-lg) var(--space-sm);
    }
    .ac-masthead-header {
        flex-direction: column;
        text-align: center;
    }
    .ac-masthead-header-stats {
        justify-content: center;
    }
    .ac-masthead-grid,
    .ac-masthead-grid--featured,
    .ac-masthead-grid-compact {
        grid-template-columns: 1fr;
    }
    .ac-masthead-card,
    .ac-masthead-card--featured,
    .ac-masthead-card-compact {
        min-width: 0;
        overflow: hidden;
        word-break: break-word;
    }
    .ac-masthead-section,
    .ac-masthead-section--featured {
        overflow: hidden;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .ac-masthead-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   40. Responsive Fixes (Contact / Announcements)
========================================= */
@media (max-width: 768px) {
    .page_contact,
    .page_announcements,
    .page_announcement,
    .page_masthead {
        padding: var(--space-lg) var(--space-sm);
    }
    .page_contact .contact {
        padding: var(--space-md);
    }
    .page_announcements .obj_announcement_summary {
        padding: var(--space-md);
    }
    .page_announcement .obj_announcement_full {
        padding: var(--space-md);
    }
}

/* =============================================
   38. CAPTCHA Component
   ============================================= */
.ac-captcha-group {
    margin-bottom: 12px;
}
.ac-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ac-captcha-input {
    flex: 1;
    max-width: 120px;
    font-size: var(--text-lg);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--radius-md, 6px);
    transition: border-color var(--transition-normal);
}
.ac-captcha-input:focus {
    border-color: var(--action-color, #3b82f6);
    outline: none;
    box-shadow: var(--focus-ring);
}
.ac-captcha-img {
    height: 46px;
    min-width: 120px;
    border-radius: var(--radius-md, 6px);
    border: 1px solid var(--border-color, #d1d5db);
    cursor: pointer;
    user-select: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    object-fit: contain;
}
.ac-captcha-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}
.ac-captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: var(--radius-md, 6px);
    background: var(--bg-card, #fff);
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    font-size: var(--text-md);
}
.ac-captcha-refresh:hover {
    background: var(--action-color, #3b82f6);
    color: #fff;
    border-color: var(--action-color, #3b82f6);
}
.ac-captcha-error {
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md, 6px);
    color: #dc2626;
    font-size: var(--text-sm);
}
.ac-captcha-error .fa {
    margin-right: 4px;
}

/* =============================================
   39. Registration Complete
   ============================================= */

/* Success badge above title */
.ac-auth__success-badge {
    text-align: center;
    margin-bottom: 12px;
}
.ac-auth__success-badge .fa {
    font-size: var(--display-lg);
    color: #10b981;
}
.ac-auth__title--center {
    text-align: center;
}

/* Next steps section */
.ac-auth__next-steps {
    margin-top: 8px;
}
.ac-auth__next-steps-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: #667085;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ac-auth__next-steps-title .fa {
    color: #1a7a9b;
    font-size: var(--text-xs);
}

/* Step cards */
.ac-auth__step-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ac-auth__step-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}
.ac-auth__step-card:hover {
    border-color: #1a7a9b;
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}
.ac-auth__step-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: #e8f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-normal);
}
.ac-auth__step-card-icon .fa {
    font-size: var(--text-lg);
    color: #1a7a9b;
    transition: color var(--transition-normal);
}
.ac-auth__step-card:hover .ac-auth__step-card-icon {
    background: #1a7a9b;
}
.ac-auth__step-card:hover .ac-auth__step-card-icon .fa {
    color: #fff;
}
.ac-auth__step-card-text {
    flex: 1;
    min-width: 0;
}
.ac-auth__step-card-text strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #344054;
    margin-bottom: 2px;
}
.ac-auth__step-card-text span {
    font-size: var(--text-xs);
    color: #667085;
    line-height: 1.4;
}
.ac-auth__step-arrow {
    color: #d0d5dd;
    font-size: var(--text-xs);
    transition: color var(--transition-normal), transform var(--transition-normal);
}
.ac-auth__step-card:hover .ac-auth__step-arrow {
    color: #1a7a9b;
    transform: translateX(3px);
}

/* Complete page responsive */
@media (max-width: 860px) {
    .ac-auth--complete .ac-auth__container {
        flex-direction: column;
        width: 90%;
        max-width: 440px;
        min-height: auto;
    }
}
@media (max-width: 480px) {
    .ac-auth--complete .ac-auth__container {
        width: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
}
.ac-field-hint {
    font-size: var(--text-xs);
    color: var(--text-secondary, #6b7280);
    margin: 4px 0 0;
}
.ac-field-hint .fa {
    margin-right: 4px;
    color: var(--action-color, #3b82f6);
}

/* =========================================
   Contact Page — Modern card layout
========================================= */
.ac-page-contact {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 24px 48px;
}
.ac-page-contact__header {
    text-align: center;
    margin: 32px 0 36px;
}
.ac-page-contact__header h1 {
    font-size: var(--display-sm);
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
}
.ac-page-contact__subtitle {
    font-size: var(--text-base);
    color: #6b7280;
    margin: 0;
}
.ac-page-contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.ac-page-contact__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.ac-page-contact__card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.ac-page-contact__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}
.ac-page-contact__card--primary .ac-page-contact__card-icon {
    background: #eff6ff;
    color: #2563eb;
}
.ac-page-contact__card--support .ac-page-contact__card-icon {
    background: #f0fdf4;
    color: #16a34a;
}
.ac-page-contact__card--address .ac-page-contact__card-icon {
    background: #fef3c7;
    color: #d97706;
}
.ac-page-contact__card h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 16px;
}
.ac-page-contact__name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}
.ac-page-contact__title {
    font-size: var(--text-md);
    color: #6b7280;
    margin-bottom: 4px;
}
.ac-page-contact__affiliation {
    font-size: var(--text-md);
    color: #6b7280;
    margin-bottom: 16px;
}
.ac-page-contact__methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.ac-page-contact__method {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-md);
    color: #2563eb;
    text-decoration: none;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    transition: all var(--transition-fast);
}
.ac-page-contact__method:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.ac-page-contact__method svg {
    flex-shrink: 0;
    color: #6b7280;
}
.ac-page-contact__method:hover svg {
    color: #2563eb;
}
.ac-page-contact__address-text {
    font-size: var(--text-md);
    line-height: 1.7;
    color: #4b5563;
}
@media (max-width: 640px) {
    .ac-page-contact__grid {
        grid-template-columns: 1fr;
    }
    .ac-page-contact__header h1 {
        font-size: var(--title-2xl);
    }
}

/* =========================================
   Privacy Page — Structured content
========================================= */
.ac-page-privacy {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 24px 48px;
}
.ac-page-privacy__header {
    text-align: center;
    margin: 32px 0 36px;
}
.ac-page-privacy__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: #eff6ff;
    color: #2563eb;
    margin-bottom: 16px;
}
.ac-page-privacy__header h1 {
    font-size: var(--display-sm);
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
}
.ac-page-privacy__subtitle {
    font-size: var(--text-base);
    color: #6b7280;
    margin: 0;
}
.ac-page-privacy__content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 32px;
    font-size: var(--text-base);
    line-height: 1.8;
    color: #374151;
}
.ac-page-privacy__content h2,
.ac-page-privacy__content h3 {
    color: #1a202c;
    margin: 28px 0 12px;
    font-weight: 600;
}
.ac-page-privacy__content h2 { font-size: var(--title-lg); }
.ac-page-privacy__content h3 { font-size: var(--text-lg); }
.ac-page-privacy__content p {
    margin: 0 0 14px;
}
.ac-page-privacy__content ul,
.ac-page-privacy__content ol {
    padding-left: 24px;
    margin: 0 0 14px;
}
.ac-page-privacy__content li {
    margin-bottom: 6px;
}
.ac-page-privacy__content a {
    color: #2563eb;
    text-decoration: none;
}
.ac-page-privacy__content a:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .ac-page-privacy__content {
        padding: 20px;
    }
    .ac-page-privacy__header h1 {
        font-size: var(--title-2xl);
    }
}

/* =========================================
   Error Page — Friendly 404 / error display
========================================= */
.ac-page-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 48px 24px;
}
.ac-page-error__container {
    text-align: center;
    max-width: 480px;
}
.ac-page-error__icon {
    color: #9ca3af;
    margin-bottom: 24px;
}
.ac-page-error__icon svg {
    stroke-width: 1.2;
}
.ac-page-error h1 {
    font-size: var(--display-sm);
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px;
}
.ac-page-error__message {
    font-size: var(--text-base);
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 32px;
}
.ac-page-error__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.ac-page-error__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.ac-page-error__btn--primary {
    background: #1a5276;
    color: #fff;
    border: 1px solid #1a5276;
}
.ac-page-error__btn--primary:hover {
    background: #2471a3;
    border-color: #2471a3;
    color: #fff;
}
.ac-page-error__btn--outline {
    background: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
}
.ac-page-error__btn--outline:hover {
    background: #f0f9ff;
    color: #1a5276;
    border-color: #93c5fd;
}
@media (max-width: 480px) {
    .ac-page-error__actions {
        flex-direction: column;
    }
    .ac-page-error__btn {
        justify-content: center;
    }
}

/* =============================================
   Site Index — Browse by Subject cards
   ============================================= */
.ac-subjects-section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 32px 0;
}
.ac-subjects-section .section-header {
    margin: 0 0 16px;
}
.ac-subjects-section .section-header h2 {
    font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
    font-size: var(--title-md);
    font-weight: 600;
    color: #1C2833;
    margin: 0 0 4px;
}
.ac-subjects-section .section-subtitle {
    font-size: var(--text-sm);
    color: #7B8D9E;
    margin: 0;
    font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
}
.ac-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ac-subject-card {
    background: #fff;
    border: 1px solid #EAECEE;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
    color: inherit;
}
.ac-subject-card:hover {
    border-color: #5499C7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.ac-subject-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ac-subject-card__icon svg {
    width: 22px;
    height: 22px;
}
.ac-subject-card__icon--social-sciences { background: #EBF5FB; color: #1A5276; }
.ac-subject-card__icon--engineering { background: #E8F8F0; color: #1E8449; }
.ac-subject-card__icon--computer-science { background: #F4ECF7; color: #6C3483; }
.ac-subject-card__icon--environmental { background: #FEF9E7; color: #B7950B; }
.ac-subject-card__icon--medical { background: #FDEDEC; color: #922B21; }
.ac-subject-card__icon--life-sciences { background: #E8F8F0; color: #196F3D; }
.ac-subject-card__icon--physical-sciences { background: #EBF5FB; color: #1B4F72; }
.ac-subject-card__icon--arts-humanities { background: #F5EEF8; color: #7D3C98; }
.ac-subject-card__icon--business-economics { background: #FEF5E7; color: #B9770E; }
.ac-subject-card__icon--mathematics { background: #EBF5FB; color: #21618C; }
.ac-subject-card__icon--chemistry { background: #F9EBEA; color: #943126; }
.ac-subject-card__icon--materials-science { background: #E8DAEF; color: #6C3483; }
.ac-subject-card__icon--energy { background: #FEF9E7; color: #D4AC0D; }
.ac-subject-card__icon--agricultural { background: #E8F8F0; color: #1D8348; }
.ac-subject-card__icon--education { background: #EBF5FB; color: #2E86C1; }
.ac-subject-card__icon--law { background: #F2F4F4; color: #566573; }
.ac-subject-card__icon--psychology { background: #FDEDEC; color: #C0392B; }
.ac-subject-card__icon--multidisciplinary { background: #F0F3F4; color: #2C3E50; }
.ac-subject-card__title {
    font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
    font-size: var(--text-md);
    font-weight: 600;
    color: #1C2833;
    margin: 0 0 4px;
    line-height: 1.3;
}
.ac-subject-card__count {
    font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
    font-size: var(--text-xs);
    color: #7B8D9E;
}

/* =============================================
   Site Index — Journal filter tabs
   ============================================= */
.ac-journal-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ac-journal-filter__tab {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid #EAECEE;
    background: #fff;
    color: #4A5568;
    text-decoration: none;
}
.ac-journal-filter__tab:hover {
    border-color: #5499C7;
    color: #1A5276;
    background: #EBF5FB;
}
.ac-journal-filter__tab--active {
    background: #1A5276;
    color: #fff;
    border-color: #1A5276;
}
.ac-journal-filter__tab--active:hover {
    background: #2471A3;
    border-color: #2471A3;
    color: #fff;
}

@media (max-width: 640px) {
    .ac-subjects-section { padding: 24px 16px 0; }
    .ac-subject-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ac-journal-filter { gap: 4px; }
    .ac-journal-filter__tab { font-size: var(--text-xs); padding: 4px 10px; }
}

/* =============================================
   Submission Progress Timeline
   ============================================= */
.ac-track {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 40px 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
}
.ac-track__header {
    margin-bottom: 36px;
}
.ac-track__back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2471A3;
    text-decoration: none;
    font-size: var(--text-md);
    margin-bottom: 20px;
}
.ac-track__back-link:hover { text-decoration: underline; }
.ac-track__title {
    font-size: var(--display-sm);
    font-weight: 700;
    color: #1C2833;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ac-track__diff-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-green, #1E8449);
    border: 1px solid var(--accent-green, #1E8449);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
}
.ac-track__diff-link:hover {
    background: var(--accent-green, #1E8449);
    color: #fff;
}
.ac-track__meta {
    display: flex;
    gap: 24px;
    font-size: var(--text-sm);
    color: #7B8D9E;
    margin-bottom: 16px;
}
.ac-track__meta-item { display: flex; align-items: center; gap: 6px; }
.ac-track__article-title {
    font-size: var(--title-lg);
    font-weight: 600;
    color: #2C3E50;
    margin: 0;
    line-height: 1.6;
}

/* Stage Progress Bar */
.ac-track__stages {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #F8F9FA;
    border-radius: var(--radius-lg);
    padding: 36px 60px;
}
.ac-track__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.ac-track__stage-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    z-index: 1;
    background: #E5E7EB;
    color: #9CA3AF;
    border: 3px solid #E5E7EB;
    transition: all var(--transition-normal);
}
.ac-track__stage--completed .ac-track__stage-dot {
    background: #059669;
    border-color: #059669;
    color: #fff;
}
.ac-track__stage--current .ac-track__stage-dot {
    background: #fff;
    border-color: #2563EB;
    color: #2563EB;
}
.ac-track__stage--declined .ac-track__stage-dot {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
}
.ac-track__stage-line {
    position: absolute;
    top: 21px;
    left: 50%;
    width: 100%;
    height: 3px;
    background: #E5E7EB;
    z-index: 0;
}
.ac-track__stage-line--completed { background: #059669; }
.ac-track__stage-label {
    margin-top: 12px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: #6B7280;
    text-align: center;
    white-space: nowrap;
}
.ac-track__stage--completed .ac-track__stage-label { color: #059669; font-weight: 600; }
.ac-track__stage--current .ac-track__stage-label { color: #2563EB; font-weight: 600; }
.ac-track__stage--declined .ac-track__stage-label { color: #DC2626; font-weight: 600; }

.ac-track__pulse {
    width: 10px;
    height: 10px;
    background: #2563EB;
    border-radius: 50%;
    animation: ac-track-pulse 1.5s ease-in-out infinite;
}
@keyframes ac-track-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Timeline Events */
.ac-track__timeline {
    background: #F8F9FA;
    border-radius: var(--radius-lg);
    padding: 32px 40px;
}
.ac-track__section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #1C2833;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ac-track__events {
    position: relative;
    padding-left: 32px;
}
.ac-track__events::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E0E4E8;
}
.ac-track__event {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    position: relative;
}
.ac-track__event:last-child { margin-bottom: 0; }
.ac-track__event-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: #6B7280;
    flex-shrink: 0;
    margin-left: -16px;
    z-index: 1;
}
.ac-track__event--submitted .ac-track__event-dot { border-color: #2563EB; color: #2563EB; background: #EFF6FF; }
.ac-track__event--decision .ac-track__event-dot { border-color: #D97706; color: #D97706; background: #FFFBEB; }
.ac-track__event--reviewers_assigned .ac-track__event-dot { border-color: #7C3AED; color: #7C3AED; background: #F5F3FF; }
.ac-track__event--reviews_completed .ac-track__event-dot { border-color: #059669; color: #059669; background: #ECFDF5; }
.ac-track__event--published .ac-track__event-dot { border-color: #059669; color: #fff; background: #059669; }
.ac-track__event--declined .ac-track__event-dot { border-color: #DC2626; color: #fff; background: #DC2626; }
.ac-track__event--current .ac-track__event-dot { border-color: #2563EB; color: #2563EB; }
.ac-track__event-dot--pulse { animation: ac-track-pulse 1.5s ease-in-out infinite; }

.ac-track__event-content { padding-top: 4px; }
.ac-track__event-date {
    font-size: var(--text-sm);
    color: #9CA3AF;
    margin-bottom: 3px;
}
.ac-track__event-label {
    font-size: var(--text-lg);
    font-weight: 500;
    color: #1C2833;
}
.ac-track__event-label--current { color: #2563EB; }
.ac-track__event-round {
    font-size: var(--text-sm);
    color: #7B8D9E;
    font-weight: 400;
}
.ac-track__event-detail {
    font-size: var(--text-sm);
    color: #6B7280;
    margin-top: 4px;
    line-height: 1.5;
}

.ac-track__empty {
    text-align: center;
    padding: 40px;
    color: #9CA3AF;
    font-size: var(--text-md);
}
.ac-track__empty .fa { margin-right: 6px; }

/* Tablet */
@media (max-width: 900px) {
    .ac-track__stages { padding: 28px 32px; }
    .ac-track__timeline { padding: 24px 28px; }
}

/* Mobile */
@media (max-width: 640px) {
    .ac-track { padding: 20px 16px; }
    .ac-track__stages { padding: 20px 16px; flex-wrap: nowrap; overflow-x: auto; }
    .ac-track__stage-dot { width: 32px; height: 32px; font-size: var(--text-xs); }
    .ac-track__stage-label { font-size: var(--text-xs); }
    .ac-track__title { font-size: var(--title-lg); }
    .ac-track__meta { flex-direction: column; gap: 4px; }
    .ac-track__timeline { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   Cross-Journal Dashboard
   ═══════════════════════════════════════════════════════════════════ */

.xd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.xd-section-title {
    font-size: var(--title-md);
    font-weight: 700;
    color: #1a202c;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* ── Stats Bar ── */
.xd-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
.xd-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}
.xd-stat-card:hover { box-shadow: var(--shadow-md); }
.xd-stat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.xd-stat-icon svg { width: 22px; height: 22px; }
.xd-stat-icon--total  { background: #EDF2F7; color: #0F4C81; }
.xd-stat-icon--pending { background: #FEFCF3; color: #B7791F; }
.xd-stat-icon--overdue { background: #FFF5F5; color: #C53030; }
.xd-stat-icon--new     { background: #F0FFF4; color: #276749; }
.xd-stat-value {
    font-size: var(--title-2xl); font-weight: 700; color: #1a202c;
    line-height: 1.1;
}
.xd-stat-label {
    font-size: var(--text-sm); color: #718096; margin-top: 2px;
}
.xd-stat-body { display: flex; flex-direction: column; }

/* ── Journal Cards ── */
.xd-cards-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin: 8px 0 12px;
}
.xd-cards-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.xd-cards-tools .xd-search-input { min-width: 200px; }
.xd-journal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}
.xd-journal-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.xd-journal-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #0F4C81;
}
.xd-journal-card__header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
}
.xd-journal-card__badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #0F4C81; color: #fff;
    font-size: var(--text-xs); font-weight: 700;
    padding: 3px 8px; border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
}
.xd-journal-card__name {
    font-size: var(--text-md); font-weight: 600; color: #2d3748;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
}
.xd-journal-card__stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    text-align: center;
}
.xd-journal-card__stat-val {
    font-size: var(--title-md); font-weight: 700; color: #1a202c;
    display: block;
}
.xd-journal-card__stat-lbl {
    font-size: var(--text-xs); color: #a0aec0;
}
.xd-val--warn { color: #B7791F; }
.xd-val--danger { color: #C53030; }

/* ── Action Queue Table ── */
.xd-action-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
}
.xd-action-table thead th {
    background: #f7fafc;
    font-size: var(--text-xs); font-weight: 600; color: #4a5568;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.xd-action-table tbody td {
    padding: 10px 14px;
    font-size: var(--text-md);
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.xd-action-table tbody tr:hover { background: #f7fafc; }
.xd-badge {
    display: inline-block;
    background: #0F4C81; color: #fff;
    font-size: var(--text-xs); font-weight: 700;
    padding: 2px 7px; border-radius: var(--radius-xs);
    letter-spacing: 0.03em;
}
.xd-id { font-weight: 600; color: #4a5568; white-space: nowrap; }
.xd-title { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-days { font-weight: 700; text-align: center; }
.xd-type--overdue { color: #C53030; font-size: var(--text-sm); white-space: nowrap; }
.xd-type--waiting { color: #B7791F; font-size: var(--text-sm); white-space: nowrap; }
.xd-action-btn {
    display: inline-block;
    background: #0F4C81; color: #fff;
    font-size: var(--text-xs); font-weight: 600;
    padding: 4px 14px; border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-fast);
}
.xd-action-btn:hover { background: #0a3a66; color: #fff; }

/* ── Trend Chart ── */
.xd-trends {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px;
}
.xd-chart { display: block; width: 100%; }
.xd-legend {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-bottom: 12px;
}
.xd-legend-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: var(--text-xs); color: #4a5568;
    background: none; border: none; padding: 2px 4px;
    border-radius: var(--radius-xs); cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}
.xd-legend-item:hover { background: #f1f5f9; }
.xd-legend-item--off { opacity: 0.4; text-decoration: line-through; }
.xd-legend-dot {
    width: 10px; height: 10px; border-radius: var(--radius-xs);
    display: inline-block;
}

/* ── Empty State ── */
.xd-empty {
    text-align: center;
    padding: 32px 20px;
    color: #a0aec0;
    font-size: var(--text-md);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .xd-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .xd-journal-cards { grid-template-columns: 1fr; }
    .xd-action-table { font-size: var(--text-sm); }
    .xd-title { max-width: 160px; }
}
@media (max-width: 480px) {
    .xd-stats-bar { grid-template-columns: 1fr; }
    .xd-container { padding: 16px; }
}

/* ── Cross-Dashboard: Notification Center ── */
.xd-notify-section { margin-bottom: 24px; }
.xd-notify-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.xd-notify-controls { display: flex; align-items: center; gap: 10px; }
.xd-notify-toggle { display: flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: #64748b; cursor: pointer; user-select: none; }
.xd-notify-toggle input { margin: 0; }
.xd-notify-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-md);
    background: #ef4444; color: #fff; font-size: var(--text-xs); font-weight: 700;
}
.xd-notify-list { display: flex; flex-direction: column; gap: 4px; }
.xd-notify-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 12px; border-radius: var(--radius-md); transition: background var(--transition-fast);
}
.xd-notify-item--unread { background: #eff6ff; border-left: 3px solid #3b82f6; }
.xd-notify-item--read { background: #f8fafc; border-left: 3px solid transparent; opacity: .7; }
.xd-notify-item:hover { background: #e0ecff; }
.xd-notify-item__left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.xd-notify-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xd-notify-item__type { font-size: var(--text-sm); font-weight: 500; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xd-notify-item__date { font-size: var(--text-xs); color: #94a3b8; }
.xd-notify-item__actions { display: flex; gap: 6px; flex-shrink: 0; }
.xd-action-btn--sm { font-size: var(--text-xs); padding: 2px 8px; }
.xd-action-btn--ghost { background: transparent; border: 1px solid #cbd5e1; color: #64748b; }
.xd-action-btn--ghost:hover { background: #f1f5f9; border-color: #94a3b8; }

/* ── Cross-Dashboard: Unified Submission List ── */
.xd-submissions { margin-bottom: 24px; }
.xd-sub-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: var(--space-sm, 8px); margin-bottom: var(--space-sm, 12px);
}
.xd-sub-filters { display: flex; flex-wrap: wrap; gap: var(--space-xs, 6px); }
.xd-select {
    padding: 6px 10px; border: 1px solid #d2d6dc; border-radius: var(--radius-sm, 4px);
    font-size: var(--text-sm); color: #374151; background: #fff; outline: none; cursor: pointer;
    transition: border-color var(--transition-normal);
}
.xd-select:focus { border-color: var(--blue-500, #3b82f6); box-shadow: var(--focus-ring); }
.xd-sub-search { flex: 0 0 auto; }
.xd-search-input {
    padding: 6px 12px; border: 1px solid #d2d6dc; border-radius: var(--radius-sm, 4px);
    font-size: var(--text-sm); width: 220px; outline: none; transition: border-color var(--transition-normal);
}
.xd-search-input:focus { border-color: var(--blue-500, #3b82f6); box-shadow: var(--focus-ring); }
.xd-sub-table-wrap { overflow-x: auto; }
.xd-sub-table .xd-sub-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xd-sub-table .xd-id { font-family: monospace; color: #6b7280; font-size: var(--text-xs); white-space: nowrap; }
.xd-sub-table .xd-author { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4b5563; }
.xd-sub-table .xd-date { font-size: var(--text-xs); color: #6b7280; white-space: nowrap; }
.xd-stage-pill, .xd-status-pill {
    display: inline-block; font-size: var(--text-xs); font-weight: 600;
    padding: 2px 8px; border-radius: var(--radius-xs, 2px); white-space: nowrap;
}
.xd-stage--submission { background: #dbeafe; color: #1e40af; }
.xd-stage--review { background: #fef3c7; color: #92400e; }
.xd-stage--copy { background: #ede9fe; color: #5b21b6; }
.xd-stage--prod { background: #d1fae5; color: #065f46; }
.xd-status--queued { background: #e0f2fe; color: #0369a1; }
.xd-status--published { background: #d1fae5; color: #065f46; }
.xd-status--declined { background: #fee2e2; color: #991b1b; }
.xd-pagination { margin-top: var(--space-sm, 12px); }
.xd-pag-row { display: flex; align-items: center; justify-content: center; gap: var(--space-sm, 12px); }
.xd-pag-btn {
    padding: 6px 14px; border: 1px solid #d2d6dc; border-radius: var(--radius-sm, 4px);
    font-size: var(--text-sm); background: #fff; color: #374151; cursor: pointer; transition: background var(--transition-fast);
}
.xd-pag-btn:hover:not(:disabled) { background: #f3f4f6; }
.xd-pag-btn:disabled { opacity: .45; cursor: default; }
.xd-pag-info { font-size: var(--text-sm); color: #6b7280; }
.xd-loading { padding: 32px; text-align: center; color: #9ca3af; font-size: var(--text-md); }
.xd-empty { padding: 32px; text-align: center; color: #9ca3af; font-size: var(--text-md); }
@media (max-width: 768px) {
    .xd-sub-toolbar { flex-direction: column; align-items: stretch; }
    .xd-search-input { width: 100%; }
    .xd-sub-table .xd-sub-title { max-width: 140px; }
}

/* ========== Announcements Page ========== */
.ac-announcements {
    padding: var(--space-xl) var(--space-lg);
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
}
.ac-ann-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF4F8 100%);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
}
.ac-ann-header-left { flex: 1; min-width: 0; }
.ac-ann-header h1 {
    font-size: var(--title-xl);
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: none;
    margin: 0 0 6px;
}
.ac-ann-header-desc {
    color: var(--text-secondary);
    font-size: var(--text-md);
    margin: 0;
    line-height: 1.5;
}
.ac-ann-header-stats { flex-shrink: 0; }
.ac-ann-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    min-width: 72px;
}
.ac-ann-stat-num {
    font-size: var(--title-xl);
    font-weight: 700;
    color: var(--action-color);
    line-height: 1.2;
}
.ac-ann-stat-label {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-top: 2px;
}
.ac-ann-intro {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-sm);
}
.ac-ann-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ac-ann-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
}
.ac-ann-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--action-color);
    transform: translateY(-1px);
}
.ac-ann-card-accent {
    width: 4px;
    flex-shrink: 0;
}
.ac-ann-card--c0 .ac-ann-card-accent { background: #2563EB; }
.ac-ann-card--c1 .ac-ann-card-accent { background: #059669; }
.ac-ann-card--c2 .ac-ann-card-accent { background: #D97706; }
.ac-ann-card--c3 .ac-ann-card-accent { background: #7C3AED; }
.ac-ann-card-body {
    flex: 1;
    padding: 18px 22px;
    min-width: 0;
}
.ac-ann-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.ac-ann-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    color: var(--text-light);
}
.ac-ann-card-date svg { color: var(--text-light); }
.ac-ann-card-type {
    display: inline-block;
    padding: 1px 8px;
    background: #EDF2F7;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: #4A5568;
}
.ac-ann-card-title {
    font-size: var(--title-sm);
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}
.ac-ann-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.ac-ann-card-title a:hover {
    color: var(--action-color);
}
.ac-ann-card-excerpt {
    font-size: var(--text-md);
    color: var(--text-secondary);
    margin: 0 0 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ac-ann-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--action-color);
    text-decoration: none;
}
.ac-ann-card-readmore:hover {
    text-decoration: underline;
}
.ac-ann-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.ac-ann-empty svg {
    margin-bottom: 12px;
    opacity: 0.4;
}
.ac-ann-empty p {
    font-size: var(--text-base);
    margin: 0;
}

/* Announcement Detail Page */
.ac-ann-detail {
    padding: var(--space-xl) var(--space-lg);
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
}
.ac-ann-detail-article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.ac-ann-detail-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border-color);
}
.ac-ann-detail-header h1 {
    font-size: var(--title-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    border-bottom: none;
}
.ac-ann-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ac-ann-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--text-sm);
    color: var(--text-light);
}
.ac-ann-detail-date svg { color: var(--text-light); }
.ac-ann-detail-image {
    padding: 20px 32px;
}
.ac-ann-detail-image img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}
.ac-ann-detail-content {
    padding: 24px 32px;
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.8;
}
.ac-ann-detail-content p {
    margin: 0 0 14px;
}
.ac-ann-detail-footer {
    padding: 16px 32px 20px;
    border-top: 1px solid var(--border-color);
}
.ac-ann-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--action-color);
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid var(--action-color);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.ac-ann-back-link:hover {
    background: var(--action-color);
    color: #fff;
    text-decoration: none;
}
.ac-ann-back-link:hover svg { stroke: #fff; }

@media (max-width: 768px) {
    .ac-announcements,
    .ac-ann-detail { padding: var(--space-lg) var(--space-sm); }
    .ac-ann-header { flex-direction: column; text-align: center; }
    .ac-ann-detail-header,
    .ac-ann-detail-content,
    .ac-ann-detail-footer { padding-left: 16px; padding-right: 16px; }
}
