.aaj-frontend-layout,
.aaj-wrapper,
.aaj-login-section,
.aaj-author-dashboard,
.aaj-edit-form-container {
    --aaj-ink: #061a33;
    --aaj-muted: #536b89;
    --aaj-line: #d7e4f2;
    --aaj-soft: #f3f8fd;
    --aaj-panel: #ffffff;
    --aaj-primary: #0067a6;
    --aaj-primary-dark: #003b73;
    --aaj-accent: #32ead8;
    --aaj-danger: #b42318;
    --aaj-success: #0067a6;
    color: var(--aaj-ink);
    font-family: inherit;
}

/* Hide theme-specific elements on AAJ pages as a fallback */
.aaj-page .entry-title,
.aaj-page .post-title,
.aaj-page .page-title,
.aaj-page .entry-header,
.aaj-page .featured-image,
.aaj-page .post-thumbnail,
.aaj-page .ast-featured-img {
    display: none !important;
}

body.aaj-no-theme-chrome .entry-header,
body.aaj-no-theme-chrome .entry-title,
body.aaj-no-theme-chrome .post-title,
body.aaj-no-theme-chrome .page-title,
body.aaj-no-theme-chrome .featured-image,
body.aaj-no-theme-chrome .post-thumbnail,
body.aaj-no-theme-chrome .ast-featured-img,
body.aaj-no-theme-chrome #secondary,
body.aaj-no-theme-chrome .secondary,
body.aaj-no-theme-chrome .widget-area,
body.aaj-no-theme-chrome .sidebar,
body.aaj-no-theme-chrome .site-sidebar,
body.aaj-no-theme-chrome .ast-sidebar,
body.aaj-no-theme-chrome aside.sidebar,
body.aaj-no-theme-chrome aside.widget-area {
    display: none !important;
}

body.aaj-no-theme-chrome #main > .single_main-content,
body.aaj-no-theme-chrome #main > .main-content,
body.aaj-no-theme-chrome #main > .archive_main,
body.aaj-no-theme-chrome #main > .page_main-content {
    width: 100% !important;
    max-width: 100% !important;
}

body.single-aaj_issue #main.site-main,
body.aaj-publication-page #main.site-main,
body.aaj-no-theme-chrome #main.site-main,
#primary:has(.aaj-publication-detail) #main.site-main,
#primary:has(.aaj-publication-list) #main.site-main {
    display: block !important;
}

body.single-aaj_issue #main > .main-content,
body.aaj-publication-page #main > .main-content,
body.aaj-no-theme-chrome #main > .main-content,
#primary:has(.aaj-publication-detail) #main > .main-content,
#primary:has(.aaj-publication-list) #main > .main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

body.single-aaj_issue #main > #secondary,
body.aaj-publication-page #main > #secondary,
body.aaj-no-theme-chrome #main > #secondary,
#primary:has(.aaj-publication-detail) #main > #secondary,
#primary:has(.aaj-publication-list) #main > #secondary {
    display: none !important;
}

.aaj-frontend-layout *,
.aaj-wrapper *,
.aaj-login-section *,
.aaj-author-dashboard *,
.aaj-edit-form-container * {
    box-sizing: border-box;
}

.aaj-frontend-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    width: min(1280px, 100%);
    margin: 30px auto;
    align-items: start;
}

.aaj-main-content {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--aaj-line);
    border-radius: 8px;
    background: var(--aaj-panel);
    box-shadow: 0 8px 22px rgba(24, 32, 47, .06);
}

.aaj-sidebar {
    position: sticky;
    top: 24px;
    width: 100%;
    min-height: 420px;
    padding: 18px;
    border: 1px solid var(--aaj-line);
    border-radius: 8px;
    background: var(--aaj-panel);
    box-shadow: 0 8px 22px rgba(24, 32, 47, .05);
}

.aaj-sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--aaj-line);
}

.aaj-user-avatar img {
    border-radius: 50%;
}

