/* ============================================================
   THAR MULTIDISCIPLINE JOURNAL — brand stylesheet
   Palette drawn from the new logo: deep navy + ink charcoal
   ============================================================ */

:root {
    --navy: #16233f;
    --navy-light: #24365e;
    --ink: #1c1c1c;
    --paper: #fbfaf7;
    --paper-alt: #f3f1ea;
    --line: #dcd8cc;
    --gold: #a9863b;
    --text-muted: #5b5b57;
    --radius: 3px;
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
    margin: 0 0 .5em;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
}

/* ---------- Top utility bar ---------- */
.topbar {
    background: var(--navy);
    color: #cfd6e4;
    font-size: .78rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar a { color: #cfd6e4; }
.topbar a:hover { color: #fff; }

/* ---------- Header / Navbar ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--navy);
    letter-spacing: .01em;
}
.brand-text span {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.navbar { display: flex; align-items: center; gap: 26px; }
.navbar ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}
.navbar a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.navbar a:hover,
.navbar a.active { color: var(--navy); border-color: var(--gold); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 10px;
    cursor: pointer;
}

.search-mini {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 6px 4px 14px;
    background: #fff;
}
.search-mini input {
    border: none;
    outline: none;
    font-size: .82rem;
    width: 150px;
    background: transparent;
}
.search-mini button {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #eef0f6;
    padding: 64px 0;
}
.hero .eyebrow { color: #d9c48a; }
.hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    max-width: 820px;
}
.hero p { max-width: 640px; color: #c6cce0; font-size: 1.02rem; }
.hero .btn { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #1c1508; }
.btn-primary:hover { background: #c39a4a; color: #1c1508; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .76rem; }
.btn-danger { background: #8c2f2f; color: #fff; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head a { font-size: .82rem; font-weight: 600; }
.alt { background: var(--paper-alt); }

/* ---------- Article grid / cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 10px 24px rgba(22,35,63,.08); transform: translateY(-2px); }
.card .cat-tag {
    align-self: flex-start;
    background: var(--paper-alt);
    color: var(--navy);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
}
.card h3 { font-size: 1.08rem; margin: 0; }
.card h3 a { color: var(--navy); }
.card .meta { font-size: .78rem; color: var(--text-muted); }
.card p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

/* ---------- Article detail ---------- */
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.article-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.article-authors { font-size: .95rem; color: var(--navy); font-weight: 600; }
.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: 10px;
}
.article-body { font-family: var(--serif); font-size: 1.06rem; max-width: 780px; }
.article-body p { margin: 0 0 1.1em; }
.abstract-box {
    background: var(--paper-alt);
    border-left: 3px solid var(--gold);
    padding: 18px 22px;
    margin-bottom: 28px;
    font-size: .95rem;
    max-width: 780px;
}
.keywords { font-size: .82rem; color: var(--text-muted); margin-top: 24px; }
.keywords span {
    display: inline-block;
    background: var(--paper-alt);
    border-radius: 999px;
    padding: 3px 10px;
    margin: 3px 4px 0 0;
}

/* ---------- Sidebar / layout ---------- */
.layout-2col { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; }
.sidebar-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 22px;
}
.sidebar-box h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.sidebar-box li:last-child { border-bottom: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .92rem;
    font-family: var(--sans);
    background: #fff;
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .88rem; margin-bottom: 18px; }
.alert-success { background: #e5f3e6; color: #245a29; border: 1px solid #b9dcbb; }
.alert-error { background: #f8e6e6; color: #7a2222; border: 1px solid #eab8b8; }

/* ---------- Tables (admin) ---------- */
table.data-table { width: 100%; border-collapse: collapse; background: #fff; }
table.data-table th, table.data-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: .86rem;
}
table.data-table th { background: var(--paper-alt); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; color: var(--navy); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .82rem;
}
.pagination a:hover { background: var(--paper-alt); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c0d6; padding: 50px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--sans); }
.site-footer a { color: #b9c0d6; font-size: .85rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 32px;
    padding-top: 18px;
    font-size: .76rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .layout-2col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .navbar { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 14px 24px; display: none; }
    .navbar.open { display: flex; }
    .navbar ul { flex-direction: column; gap: 4px; }
    .search-mini { margin-top: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
}
