.rw-landing-hero {
    width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}
.rw-landing-hero--guest {
    background: #fff;
}
.rw-landing-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 600;
}
.rw-landing-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.rw-landing-hero__lead {
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.55;
}
.rw-landing-hero__highlights {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.rw-landing-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.rw-landing-highlight__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.rw-landing-directory {
    background: #f8fafc;
}
.rw-landing-directory__head {
    padding-top: 0.25rem;
}
.rw-landing-toolbar .input-group-text,
.rw-landing-toolbar .form-control {
    border-color: #e2e8f0;
}
.rw-landing-toolbar .form-control:focus {
    border-color: #93c5fd;
    box-shadow: none;
}
.rw-landing-filters .btn.active {
    font-weight: 600;
}
.rw-landing-group__title {
    color: #0f172a;
}
.rw-tool-card.rw-hub-card--tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rw-hub-card__link {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.rw-tool-more {
    align-self: flex-start;
    margin-left: 0.15rem;
    font-size: 0.78rem;
    color: #64748b;
    text-decoration: none;
}

.rw-tool-more:hover {
    color: #1e3a8a;
}

.rw-tool-expanded {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #475569;
    padding: 0 0.15rem 0.35rem;
}

.rw-hub-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    height: 100%;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.rw-hub-card:hover,
.rw-hub-card:focus-within,
.rw-hub-card__link:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    color: #0f172a;
    outline: none;
}
.rw-hub-card__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.rw-hub-card__body {
    flex: 1;
    min-width: 0;
}
.rw-hub-card__title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.rw-hub-card__excerpt {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}
.rw-hub-card__arrow {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 1rem;
    margin-top: 0.15rem;
    transition: color 0.15s ease, transform 0.15s ease;
}
.rw-hub-card:hover .rw-hub-card__arrow,
.rw-hub-card:focus-within .rw-hub-card__arrow,
.rw-hub-card__link:focus-visible .rw-hub-card__arrow {
    color: #2563eb;
    transform: translateX(2px);
}
.rw-landing-empty {
    border-radius: 0.75rem;
}
.rw-subnav .nav-link { font-size: .88rem; }
.rw-subnav .nav-link.active { background: #2563eb; }
.rw-module-card { border: 1px solid #dbe8ff; border-radius: .85rem; transition: transform .15s ease, box-shadow .15s ease; }
.rw-module-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(37, 99, 235, .12); }
.rw-stat-tile { border: 1px solid #e2e8f0; border-radius: .75rem; background: #fff; }
.rw-list-item { border: 1px solid #e8eef7; border-radius: .75rem; padding: 1rem; background: #fff; margin-bottom: .75rem; }
.rw-badge-open { background: #dcfce7; color: #166534; }
.rw-badge-peer { background: #dbeafe; color: #1e40af; }
.rw-profile-card .rw-profile-avatar { font-size: 4rem; color: #2563eb; line-height: 1; }
.rw-notif-unread { background: #eff6ff; border-left: 3px solid #2563eb; }
.rw-admin-stat { border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1rem; background: #fff; text-align: center; }
.rw-list-item .form-label .text-danger,
.card .form-label .text-danger { font-weight: 600; }

/* Publications catalogue + upload panel */
.rw-publications-page .rw-publications-search .input-group {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.rw-publication-feed { display: flex; flex-direction: column; gap: 0.75rem; }
.rw-empty-catalogue { border-radius: 0.75rem; padding: 1.5rem; text-align: center; }

.rw-pub-upload-cta { min-width: min(100%, 14rem); }
.rw-pub-upload-cta__btn { white-space: nowrap; font-weight: 600; }

.rw-pub-upload-modal .modal-content {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}
.rw-pub-upload-modal__head {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #4f46e5 100%);
    color: #fff;
    border-bottom: 0;
    padding: 1.1rem 1.25rem;
}
.rw-pub-upload-modal__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.rw-pub-upload-modal__lead { opacity: 0.92; line-height: 1.45; }
.rw-pub-upload-modal__body { padding: 1.15rem 1.25rem 1rem; background: #f8fafc; }
.rw-pub-upload-modal__footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1.25rem;
}
@media (min-width: 992px) {
    .rw-pub-upload-modal .modal-lg { max-width: 860px; }
}
.rw-upload-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.85rem 0.9rem 0.9rem;
    margin: 0 0 0.85rem;
    background: #fff;
}
.rw-upload-fieldset--file { margin-bottom: 1rem; }
.rw-upload-fieldset__legend {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    width: auto;
    padding: 0 0.35rem;
    margin-bottom: 0.5rem;
    float: none;
}
.rw-upload-form .form-label { font-size: 0.8125rem; font-weight: 600; color: #334155; }
.rw-upload-form .form-control,
.rw-upload-form .form-select { font-size: 0.9rem; }
.rw-file-drop {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}
.rw-file-drop:focus-within {
    border-color: #2563eb;
    background: #eff6ff;
}
.rw-file-drop__hint { font-size: 0.75rem; color: #64748b; margin-top: 0.35rem; }
.rw-upload-submit {
    font-weight: 600;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.rw-upload-panel__feedback:empty { display: none; }
.rw-upload-panel__feedback.text-success { color: #15803d !important; }
.rw-upload-panel__feedback.text-danger { color: #b91c1c !important; }
.rw-pub-review.d-none { display: none !important; }
.rw-pub-review__body {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #fff;
    padding: 0.85rem 1rem;
}
.rw-pub-review__section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.rw-pub-review__section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.rw-pub-review__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}
.rw-pub-review__value {
    font-size: 0.9rem;
    line-height: 1.45;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
}
.rw-pub-review__value--abstract { max-height: 12rem; overflow-y: auto; font-size: 0.85rem; }
.rw-my-submissions .rw-submission-response.d-none { display: none !important; }
.rw-my-submission-item.is-responded { opacity: 0.85; }

.rw-module-card .researchwindow-marketing-copy p:last-child {
    margin-bottom: 0;
}

.rw-module-card .researchwindow-marketing-copy ul,
.rw-module-card .researchwindow-marketing-copy ol {
    margin-bottom: 0.35rem;
    padding-left: 1.15rem;
}

.rw-pub-upload-modal #rwPubFormWrap.d-none,
.rw-pub-upload-modal #rwDataFormWrap.d-none { display: none !important; }
.rw-pub-upload-modal #rwPubModalFooterForm.d-none,
.rw-pub-upload-modal #rwPubModalFooterReview.d-none,
.rw-pub-upload-modal #rwDataModalFooterForm.d-none,
.rw-pub-upload-modal #rwDataModalFooterReview.d-none { display: none !important; }

.rw-subnav--intelligence .nav-link { font-size: 0.85rem; }
.rw-chat-log { background: #f8fafc; }
.rw-chat-bubble { padding: 0.65rem 0.85rem; margin-bottom: 0.5rem; border-radius: 0.5rem; background: #fff; border: 1px solid #e2e8f0; }
.rw-chat-bubble--user { border-left: 3px solid #0d6efd; }
.rw-chat-bubble--ai { border-left: 3px solid #198754; }

.rw-cite-formats .rw-cite-format__text {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 12rem;
    overflow: auto;
    font-size: 0.8125rem;
}

.rw-cite-copy-btn {
    text-decoration: none;
    font-size: 0.8125rem;
}

.rw-cite-copy-btn--copied {
    color: #198754 !important;
    font-weight: 600;
}

.rw-messages-thread .rw-message-pending {
    opacity: 0.72;
}
.rw-messages-thread .rw-message-item:last-child {
    scroll-margin-bottom: 0.5rem;
}

/* In-app navigation — fast scholar workspace transitions */
.rw-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2000;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.rw-nav-progress.is-active {
    opacity: 1;
    animation: rw-nav-progress 0.9s ease-in-out infinite;
}
@keyframes rw-nav-progress {
    0% { width: 0; margin-left: 0; }
    50% { width: 65%; margin-left: 15%; }
    100% { width: 0; margin-left: 100%; }
}
main.rw-page-main.is-loading {
    opacity: 0.72;
    transition: opacity 0.12s ease;
    pointer-events: none;
}
main.rw-page-main {
    transition: opacity 0.12s ease;
}