.aaj-user-name {
    display: block;
    color: var(--aaj-ink);
    font-size: 16px;
    font-weight: 800;
}

.aaj-user-role {
    display: inline-flex;
    margin-top: 4px;
    color: var(--aaj-muted);
    font-size: 13px;
}

.aaj-sidebar-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aaj-sidebar-nav li {
    margin: 0 0 6px;
}

.aaj-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--aaj-muted) !important;
    text-decoration: none !important;
    font-weight: 700;
}

.aaj-sidebar-nav a:hover,
.aaj-sidebar-nav li.active a {
    background: #eef7ff !important;
    color: var(--aaj-primary-dark) !important;
    box-shadow: none !important;
}

.aaj-issue-detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 30px;
}

.aaj-issue-main-col {
    min-width: 0;
}

.aaj-issue-sidebar-col {
    width: 320px;
}

.aaj-issue-article-item {
    padding: 24px 0;
    border-bottom: 1px solid #000;
}

.aaj-issue-article-item:last-child {
    border-bottom: 0;
}

.aaj-article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.aaj-article-title-bold {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #000;
    line-height: 1.3;
}

.aaj-article-icons {
    display: flex;
    gap: 8px;
    opacity: 0.6;
}

.aaj-article-author-date {
    margin: 8px 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
}

.aaj-article-snippet {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.aaj-sidebar-box {
    padding: 20px;
    border: 1px solid #eee;
    background: #fff;
}

.aaj-sidebar-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 900;
    color: #000;
    padding-bottom: 10px;
    border-bottom: 3px solid #000;
}

.aaj-sidebar-item {
    margin-bottom: 30px;
}

.aaj-sidebar-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.aaj-sidebar-meta {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    margin-bottom: 8px;
}

.aaj-sidebar-item-title {
    font-size: 17px;
    font-weight: 800;
    color: #000;
    line-height: 1.4;
    margin-bottom: 10px;
}

.aaj-sidebar-snippet {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.aaj-view-more-red {
    display: inline-block;
    margin-top: 20px;
    color: #d32f2f;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 960px) {
    .aaj-issue-detail-container {
        grid-template-columns: 1fr;
    }
    .aaj-issue-sidebar-col {
        width: 100%;
    }
}

.aaj-submission-table-card {
    overflow-x: auto;
    border: 1px solid var(--aaj-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 32, 47, .05);
}

.aaj-submission-table {
    min-width: 820px;
    margin-top: 0;
    border: 0 !important;
    border-radius: 0;
}

.aaj-submission-table,
.aaj-submission-table thead,
.aaj-submission-table tbody,
.aaj-submission-table tr,
.aaj-submission-table th,
.aaj-submission-table td {
    border-left: 0 !important;
    border-right: 0 !important;
}

.aaj-submission-table th {
    padding: 14px 16px;
    border-top: 0 !important;
    border-bottom: 1px solid var(--aaj-line) !important;
    color: var(--aaj-muted);
    font-size: 13px;
    text-transform: none;
}

.aaj-submission-table td {
    padding: 16px;
    border-top: 0 !important;
    border-bottom: 1px solid var(--aaj-line) !important;
    color: var(--aaj-ink);
    font-size: 15px;
    vertical-align: middle;
}

.aaj-submission-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.aaj-title-cell strong {
    display: block;
    color: var(--aaj-ink);
    font-size: 16px;
    line-height: 1.45;
}

.aaj-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aaj-author-task-panel {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid var(--aaj-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 32, 47, .04);
}

.aaj-author-task-panel h3 {
    margin: 0 0 14px;
    color: var(--aaj-ink);
    font-size: 20px;
    font-weight: 900;
}

.aaj-author-task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.aaj-author-task-card {
    display: grid;
    gap: 8px;
    min-height: 136px;
    padding: 16px;
    border: 1px solid var(--aaj-line);
    border-radius: 8px;
    background: #f8fbff;
    color: var(--aaj-ink);
    text-decoration: none !important;
}

.aaj-author-task-card:not(.is-static):hover,
.aaj-author-task-card:not(.is-static):focus {
    border-color: var(--aaj-primary);
    background: #eef7ff;
    color: var(--aaj-primary-dark);
}

.aaj-author-task-card span {
    color: var(--aaj-primary-dark);
    font-weight: 900;
}

.aaj-author-task-card strong {
    color: var(--aaj-ink);
    font-size: 30px;
    line-height: 1;
}

.aaj-author-task-card em {
    color: var(--aaj-muted);
    font-style: normal;
    font-size: 14px;
    line-height: 1.45;
}

.aaj-btn-small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.aaj-btn-danger {
    border-color: #f1a7a2;
    background: #fff1f0;
    color: var(--aaj-danger);
}

.aaj-btn-danger:hover {
    background: var(--aaj-danger);
    color: #fff;
}

.aaj-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--aaj-line);
}

