/* Цац сэтгүүл / TSATS — 2026 (parent: ../styles.css) */

:root {
    --tsats-primary: #0a1628;
    --tsats-accent: #c9a227;
    --tsats-blue: #1565c0;
    --tsats-bg: #f0f4f8;
    --tsats-text: #2c3e50;
    --tsats-sidebar: 300px;
}

.journal-site-body {
    background-color: var(--tsats-bg);
    color: var(--tsats-text);
    padding-top: 0;
}

/* Sub-bar under main site header (don’t use .top-bar — conflicts with global header) */
.tsats-local-bar {
    background: #fff;
    border-bottom: 1px solid rgba(10, 22, 40, 0.1);
    padding: 10px 0;
    font-size: 0.9rem;
    box-shadow: 0 1px 4px rgba(10, 22, 40, 0.04);
}

.tsats-local-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tsats-back-link {
    text-decoration: none;
    color: #5c6b7a;
    font-weight: 500;
    transition: color 0.2s;
}

.tsats-back-link:hover {
    color: var(--tsats-blue);
}

.tsats-local-title {
    font-weight: 700;
    color: var(--tsats-primary);
    letter-spacing: 0.02em;
}

.journal-page-wrap {
    margin-top: 28px;
    margin-bottom: 48px;
}

.journal-layout {
    display: grid;
    grid-template-columns: var(--tsats-sidebar) 1fr;
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(10, 22, 40, 0.08);
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 16px rgba(10, 22, 40, 0.06);
}

.cover-wrapper {
    margin-bottom: 20px;
    text-align: center;
    padding: 12px;
    background: var(--tsats-bg);
    border-radius: 10px;
}

.journal-cover {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    transition: transform 0.25s ease;
}

.journal-cover:hover {
    transform: scale(1.02);
}

.tsats-thumb-label {
    font-weight: 700;
    color: var(--tsats-primary);
}

.tsats-thumb-sub {
    font-size: 0.9rem;
    color: #5c6b7a;
}

.journal-cover-thumb {
    width: 100%;
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    box-shadow: 2px 6px 16px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

.journal-meta-sidebar h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    color: var(--tsats-primary);
    border-bottom: 2px solid var(--tsats-accent);
    padding-bottom: 8px;
    margin: 20px 0 12px;
}

.journal-meta-sidebar h3:first-child {
    margin-top: 0;
}

.meta-item {
    font-size: 0.875rem;
    margin-bottom: 10px;
    color: #555;
}

.meta-item strong {
    color: #333;
    display: block;
}

.journal-header {
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.1);
    padding-bottom: 20px;
}

.journal-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--tsats-primary);
    margin: 0 0 10px;
    line-height: 1.25;
}

.volume-info {
    font-size: 1rem;
    color: #5c6b7a;
    font-weight: 400;
}

.tsats-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tsats-primary);
    background: #e8eef5;
    padding: 10px 16px;
    margin: 28px 0 18px;
    border-left: 4px solid var(--tsats-accent);
    font-weight: 700;
    border-radius: 0 8px 8px 0;
}

.article-item {
    background: #fff;
    padding: 20px 22px;
    margin-bottom: 14px;
    border-radius: 12px;
    border: 1px solid rgba(10, 22, 40, 0.08);
    box-shadow: 0 2px 10px rgba(10, 22, 40, 0.04);
    transition: box-shadow 0.2s;
}

.article-item:hover {
    box-shadow: 0 6px 20px rgba(10, 22, 40, 0.08);
}

.article-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.article-title a {
    text-decoration: none;
    color: var(--tsats-blue);
    transition: color 0.2s;
}

.article-title a:hover {
    color: var(--tsats-accent);
}

.authors {
    font-size: 0.92rem;
    color: #444;
    font-style: italic;
    margin-bottom: 10px;
}

.abstract-preview {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.65;
}

.keywords {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 14px;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--tsats-blue), #0d47a1);
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(21, 101, 192, 0.35);
}

/* Article detail */
.article-content {
    background: #fff;
    padding: clamp(24px, 4vw, 40px);
    border-radius: 12px;
    border: 1px solid rgba(10, 22, 40, 0.08);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}

.article-header {
    margin-bottom: 28px;
}

.article-content .article-title {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    color: var(--tsats-primary);
    margin: 0 0 16px;
}

.authors-list {
    margin-top: 16px;
}

