:root {
    --public-bg: #f8f5ef;
    --public-surface: #ffffff;
    --public-text: #1a2130;
    --public-muted: #6b7280;
    --public-border: #e3ddcf;
    --public-primary: #1a45c1;
    --public-primary-hover: #13369c;
    --public-accent: #cfd7f1;
    --public-dark: #242a2f;
    --public-dark-2: #1a1f24;
    --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--public-text);
    background: var(--public-bg);
    line-height: 1.55;
    font-size: 16px;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--public-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.01em; color: var(--public-text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; margin-top: 1rem; }

.muted { color: var(--public-muted); font-size: 0.9rem; }

.public-container {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.public-header {
    background: var(--public-surface);
    border-bottom: 1px solid var(--public-border);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--public-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}
.public-brand:hover { text-decoration: none; }

.brand-mark {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.brand-mark.big {
    width: 56px;
    height: 56px;
}

.brand-word { font-size: 0.9rem; color: #555; font-weight: 600; }

.top-nav {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}
.top-nav a {
    color: var(--public-text);
    font-size: 0.92rem;
    font-weight: 500;
}

.top-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.btn-outline {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background: var(--public-surface);
    color: var(--public-text);
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.btn-outline:hover { background: var(--public-bg); text-decoration: none; }

.btn-dark {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--public-dark);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.btn-dark:hover { background: var(--public-dark-2); color: white; text-decoration: none; }
.btn-block { display: block; width: 100%; padding: 0.75rem 1rem; font-size: 0.95rem; }

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
    background: linear-gradient(135deg, #2548c9 0%, #1a3cab 65%, #152e87 100%);
    color: white;
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.hero-copy h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.hero-sub { font-size: 1.05rem; margin: 0; opacity: 0.9; }

.hero-rings {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 180px; height: 180px;
    pointer-events: none;
}
.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.ring.r1 { transform: scale(1); }
.ring.r2 { transform: scale(0.75); border-color: rgba(255,255,255,0.25); }
.ring.r3 { transform: scale(0.5); border-color: rgba(255,255,255,0.15); }

/* ============================================================
   SEARCH STRIP
   ============================================================ */
.search-strip {
    background: var(--public-surface);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--public-border);
}
.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.search-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.25rem;
    color: var(--public-text);
}
.search-form input[type="text"],
.search-form select {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    background: var(--public-surface);
    font-size: 0.85rem;
    flex: 1;
    min-width: 130px;
    font-family: inherit;
}
.btn-search {
    padding: 0.45rem 1.1rem;
    background: var(--public-dark);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
}
.btn-search:hover { background: var(--public-dark-2); }
.advanced-link { font-size: 0.85rem; margin-left: 0.25rem; }

/* ============================================================
   MAIN
   ============================================================ */
.public-main { flex: 1; padding: 1.5rem 0 2.5rem; }

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.message {
    padding: 0.6rem 0.9rem;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.message-success { background: #ecfdf3; border-color: #abefc6; color: #027a48; }
.message-error { background: #fef3f2; border-color: #fecdca; color: #b42318; }

/* ============================================================
   HOME GRID
   ============================================================ */
.home-grid {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

.home-sidebar, .home-news { display: flex; flex-direction: column; gap: 1rem; }

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-bottom: none;
    margin: 0;
}

.journal-search {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-bottom: none;
    padding: 0.5rem 1rem;
}
.journal-search input {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: var(--public-bg);
}

.sidebar-links, .journal-tiles {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.25rem;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-bottom: none;
}
.sidebar-links li a {
    display: block;
    padding: 0.35rem 0.75rem;
    color: var(--public-text);
    font-size: 0.88rem;
}

.journal-tiles { border-bottom: 1px solid var(--public-border); padding: 0.5rem; }
.journal-tiles li { padding: 0; }
.journal-tiles li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    color: var(--public-text);
    font-size: 0.85rem;
    border-radius: var(--radius);
}
.journal-tiles li a:hover { background: var(--public-bg); text-decoration: none; }

.tile-icon {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.tile-name { flex: 1; font-weight: 500; }

.sidebar-more {
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    font-size: 0.85rem;
    font-weight: 500;
}

.mv-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe7f7;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.mv-card-title {
    margin: 0;
    padding: 0.78rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(180deg, #eef4ff 0%, #e6efff 100%);
    border-bottom: 1px solid #d5e2f6;
}

.mv-list {
    padding: 0.2rem 0.55rem 0.45rem;
}

.mv-item {
    padding: 0.58rem 0.4rem;
    border-bottom: 1px dashed #dbe4f2;
}

.mv-item:last-child {
    border-bottom: none;
}

.mv-item-title {
    display: block;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #1d4ed8;
    font-weight: 600;
}

.mv-item-title:hover {
    color: #1e40af;
}

.mv-item-author {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #475569;
}

.mv-empty {
    margin: 0;
    padding: 0.45rem 0.2rem 0.25rem;
    font-size: 0.84rem;
}

/* ============================================================
   FEATURED CAROUSEL
   ============================================================ */
.featured-carousel { margin-bottom: 1.5rem; }
.featured-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 230px;
    background: #2b3953;
}
.featured-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent, #2548c9) 0%, #0e1a3f 100%);
    overflow: hidden;
}
.wave {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
}
.wave.w1 { width: 400px; height: 400px; left: -100px; top: -100px; }
.wave.w2 { width: 260px; height: 260px; right: -60px; bottom: -60px; }
.wave.w3 { width: 120px; height: 120px; left: 60%; top: 20%; }

.featured-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}
.featured-kicker {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.featured-overlay h2 { color: white; margin: 0; font-size: 1.2rem; line-height: 1.3; }
.featured-overlay h2 a { color: white; }
.featured-overlay h2 a:hover { text-decoration: underline; }

/* ============================================================
   RECENT / ARTICLE LIST
   ============================================================ */
.section-title {
    font-size: 1.25rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--public-border);
    margin-bottom: 1rem;
}

.article-list, .recent-section { display: flex; flex-direction: column; gap: 1.25rem; }

.article-row {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--public-border);
}
.article-row:last-child { border-bottom: none; }

.article-row-head {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}
.tag {
    display: inline-block;
    padding: 0.08rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tag-open { background: #1abc9c; color: white; }
.tag-type { background: #e24c4c; color: white; }
.tag-featured { background: var(--public-primary); color: white; }
.tag-keyword {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    color: var(--public-text);
    text-transform: none;
}
.article-pages {
    font-size: 0.75rem;
    color: var(--public-muted);
    margin-left: auto;
}

.article-row h3 {
    font-size: 1.02rem;
    margin: 0.25rem 0;
    line-height: 1.35;
}
.article-row h3 a { color: var(--public-text); }
.article-row h3 a:hover { color: var(--public-primary); text-decoration: none; }

.article-authors { font-size: 0.88rem; margin: 0.15rem 0; color: var(--public-text); }
.article-authors em { font-style: italic; }
.article-meta {
    font-size: 0.78rem;
    color: #9aa0a6;
    margin: 0.1rem 0;
}
.article-abstract { font-size: 0.88rem; color: #444; margin: 0.35rem 0 0; }
.read-more { font-weight: 600; color: var(--public-primary); }

/* ============================================================
   NEWS / BLOG SIDEBAR
   ============================================================ */
.news-card {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.news-card h3 {
    font-size: 1.05rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--public-border);
    margin-bottom: 0.75rem;
}
.news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.news-list li { font-size: 0.85rem; }
.news-date { color: var(--public-muted); font-size: 0.75rem; }
.news-title { color: var(--public-text); font-weight: 500; line-height: 1.3; }
.news-more { display: inline-block; margin-top: 0.75rem; font-size: 0.82rem; font-weight: 500; }

/* ============================================================
   JOURNALS LIST / JOURNAL DETAIL
   ============================================================ */
.page-header-strip {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

/* —— Journal catalogue (/journals/) — publisher-style cards —— */
.public-container:has(.journal-catalog) {
    max-width: 80rem;
}

.journal-catalog {
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.journal-catalog__header {
    margin-bottom: 2.5rem;
}

.journal-catalog__title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
}

.journal-catalog__subtitle {
    margin: 0.5rem 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: #6b7280;
    max-width: 52rem;
}

.journal-catalog__count {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 0.375rem;
    vertical-align: middle;
}

.journal-catalog__search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.journal-catalog__search-input {
    flex: 1;
    min-width: min(100%, 14rem);
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
}

.journal-catalog__search-input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.35);
    outline-offset: 1px;
    border-color: #93c5fd;
}

.journal-catalog__search-btn {
    padding: 0.5rem 1rem;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.journal-catalog__search-btn:hover {
    background: #1f2937;
}

.journal-catalog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .journal-catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .journal-catalog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .journal-catalog__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.journal-catalog__cell {
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.journal-catalog-card {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.journal-catalog-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
    transform: scale(1.02);
}

.journal-catalog-card__media {
    flex-shrink: 0;
    height: 8rem;
    min-height: 8rem;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.journal-catalog-card__logo-img {
    max-height: 5rem;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.journal-catalog-card__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #1a45c1, #5b7cff);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

.journal-catalog-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.journal-catalog-card__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.journal-catalog-card__title a {
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-catalog-card__title a:hover {
    color: #2563eb;
    text-decoration: none;
}

.journal-catalog-card__desc {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-catalog-card__meta {
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: #6b7280;
}

.journal-catalog-card__meta-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.35rem;
    align-items: baseline;
}

.journal-catalog-card__meta dt {
    margin: 0;
    font-weight: 600;
    color: #374151;
}

.journal-catalog-card__meta dd {
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

.journal-catalog-card__indexed {
    margin: 0.65rem 0 0;
    font-size: 0.65rem;
    line-height: 1.45;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.journal-catalog-card__indexed-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
    margin-right: 0.15rem;
}

.journal-catalog-card__chip {
    display: inline-block;
    padding: 0.08rem 0.35rem;
    background: #f3f4f6;
    border-radius: 0.25rem;
    font-weight: 500;
    color: #4b5563;
}

.journal-catalog-card__footer {
    margin-top: auto;
    padding-top: 0.85rem;
}

.journal-catalog-card__cta {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.journal-catalog-card__cta:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.journal-catalog__empty {
    margin: 0;
    padding: 2rem 1.25rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .journal-catalog-card {
        transition: none;
    }

    .journal-catalog-card:hover {
        transform: none;
    }
}

.subject-chip {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    background: #eef2ff;
    color: var(--public-primary);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.journal-header {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    --accent: var(--public-primary);
}
.journal-header-cover {
    background: linear-gradient(135deg, var(--accent), #2d2d7a);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2rem;
    min-height: 140px;
}
.journal-meta { list-style: none; padding: 0; margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--public-text); }
.journal-meta li { padding: 0.2rem 0; }

.breadcrumb { font-size: 0.82rem; color: var(--public-muted); margin-bottom: 0.25rem; }

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.article-scholar {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid #dfe7f3;
    border-radius: 1rem;
    padding: 1.6rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.article-scholar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-scholar-main {
    min-width: 0;
}

.article-scholar-kicker {
    margin: 0 0 0.65rem;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #edf3ff;
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.article-scholar-header h1 {
    margin: 0;
    font-size: clamp(1.75rem, 2.3vw, 2.35rem);
    line-height: 1.24;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.article-scholar-authors {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
}

.article-scholar-authors a {
    color: #1f2937;
    text-decoration: none;
}

.article-scholar-authors a:hover {
    color: #2563eb;
    text-decoration: none;
}

.article-scholar-affiliations {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: #64748b;
    padding-left: 0.05rem;
}

.article-scholar-affiliations p {
    margin: 0.2rem 0;
}

.article-scholar-identifiers {
    margin: 0.85rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.82rem;
    color: #6b7280;
}

.article-scholar-identifiers a {
    color: #2563eb;
    text-decoration: none;
}

.article-scholar-identifiers a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.article-scholar-section {
    margin-top: 1.55rem;
}

.article-scholar-section h2 {
    margin: 0 0 0.55rem;
    font-size: 1.06rem;
    font-weight: 700;
    color: #0f172a;
}

.article-scholar-keywords {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.article-scholar-keyword-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #d9e4f8;
    background: #f5f9ff;
    color: #274065;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
}

.article-scholar-abstract-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.95rem 1rem;
}

.article-scholar-abstract {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.72;
    color: #111827;
}

.article-scholar-meta-line {
    margin: 1.35rem 0 0;
    padding: 0.8rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.77rem;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
}

.article-scholar-meta-line span {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #dbe7f7;
    color: #334155;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.article-scholar-references {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.article-scholar-references li {
    color: #374151;
    font-size: 0.88rem;
    line-height: 1.55;
}

.article-scholar-references a {
    color: #2563eb;
    text-decoration: none;
}

.article-scholar-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-scholar-card {
    background: #fff;
    border: 1px solid #e1ebfb;
    border-radius: 0.95rem;
    padding: 0.95rem 1rem 1rem;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.05);
}

.article-scholar-card--tight {
    padding-bottom: 1.15rem;
}

.article-scholar-card h3 {
    margin: 0 0 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4f6791;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.article-scholar-card p {
    margin: 0;
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.45;
}

.article-scholar-license-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.article-scholar-license-text {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.article-scholar-license-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.article-scholar-license-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.article-scholar-license-icon circle,
.article-scholar-license-icon path {
    fill: none;
    stroke: #0f172a;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-scholar-license-icon text {
    font-size: 8px;
    font-weight: 700;
    fill: #0f172a;
    font-family: Arial, sans-serif;
}

.article-scholar-license-text a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.article-scholar-pdf-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    border: 1px solid #0a8f8a;
    background: linear-gradient(180deg, #00a7a2 0%, #058b88 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.7rem 0.75rem;
}

.article-scholar-pdf-btn:hover {
    background: linear-gradient(180deg, #079a95 0%, #047f7c 100%);
    text-decoration: none;
}

.article-scholar-pdf-btn.is-disabled {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #9ca3af;
}

.article-scholar-index-logos {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.article-scholar-index-logo {
    border: 1px solid #dbe8ff;
    border-radius: 0.5rem;
    min-height: 4.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0.55rem;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.article-scholar-index-logo:hover {
    border-color: #93c5fd;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

.article-scholar-index-logo img {
    max-width: 100%;
    height: auto;
    max-height: 3.5rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.article-scholar-copy-btn {
    margin-top: 0.55rem;
    border: 1px solid #9cebd8;
    border-radius: 0.5rem;
    background: #d9f9f0;
    color: #0f5f5d;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
}

.article-scholar-copy-btn:hover {
    background: #c5f2e6;
    border-color: #7de3cb;
}

.article-scholar-copy-btn--block {
    width: 100%;
}

.article-scholar-cite-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
    color: #334155;
    font-weight: 600;
}

.article-scholar-cite-select {
    width: 100%;
    border: 1px solid #c9d8ef;
    border-radius: 0.5rem;
    background: #fff;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 600;
    padding: 0.55rem 0.7rem;
    font-family: inherit;
}

.article-scholar-cite-preview {
    margin-top: 0.7rem;
    border: 1px solid #c9d8ef;
    border-radius: 0.45rem;
    background: #f8fbff;
    min-height: 8.8rem;
    max-height: 15rem;
    overflow: auto;
    padding: 0.65rem 0.7rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #0f172a;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (min-width: 1024px) {
    .article-scholar-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .article-scholar {
        padding: 1rem;
    }

    .article-scholar-header h1 {
        font-size: 1.55rem;
    }
}


/* ============================================================
   INFO PAGE
   ============================================================ */
.info-page {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.8rem 1.9rem;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}
.info-page h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
}
.info-page .lead {
    font-size: 1.03rem;
    color: var(--public-muted);
    margin: 0.6rem 0 1.4rem;
    line-height: 1.7;
}
.info-section {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e8edf4;
}
.info-section h2 {
    font-size: 1.08rem;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}
.info-section p {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}
.submit-journal-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.submit-journal-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #d9e1ec;
    font-size: 0.92rem;
}

.info-page-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.jp-inline-editor {
    margin-top: 1rem;
}

.jp-inline-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.jp-inline-editor-textarea {
    width: 100%;
    min-height: 260px;
    border: 1px solid #cfd8e6;
    border-radius: var(--radius);
    padding: 0.65rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.55;
    background: #fff;
}

.jp-inline-editor-textarea:focus {
    outline: 2px solid rgba(59, 130, 246, 0.22);
    outline-offset: 1px;
    border-color: #93c5fd;
}

.jp-inline-editor-actions {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.jp-inline-editor-status {
    font-size: 0.82rem;
    color: var(--public-muted);
}

.jp-inline-image-upload {
    cursor: pointer;
}

@media (max-width: 680px) {
    .info-page {
        padding: 1.2rem 1rem;
        border-radius: 10px;
    }
}

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.auth-card {
    background: var(--public-surface);
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 440px;
}
.auth-card-wide { max-width: 620px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.auth-alt { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--public-muted); }
.auth-divider {
    position: relative;
    text-align: center;
    margin: 0.9rem 0;
    color: var(--public-muted);
    font-size: 0.8rem;
}
.auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--public-border);
}
.auth-divider span {
    position: relative;
    z-index: 1;
    background: var(--public-surface);
    padding: 0 0.6rem;
}
.btn-google {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1rem;
    border: 1px solid #d2d9e6;
    border-radius: var(--radius);
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn-google:hover {
    background: #f8fafc;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.btn-google:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 69, 193, 0.18);
}
.btn-google__icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: #fff;
    background: #ea4335;
}

.form-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.form-field label { font-weight: 600; font-size: 0.85rem; }
.form-input,
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--public-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--public-surface);
    font-family: inherit;
    color: var(--public-text);
}
.form-input:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--public-primary);
    box-shadow: 0 0 0 3px rgba(26,69,193,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-errors, .field-errors { color: #b42318; font-size: 0.82rem; margin-top: 0.25rem; }
.form-errors ul, .field-errors ul { margin: 0; padding-left: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.public-footer {
    background:
        linear-gradient(180deg, #50565d 0%, #444a51 55%, #3f454c 100%);
    color: #d5d7dc;
    margin-top: auto;
    padding: 2.1rem 0 0;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.55rem;
}
.public-footer h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}
.public-footer ul { list-style: none; padding: 0; margin: 0; }
.public-footer ul li { padding: 0.2rem 0; }
.public-footer ul li a { color: #d5d7dc; font-size: 0.85rem; }
.public-footer ul li a:hover { color: white; }
.footer-muted { color: #d5d7dc; font-size: 0.8rem; margin: 0.5rem 0 0.75rem; }
.footer-subscribe { display: flex; flex-direction: column; gap: 0.4rem; max-width: 240px; }
.footer-subscribe input {
    padding: 0.45rem 0.6rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: inherit;
}

.footer-bottom {
    background: rgba(26, 31, 36, 0.88);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.78rem 0;
    font-size: 0.78rem;
    color: #b8bbc2;
    backdrop-filter: blur(2px);
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.footer-legal {
    display: flex;
    gap: 0.5rem 0.9rem;
    flex-wrap: wrap;
    align-items: center;
}
.footer-legal a { color: #b8bbc2; }
.footer-legal a:hover { color: white; }

/* Keep the legal bar stable and readable on medium/small widths. */
@media (max-width: 860px) {
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }
}
@media (max-width: 640px) {
    .footer-bottom {
        padding: 0.7rem 0 0.8rem;
    }
    .footer-bottom-inner {
        gap: 0.45rem;
    }
    .footer-legal {
        width: 100%;
        gap: 0.35rem 0.75rem;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .home-grid { grid-template-columns: 1fr; }
    .top-nav { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-rings { display: none; }
    .journal-header { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .header-inner { flex-wrap: wrap; }
    .top-actions .btn-outline { display: none; }
    .search-form { flex-direction: column; align-items: stretch; }
    .search-form input, .search-form select { min-width: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
}