.aaj-page-header h2 {
    margin: 0;
    color: var(--aaj-ink);
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
}

.aaj-page-kicker {
    margin: 0 0 6px;
    color: var(--aaj-primary);
    font-size: 13px;
    font-weight: 800;
}

.aaj-submission-id,
.aaj-muted-text {
    display: block;
    margin-top: 5px;
    color: var(--aaj-muted);
    font-size: 13px;
    font-weight: 700;
}

.aaj-dashboard-table th,
.aaj-dashboard-table td {
    padding: 13px 14px;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--aaj-line);
    text-align: left;
}

.aaj-dashboard-table th {
    background: var(--aaj-soft);
    color: var(--aaj-ink);
    font-weight: 800;
}

.aaj-dashboard-table tr:last-child td {
    border-bottom: 0;
}

.aaj-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #99c4df;
    border-radius: 999px;
    background: #eef7ff;
    color: var(--aaj-primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.status-pending_review {
    border-color: #f6d78b;
    background: #fff8e6;
    color: #8a5a00;
}

.status-revision_needed {
    border-color: #9edce8;
    background: #eafaff;
    color: #0a5d6d;
}

.status-final_approval_pending,
.status-accepted {
    border-color: #9bbad8;
    background: #eef7ff;
    color: var(--aaj-success);
}

.status-rejected {
    border-color: #f1a7a2;
    background: #fff1f0;
    color: var(--aaj-danger);
}

.aaj-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aaj-link {
    color: var(--aaj-primary);
    text-decoration: none;
    font-weight: 700;
}

.aaj-link.delete {
    color: var(--aaj-danger);
}

.aaj-notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--aaj-line);
    background: var(--aaj-soft);
}

.aaj-notice.success {
    border-color: #9bbad8;
    background: #eef7ff;
    color: var(--aaj-success);
}

.aaj-notice.error {
    border-color: #f1a7a2;
    background: #fff1f0;
    color: var(--aaj-danger);
}

.aaj-empty-dashboard,
.aaj-empty {
    padding: 18px;
    border: 1px dashed var(--aaj-line);
    border-radius: 8px;
    background: var(--aaj-soft);
    color: var(--aaj-muted);
}

.aaj-form-section {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--aaj-line);
}

.aaj-form-section h4 {
    margin: 0 0 16px;
    padding-left: 10px;
    border-left: 4px solid var(--aaj-primary);
    color: var(--aaj-ink);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
.aaj-edit-form-container label {
    display: block;
    margin-bottom: 8px;
    color: var(--aaj-ink);
    font-weight: 800;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group textarea,
.form-group select,
.aaj-edit-form-container input[type="text"],
.aaj-edit-form-container input[type="email"],
.aaj-edit-form-container input[type="file"],
.aaj-edit-form-container textarea,
.aaj-edit-form-container select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--aaj-line);
    border-radius: 6px;
    background: #fff;
    color: var(--aaj-ink);
}

.form-group textarea,
.aaj-edit-form-container textarea {
    min-height: 120px;
    resize: vertical;
}

.button,
.aaj-btn,
.aaj-edit-form-container .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--aaj-primary);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
}