.author-block {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.author-block:last-child {
    border-bottom: none;
}

.author-name {
    font-weight: 700;
    color: var(--tsats-primary);
}

.author-affiliation {
    display: block;
    font-size: 0.88rem;
    color: #555;
    margin-top: 4px;
}

.author-email {
    font-size: 0.85rem;
}

.author-email a {
    color: var(--tsats-blue);
}

.section-header {
    font-weight: 700;
    color: var(--tsats-primary);
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 1rem;
    border-bottom: 2px solid var(--tsats-accent);
    padding-bottom: 6px;
}

.abstract-text,
.keywords-text {
    color: #555;
    line-height: 1.7;
}

.keywords-text {
    font-style: italic;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1100px) {
    .journal-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        top: auto;
    }

    .cover-wrapper {
        flex: 0 0 180px;
        margin-bottom: 0;
    }

    .journal-meta-sidebar {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        display: block;
    }

    .cover-wrapper {
        margin: 0 auto 16px;
    }

    .article-content .article-title {
        font-size: 1.25rem;
    }
}

/* ----- Журналын нүүр / архив — мэргэжлийн толгой ----- */
.tsats-local-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tsats-local-pill {
    padding: 5px 14px;
    border-radius: 999px;
    background: #e8eef5;
    color: var(--tsats-primary) !important;
    font-weight: 600;
    font-size: 0.82rem;
}

.tsats-local-pill:hover {
    background: #dce4ee;
}

.tsats-journal-masthead {
    background: #fff;
    padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 28px);
    border-radius: 12px;
    border: 1px solid rgba(10, 22, 40, 0.08);
    box-shadow: 0 4px 18px rgba(10, 22, 40, 0.06);
    margin-bottom: clamp(20px, 3vw, 32px);
}

.tsats-journal-masthead--home {
    margin-bottom: clamp(24px, 4vw, 36px);
}

.tsats-masthead-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 20px;
}

.tsats-masthead-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-style: italic;
    font-weight: 700;
    color: var(--tsats-primary);
    letter-spacing: 0.02em;
}

.tsats-quote {
    font-style: italic;
    opacity: 0.88;
}

.tsats-masthead-doi-line,
.tsats-masthead-issn {
    font-size: 0.84rem;
    color: #4a5a6a;
    font-style: italic;
    max-width: min(100%, 520px);
    text-align: right;
}

.tsats-masthead-rule {
    height: 2px;
    background: var(--tsats-primary);
    margin: 14px 0 16px;
    opacity: 0.92;
}

.tsats-masthead-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.tsats-current-issue-line {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--tsats-primary);
}

.tsats-masthead-tagline-mn {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #5c6b7a;
    line-height: 1.5;
}

.tsats-masthead-note {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #5c6b7a;
    line-height: 1.65;
    max-width: 56rem;
}

.tsats-masthead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-tsats-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--tsats-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border: 2px solid var(--tsats-primary);
    transition: opacity 0.2s, transform 0.2s;
}

.btn-tsats-solid:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.btn-tsats-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: transparent;
    color: var(--tsats-primary) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border: 2px solid var(--tsats-primary);
    transition: background 0.2s, color 0.2s;
}

.btn-tsats-outline:hover {
    background: rgba(10, 22, 40, 0.06);
}

.tsats-archive-page-title {
    margin: 0 0 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    color: var(--tsats-primary);
}

#archive-main > .tsats-archive-page-title {
    margin-top: 4px;
}

