/* ==========================================================================
   Knowledge - public site layer.
   Built on the BSI foundation in style.css: same tokens, same burgundy accent,
   same PT Serif, same light weights. Only the editorial surfaces live here.
   ========================================================================== */

.site-header {
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: block;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand:hover { text-decoration: none; color: var(--text); }

.brand-institute {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.brand-name {
    display: block;
    font-size: 27px;
    line-height: 1.1;
    color: var(--text);
}

.brand-name .brand-accent { color: var(--red); }

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.main-site-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-muted);
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    padding: 8px 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-site-link:hover {
    color: var(--red);
    border-color: var(--red);
    text-decoration: none;
}

.lang-switch {
    font-size: 13px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-soft);
    padding-left: 18px;
}

.lang-switch a { color: var(--text-muted); }
.lang-switch a:hover { color: var(--red); }
.lang-switch .is-current { color: var(--red); }

.site-nav {
    border-bottom: 2px solid var(--divider);
    background: var(--surface);
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
}

.site-nav a {
    padding: 15px 0;
    margin-right: 34px;
    font-size: 15px;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.site-nav a:hover { color: var(--text); text-decoration: none; }

.site-nav a.active {
    color: var(--red);
    border-bottom-color: var(--red);
}

.site-nav .nav-search {
    margin-left: auto;
    margin-right: 0;
    border-bottom: none;
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.site-nav .nav-search:hover { color: var(--red); }

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.section-head {
    padding: 46px 0 26px;
    border-bottom: 2px solid var(--divider);
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.section-head h1,
.section-head h2 {
    font-size: 30px;
    letter-spacing: -0.3px;
}

.section-head .section-link { font-size: 14px; }

/* --- Entry rows: portrait on the left, title on the right ----------------- */

.entry-list { border-top: none; }

.entry {
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: stretch;
    border-bottom: 1px solid var(--border-soft);
    color: inherit;
    text-decoration: none;
    transition: background 0.25s;
}

.entry:hover { background: var(--bg); text-decoration: none; color: inherit; }

.entry-media {
    position: relative;
    padding: 26px 0 26px 0;
}

.entry-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(1);
    border: 1px solid var(--border-soft);
    transition: filter 0.35s;
}

.entry:hover .entry-media img { filter: grayscale(0.55); }

.entry-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-soft);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.entry-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 46px;
    gap: 14px;
}

.entry-title {
    font-size: 27px;
    line-height: 1.32;
    color: var(--text);
    letter-spacing: -0.2px;
}

.entry:hover .entry-title { color: var(--red); }

.entry-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.entry-meta .dot { color: var(--border-input); }

.entry-authors { font-size: 14px; color: var(--text-muted); }

/* --- Article ------------------------------------------------------------- */

.article {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 44px;
}

.article-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--red); }

.article h1 {
    font-size: 36px;
    line-height: 1.24;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.article-standfirst {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 26px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 30px;
}

.article-figure { margin: 0 0 34px; }

.article-figure img {
    width: 100%;
    display: block;
    filter: grayscale(1);
    border: 1px solid var(--border-soft);
}

.article-figure figcaption {
    font-size: 12.5px;
    color: var(--text-muted);
    padding-top: 8px;
}

.article-body { font-size: 16px; line-height: 1.85; color: var(--text); }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 24px; margin: 38px 0 14px; }
.article-body h3 { font-size: 19px; margin: 30px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { max-width: 100%; height: auto; }

.article-body blockquote {
    margin: 26px 0;
    padding: 18px 24px;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    color: var(--text-muted);
    font-size: 17px;
}

.article-body a { text-decoration: underline; }

.article-footer { margin-top: 46px; }

.meta-block {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    padding: 22px 24px;
    margin-bottom: 18px;
}

.meta-block h2 { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }

.doi-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.citation {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    word-break: break-word;
}

.keyword-list { display: flex; flex-wrap: wrap; gap: 8px; }

.author-card {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--divider);
}

.author-card:first-of-type { border-top: none; }
.author-name { font-size: 15px; }
.author-affiliation { font-size: 13px; color: var(--text-muted); }

.notice {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* --- Issue download ------------------------------------------------------ */

.issue-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    margin-bottom: 34px;
}

.issue-download .issue-file { font-size: 13px; color: var(--text-muted); }

/* --- Search --------------------------------------------------------------*/

.search-form {
    display: flex;
    gap: 12px;
    max-width: 620px;
    margin: 34px 0 10px;
}

.search-form input { flex: 1; }

.search-count { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }

/* --- Pagination ----------------------------------------------------------*/

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 34px 0 0;
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
}

.pagination a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pagination .is-current { background: var(--red); border-color: var(--red); color: #ffffff; }

/* --- Empty state ---------------------------------------------------------*/

.empty-row {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
}

/* --- Footer --------------------------------------------------------------*/

.site-footer {
    border-top: 1px solid var(--border-soft);
    background: var(--bg);
    margin-top: 40px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--red); }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-note { max-width: 420px; line-height: 1.7; }

/* --- Responsive ----------------------------------------------------------*/

@media (max-width: 860px) {
    .entry { grid-template-columns: 1fr; }
    .entry-media { padding: 22px 0 0; }
    .entry-body { padding: 20px 0 28px; }
    .entry-title { font-size: 22px; }
    .article h1 { font-size: 28px; }
    .site-header-inner { flex-wrap: wrap; gap: 14px; }
    .header-right { width: 100%; justify-content: space-between; }
    .section-head { flex-direction: column; gap: 8px; align-items: flex-start; }
}