.button:hover,
.aaj-btn:hover {
    background: var(--aaj-primary-dark);
    color: #fff;
}

.button.secondary,
.aaj-btn-secondary {
    border-color: var(--aaj-line);
    background: #fff;
    color: var(--aaj-ink);
}

.button.secondary:hover,
.aaj-btn-secondary:hover {
    background: var(--aaj-soft);
    color: var(--aaj-ink);
}

.aaj-co-author-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.aaj-co-author-row input {
    flex: 1;
}

.aaj-remove-row {
    width: 38px;
    border: 0;
    border-radius: 6px;
    background: var(--aaj-danger);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
}

.aaj-login-section {
    max-width: 460px;
    margin: 40px auto;
    padding: 24px;
    border: 1px solid var(--aaj-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 32, 47, .06);
}

.aaj-custom-login-container {
    max-width: 520px;
    margin: 40px auto;
    padding: 24px;
    border: 1px solid var(--aaj-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(24, 32, 47, .06);
}

.aaj-login-title {
    margin: 0 0 18px;
    color: var(--aaj-ink);
    font-size: 24px;
    font-weight: 800;
}

.aaj-login-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #9bbad8;
    border-radius: 8px;
    background: #eef7ff;
    color: var(--aaj-success);
    font-weight: 700;
}

.aaj-login-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 10px;
    margin-bottom: 12px;
}

.aaj-login-inputs {
    display: grid;
    gap: 10px;
}

.aaj-login-inputs input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--aaj-line);
    border-radius: 6px;
}

.aaj-btn-login {
    width: 100%;
    height: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--aaj-primary);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.aaj-login-options {
    margin: 12px 0 18px;
    color: var(--aaj-muted);
    font-size: 14px;
}

.aaj-login-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--aaj-line);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--aaj-line);
    border-radius: 6px;
    color: var(--aaj-ink);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.footer-btn.signup {
    border-color: var(--aaj-primary);
    background: var(--aaj-primary);
    color: #fff;
}

.aaj-mt-18 {
    margin-top: 18px;
}

.aaj-reviewer-dashboard {
    margin: 0;
}

.view-pdf {
    color: var(--aaj-danger);
    text-decoration: none;
    font-weight: 800;
}

.aaj-archive-header {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--aaj-line);
}

.aaj-archive-header h2 {
    margin: 0 0 22px;
    color: var(--aaj-ink);
    font-size: 34px;
    font-weight: 900;
}

.aaj-archive-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.aaj-year-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.aaj-year-filter > span {
    margin-right: 6px;
    color: var(--aaj-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.aaj-year-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 34px;
    padding: 0 16px;
    border: 1px solid #b8c1d6;
    border-radius: 8px;
    color: var(--aaj-ink);
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.aaj-year-filter a.is-active {
    border-color: var(--aaj-primary);
    background: var(--aaj-primary);
    color: #fff;
}

.aaj-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--aaj-ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.aaj-publication-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.aaj-issue-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #d8deea;
    border-radius: 0;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none !important;
}

.aaj-issue-card:hover {
    transform: translateY(-3px);
    border-color: #b8c5d9;
    box-shadow: 0 12px 26px rgba(15, 35, 55, 0.1);
}

.aaj-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.35;
    overflow: hidden;
    background: #09212b;
}

.aaj-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aaj-card-image.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #061822 0%, #0b4044 100%);
}

.aaj-card-image.is-empty span {
    color: rgba(255,255,255,0.82);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.aaj-card-content {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 20px 18px;
}

.aaj-card-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: start;
}

.aaj-card-title-row .dashicons {
    color: #9fb0c8;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.aaj-issue-title {
    margin: 0;
    color: var(--aaj-ink);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.aaj-issue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 5px 0 14px;
    color: #008a95;
    font-size: 12px;
    font-weight: 800;
}

.aaj-issue-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aaj-card-content p {
    margin: 0;
    color: #28445d;
    font-size: 14px;
    line-height: 1.55;
}