.archive-issue-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.archive-issue-card.archive-issue-card {
    margin-bottom: 0;
    padding: clamp(14px, 2.5vw, 24px);
    border-radius: 14px;
    border: 1px solid rgba(10, 22, 40, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 10px 24px rgba(15, 33, 58, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.archive-issue-card.archive-issue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 33, 58, 0.1);
}

.archive-issue-heading {
    margin: 0 0 4px;
    font-size: clamp(1.05rem, 2vw, 1.24rem);
    font-weight: 700;
    color: var(--tsats-primary);
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.01em;
}

.archive-issue-file {
    font-size: 0.76rem;
    color: #7a8794;
    margin-bottom: 12px;
    word-break: break-all;
}

.archive-issue-preview {
    font-size: 0.88rem;
    white-space: pre-line;
}

@media (max-width: 640px) {
    .tsats-masthead-doi-line,
    .tsats-masthead-issn {
        text-align: left;
    }

    .tsats-masthead-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .tsats-masthead-actions {
        width: 100%;
    }

    .btn-tsats-solid,
    .btn-tsats-outline {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
}

/* ----- TSATS локал навигац (нэг товч) ----- */
.tsats-local-bar--compact {
    padding: 10px 0 8px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.tsats-local-bar-inner--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: fit-content;
    margin: 0 auto;
    padding: 4px;
    border-radius: 999px;
    background: #f2f5f9;
    border: 1px solid rgba(10, 22, 40, 0.12);
    position: relative;
    isolation: isolate;
}

.tsats-local-bar-inner--compact::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: linear-gradient(180deg, #0f223d 0%, #0a1628 100%);
    box-shadow:
        0 8px 18px rgba(10, 22, 40, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 380ms cubic-bezier(0.22, 0.76, 0.3, 1),
        box-shadow 260ms ease;
    will-change: transform;
    z-index: 0;
}

.tsats-local-bar-inner--archive::before {
    transform: translateX(100%);
    animation: tsats-switch-to-archive 420ms cubic-bezier(0.22, 0.76, 0.3, 1);
}

.tsats-local-bar-inner--new::before {
    transform: translateX(0);
    animation: tsats-switch-to-new 420ms cubic-bezier(0.22, 0.76, 0.3, 1);
}

.btn-tsats-journal-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9.5rem;
    padding: 8px 22px;
    border-radius: 999px;
    font-family: 'Exo 2', 'Montserrat', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--tsats-primary) !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    cursor: pointer;
}

.btn-tsats-journal-pill:hover {
    background: rgba(10, 22, 40, 0.08);
}

.btn-tsats-journal-pill--outline {
    background: transparent;
    color: var(--tsats-primary) !important;
}

.btn-tsats-journal-pill--outline:hover {
    background: rgba(10, 22, 40, 0.08);
}

.btn-tsats-journal-pill--current {
    cursor: default;
    pointer-events: none;
    opacity: 1;
}

.btn-tsats-journal-pill[aria-current="page"],
.btn-tsats-journal-pill--current {
    color: #fff !important;
    background: transparent;
    box-shadow: none;
}

.tsats-local-bar-inner--compact:active::before {
    box-shadow:
        0 4px 10px rgba(10, 22, 40, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

@keyframes tsats-switch-to-archive {
    0% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(101.8%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes tsats-switch-to-new {
    0% {
        transform: translateX(100%);
    }
    75% {
        transform: translateX(-1.8%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tsats-local-bar-inner--compact::before {
        transition: none;
        animation: none !important;
    }
}

.tsats-archive-lead {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #5c6b7a;
    line-height: 1.55;
    max-width: 42rem;
}

/* Архив — дугаарын товчоон хуудаснаас (зурагтай адил) */
.archive-toc-layout {
    display: grid;
    grid-template-columns: minmax(184px, 236px) 1fr;
    gap: clamp(16px, 3.2vw, 30px);
    align-items: stretch;
    margin: 8px 0 14px;
}

.archive-toc-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(21, 101, 192, 0.22);
    padding: 0;
    text-align: center;
    background: #fff;
}

.archive-toc-sidebar-top {
    background: linear-gradient(180deg, #dceefc 0%, #b8dbf7 100%);
    padding: 18px 12px 16px;
}

.archive-toc-sidebar-mid {
    flex: 1;
    padding: 16px 12px 20px;
    background: #fff;
}

.archive-toc-sidebar-bottom {
    background: var(--tsats-blue);
    padding: 14px 10px 18px;
}

.archive-toc-sidebar-logo img {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    width: min(100%, 128px);
    height: auto;
}

.archive-toc-sidebar-pub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tsats-text);
    line-height: 1.42;
    margin: 0 0 14px;
}

.archive-toc-sidebar-year {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--tsats-primary);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.archive-toc-sidebar-issue {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tsats-blue);
    margin: 8px 0 0;
}

.archive-toc-sidebar-tagline {
    font-size: 0.71rem;
    font-weight: 700;
    line-height: 1.42;
    color: #fff;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 0 4px;
}

.archive-toc-main {
    min-width: 0;
}

.archive-toc-main-title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tsats-blue);
    font-size: clamp(1.02rem, 2vw, 1.3rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--tsats-blue);
    font-family: 'Exo 2', Montserrat, sans-serif;
}

.archive-toc-plain-body {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--tsats-text);
    white-space: pre-line;
}

.archive-toc-subtitle {
    margin: -4px 0 16px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--tsats-blue);
    border-bottom: 2px solid var(--tsats-blue);
    padding-bottom: 8px;
}

.archive-toc-section-title {
    margin: 1.04rem 0 0.42rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: italic;
    color: var(--tsats-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.archive-toc-entry {
    margin: 0.26rem 0;
    font-size: 0.86rem;
    line-height: 1.42;
    color: var(--tsats-text);
}

.archive-toc-entry + .archive-toc-entry {
    border-top: 1px solid rgba(21, 101, 192, 0.08);
    padding-top: 4px;
}

@media (max-width: 880px) {
    .archive-toc-layout {
        grid-template-columns: 1fr;
    }

    .archive-toc-sidebar {
        margin: 0 auto;
        max-width: 320px;
    }
}