.aaj-issue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.aaj-issue-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    background: #dff7ef;
    color: #007c72;
    font-size: 11px;
    font-weight: 800;
}

.aaj-paper-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 24px;
    border-bottom: 1px solid var(--aaj-line);
    background: #fff;
    transition: background 0.2s ease;
}

.aaj-paper-card:last-child {
    border-bottom: 0;
}

.aaj-paper-card:hover {
    background: #fcfdfe;
}

.aaj-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.aaj-paper-main {
    flex: 1;
}

.aaj-paper-type-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #eef7ff;
    color: var(--aaj-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.aaj-paper-title {
    margin: 0 0 8px;
    color: var(--aaj-ink);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.4;
}

.aaj-paper-authors {
    color: var(--aaj-muted);
    font-size: 14px;
    font-weight: 600;
}

.aaj-paper-abstract-preview {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 10px;
}

.aaj-paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.aaj-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--aaj-line);
    border-radius: 6px;
    background: #fff;
    color: var(--aaj-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.aaj-pdf-download-btn:hover {
    border-color: #f1a7a2;
    background: #fff1f0;
    color: var(--aaj-danger);
}

body.aaj-no-theme-chrome .aaj-publication-list,
body.aaj-no-theme-chrome .aaj-publication-detail {
    width: min(1080px, calc(100vw - 48px));
    margin: 64px auto 80px;
}

.aaj-issue-toc-page {
    width: min(980px, calc(100vw - 48px));
    max-width: 980px;
    margin: 64px auto 80px;
    padding: 0;
}

.aaj-issue-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--aaj-line);
}

.aaj-issue-detail-top h1 {
    max-width: 720px;
    margin: 0;
    color: var(--aaj-ink);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 900;
}

.aaj-issue-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.aaj-issue-nav a {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    color: var(--aaj-primary);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.aaj-issue-feature {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 26px;
    margin-bottom: 48px;
    background: #eef0f2;
    border: 1px solid #e3e7ec;
}

.aaj-issue-feature-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #052632;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.aaj-issue-feature-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aaj-issue-feature-copy h2 {
    margin: 0 0 12px;
    color: var(--aaj-ink);
    font-size: 22px;
    line-height: 1.35;
    font-weight: 900;
}

.aaj-issue-feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 16px;
    padding: 0;
}

.aaj-issue-feature-meta div {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    min-height: 22px;
}

.aaj-issue-feature-meta dt {
    margin: 0;
    color: var(--aaj-muted);
    font-size: 12px;
    font-weight: 900;
}

.aaj-issue-feature-meta dd {
    margin: 0;
    color: var(--aaj-ink);
    font-size: 13px;
    font-weight: 800;
}

.aaj-issue-intro p,
.aaj-issue-feature-copy p {
    margin: 0;
    color: #1d344d;
    font-size: 14px;
    line-height: 1.8;
}

.aaj-issue-intro-more {
    margin-top: 8px;
}

.aaj-issue-intro-more summary {
    display: inline-flex;
    color: var(--aaj-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.aaj-issue-intro-more p {
    margin-top: 10px;
}

.aaj-issue-editor-note {
    margin-top: 14px !important;
    color: var(--aaj-muted) !important;
    font-size: 12px !important;
    font-style: italic;
}

.aaj-toc-section h2 {
    margin: 0 0 24px;
    color: var(--aaj-ink);
    font-size: 22px;
    font-weight: 900;
}

.aaj-toc-title-list {
    display: grid;
    gap: 10px;
    margin: 0 0 36px;
    padding: 18px 20px;
    border: 1px solid var(--aaj-line);
    background: #fff;
}

.aaj-toc-title-list a {
    color: var(--aaj-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.aaj-toc-title-list a:hover,
.aaj-toc-title-list a:focus {
    color: var(--aaj-primary-dark);
}

.aaj-toc-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--aaj-line);
}

.aaj-toc-item {
    scroll-margin-top: 96px;
    padding: 26px 28px;
    border-bottom: 1px solid var(--aaj-line);
    background: #fff;
}

.aaj-toc-item.is-highlighted {
    background: #f0f5ff;
}

.aaj-toc-item-top,
.aaj-toc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
}

.aaj-toc-category {
    color: #008a72;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

.aaj-toc-pages {
    color: var(--aaj-muted);
    font-size: 11px;
    font-weight: 800;
}

.aaj-toc-item h3 {
    margin: 12px 0 8px;
    color: var(--aaj-primary);
    font-size: 17px;
    line-height: 1.45;
    font-weight: 900;
}

.aaj-toc-authors {
    margin: 0 0 12px;
    color: #1d344d;
    font-size: 14px;
    font-weight: 800;
}

.aaj-toc-summary {
    margin: 0 0 16px;
    color: #344d67;
    font-size: 13px;
    line-height: 1.75;
}

.aaj-summary-more-link {
    display: inline-flex;
    margin-left: 8px;
    color: var(--aaj-primary);
    font-weight: 900;
    text-decoration: underline !important;
}

.aaj-toc-meta {
    justify-content: flex-start;
    color: var(--aaj-muted);
    font-size: 12px;
}

.aaj-toc-meta a {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
    color: #008a72;
    font-weight: 900;
    text-decoration: none !important;
}

.aaj-summary-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.aaj-summary-modal:target {
    display: flex;
}

.aaj-summary-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 26, 51, .62);
}

.aaj-summary-modal-panel {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 40px));
    max-height: min(720px, calc(100vh - 56px));
    overflow-y: auto;
    padding: 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.aaj-summary-modal-panel h3 {
    margin: 0 32px 10px 0;
    color: var(--aaj-primary);
    font-size: 21px;
    line-height: 1.4;
}

.aaj-summary-modal-panel p {
    color: #1d344d;
    font-size: 14px;
    line-height: 1.8;
}

.aaj-summary-modal-authors {
    margin: 0 0 16px !important;
    font-weight: 900;
}

.aaj-summary-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    color: var(--aaj-ink);
    font-size: 28px;
    line-height: 1;
    text-decoration: none !important;
}

.aaj-toc-footer {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-top: 34px;
    color: var(--aaj-muted);
    font-size: 12px;
}

.aaj-issue-back {
    margin-top: 34px;
    text-align: center;
}

.aaj-issue-header-full {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--aaj-line);
}

.aaj-issue-cover-large {
    width: 240px;
    height: 340px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.aaj-issue-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aaj-issue-info-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aaj-meta-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.aaj-meta-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.aaj-meta-table td:first-child {
    width: 120px;
    color: var(--aaj-muted);
    font-weight: 700;
}

@media (max-width: 720px) {
    body.aaj-no-theme-chrome .aaj-publication-list,
    body.aaj-no-theme-chrome .aaj-publication-detail,
    .aaj-issue-toc-page {
        width: min(100%, calc(100vw - 28px));
        margin: 32px auto 56px;
    }

    .aaj-issue-header-full {
        grid-template-columns: 1fr;
    }

    .aaj-issue-detail-top,
    .aaj-issue-feature {
        grid-template-columns: 1fr;
    }

    .aaj-issue-feature-cover {
        width: 100%;
        max-width: 260px;
    }

    .aaj-toc-item {
        padding: 22px 18px;
    }

    .aaj-toc-meta a {
        margin-left: 0;
    }

    .aaj-issue-cover-large {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1.4;
    }

    .aaj-archive-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .aaj-publication-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 900px) {
    .aaj-publication-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aaj-frontend-layout {
        grid-template-columns: 1fr;
    }

    .aaj-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .aaj-main-content,
    .aaj-sidebar,
    .aaj-login-section {
        padding: 16px;
    }

    .aaj-publication-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .aaj-dashboard-table {
        display: block;
        overflow-x: auto;
    }

    .aaj-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .aaj-author-task-grid {
        grid-template-columns: 1fr;
    }
}
