/* =========================================================
   SINDHU: Southasian INter-Disciplinary HUmanities
   Academic Journal — PKP OJS-inspired Theme
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #1c3557;   /* Deep lapis navy */
  --primary-mid:  #2a4a7f;   /* Medium navy for nav */
  --accent:       #b85c2a;   /* Terracotta — South Asian warmth */
  --accent-light: #f0e8e0;
  --bg:           #fafaf8;   /* Warm off-white */
  --surface:      #ffffff;
  --border:       #d4cfc4;
  --border-light: #eeebe4;
  --text:         #1a1a1a;
  --text-muted:   #666666;
  --link:         #2a4a7f;
  --footer-bg:    #f0ede4;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--link); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Container ─────────────────────────────────────────── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Site Header ────────────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--border);
  padding: 18px 0 16px;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.journal-title-link {
  text-decoration: none;
  display: block;
  line-height: 0;
}

.journal-logo {
  height: 72px;
  width: auto;
  display: block;
}

/* ── Main Navigation ────────────────────────────────────── */
.main-nav {
  background: var(--primary-mid);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-item { position: relative; }

.nav-item > a,
.nav-item > button {
  display: block;
  padding: 13px 17px;
  color: #fff;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-item > a:hover,
.nav-item > button:hover,
.nav-item > a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  min-width: 200px;
  border-top: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 200;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 10px 16px;
  color: #ccd9e8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}

.dropdown a:hover { background: rgba(255,255,255,0.12); color: #fff; }

.nav-search-btn {
  background: none;
  border: none;
  color: #ccd9e8;
  font-size: 0.875rem;
  font-family: Arial, sans-serif;
  padding: 13px 17px;
  cursor: pointer;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 0 0;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--link);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb .sep { margin: 0 5px; color: #aaa; }

/* ── Main Content ───────────────────────────────────────── */
main { padding: 28px 0 56px; }

/* ── Page Title ─────────────────────────────────────────── */
.page-title {
  font-size: 1.75rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: 28px;
  line-height: 1.3;
}

/* ── Home Layout ────────────────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 720px) {
  .home-grid { grid-template-columns: 1fr; gap: 32px; }
}

.section-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── Issue Header ───────────────────────────────────────── */
.issue-banner {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.issue-banner .issue-vol {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.issue-banner h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.issue-banner .issue-date {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 8px;
}

.issue-banner p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
}

.issue-banner ul {
  margin: 6px 0 0 18px;
  font-size: 0.85rem;
  color: #555;
}

.issue-banner ul li { margin-bottom: 2px; }

/* ── Article Sections in Issue ──────────────────────────── */
.toc-section-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

.toc-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.toc-item:last-child { border-bottom: none; }

.toc-item .toc-title {
  font-size: 0.975rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.35;
}

.toc-item .toc-title:hover { color: var(--link); }

.toc-item .toc-subtitle {
  font-style: italic;
  color: #555;
  font-size: 0.88rem;
  display: block;
  margin-top: 1px;
}

.toc-item .toc-author {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.toc-item .toc-links {
  margin-top: 5px;
}

.badge {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
  margin-right: 4px;
  transition: background 0.15s;
}

.badge-html {
  background: #e0e8f5;
  color: var(--link);
  border: 1px solid #c0d0e8;
}

.badge-html:hover { background: var(--link); color: #fff; }

.badge-oa {
  background: #2a7a44;
  color: #fff;
}

/* ── Archive Items ──────────────────────────────────────── */
.archive-item {
  border: 1px solid var(--border);
  margin-bottom: 22px;
  overflow: hidden;
}

.archive-header {
  background: var(--primary);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.archive-header h2 { font-size: 1.05rem; }

.archive-header h2 a {
  color: #fff;
  text-decoration: none;
}

.archive-header h2 a:hover { text-decoration: underline; color: #f0c080; }

.archive-header .arch-meta {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: #9ab3cc;
  white-space: nowrap;
}

.archive-body {
  padding: 14px 18px;
  background: #fff;
  font-size: 0.88rem;
  color: #555;
}

.archive-body ul {
  margin: 8px 0 0 16px;
  line-height: 1.6;
}

/* ── Article Page ───────────────────────────────────────── */
.article-wrap { max-width: 800px; }

.article-section-tag {
  font-family: Arial, sans-serif;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.65rem;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.article-subtitle {
  font-size: 1.05rem;
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.4;
}

.article-authors {
  font-size: 0.92rem;
  font-family: Arial, sans-serif;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.article-authors strong { color: var(--text); }

.article-affiliation {
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
  color: #888;
  margin-bottom: 16px;
  font-style: italic;
}

/* Keywords */
.keywords-row {
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.keywords-label {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.keyword-tag {
  background: #e8eef6;
  color: var(--link);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 12px;
  text-decoration: none;
}

/* Abstract box */
.abstract-box {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-mid);
  padding: 20px 22px;
  margin: 22px 0;
}

.abstract-box h2 {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.abstract-box p {
  font-size: 0.94rem;
  text-align: justify;
  color: #333;
}

/* Author bio */
.bio-box {
  background: #f9f8f5;
  border-left: 3px solid var(--primary-mid);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.88rem;
}

.bio-box h3 {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.bio-box .bio-name {
  font-weight: bold;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
  font-family: Arial, sans-serif;
}

.bio-box p { color: #444; }

/* References */
.references-box { margin: 24px 0; }

.references-box h2,
.references-box h3 {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.references-box ul,
.references-box ol { list-style: none; padding-left: 0; }

.references-box li {
  font-size: 0.82rem;
  color: #444;
  margin-bottom: 8px;
  padding-left: 2em;
  text-indent: -2em;
  line-height: 1.55;
}

/* Cite box */
.cite-box {
  background: var(--footer-bg);
  border: 1px solid var(--border);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
}

.cite-box h3 {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cite-box p { color: #444; line-height: 1.6; }

/* Article sidebar meta */
.article-meta-panel {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #555;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}

.article-meta-panel .meta-item {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.article-meta-panel .meta-item:last-child { margin-bottom: 0; }

.article-meta-panel .meta-key {
  font-weight: bold;
  color: #444;
  min-width: 80px;
  flex-shrink: 0;
}

/* ── About Page ─────────────────────────────────────────── */
.about-content h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 28px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.about-content p { margin-bottom: 14px; font-size: 0.95rem; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
  background: #fff;
  border: 1px solid var(--border);
}

.info-table tr:nth-child(even) { background: #f8f6f2; }

.info-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.info-table td:first-child {
  font-weight: bold;
  color: #444;
  width: 190px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f5f2ed;
}

/* ── Editorial Team ─────────────────────────────────────── */
.editors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 600px) {
  .editors-grid { grid-template-columns: 1fr; }
}

.editor-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
}

.editor-card .editor-role {
  font-family: Arial, sans-serif;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.editor-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.editor-card .editor-affil {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.editor-card p { font-size: 0.88rem; color: #444; }

.board-list { list-style: none; }

.board-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: #444;
}

.board-list li strong { color: var(--primary); }

/* ── Review Process / Submissions ───────────────────────── */
.content-prose h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 10px;
}

.content-prose p { font-size: 0.95rem; margin-bottom: 12px; }

.content-prose ul, .content-prose ol {
  margin-left: 24px;
  margin-bottom: 14px;
}

.content-prose li { font-size: 0.9rem; margin-bottom: 5px; }

.content-prose strong { color: #333; }

/* Checklist */
.checklist { list-style: none; }

.checklist li {
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  position: relative;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2a7a44;
  font-weight: bold;
}

/* ── View All / CTA links ───────────────────────────────── */
.view-all-link {
  display: inline-block;
  margin-top: 14px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.view-all-link:hover {
  border-bottom-color: var(--link);
  color: var(--link);
}

.view-all-link::after { content: " →"; }

/* ── Announce banner ────────────────────────────────────── */
.archive-notice {
  background: #e8f0f8;
  border: 1px solid #b8ccdf;
  border-left: 4px solid var(--primary-mid);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: #345;
}

/* ── Site Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  border-top: 2px solid var(--border);
  padding: 28px 0;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-about h3 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.footer-about p {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: #666;
  max-width: 500px;
  line-height: 1.6;
}

.footer-brand {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  color: #999;
  text-align: right;
}

.footer-cc {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  color: #777;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .journal-logo { height: 52px; }
  .page-title { font-size: 1.4rem; }
  .article-title { font-size: 1.35rem; }
  .info-table td:first-child { width: auto; }
  .archive-header { flex-direction: column; gap: 4px; }
  .footer-inner { flex-direction: column; }
  .footer-brand { text-align: left; }
}

@media print {
  .main-nav, .site-footer .footer-brand { display: none; }
  body { font-size: 12pt; }
}

/* Full article body text */
.article-full-text {
  margin: 32px 0 24px;
  border-top: 2px solid var(--border);
  padding-top: 24px;
}

.article-full-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.2em;
}

.article-full-text h2 {
  font-size: 1.15rem;
  font-family: Georgia, serif;
  font-weight: bold;
  color: var(--primary);
  margin: 2em 0 0.8em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.article-full-text blockquote {
  margin: 1.5em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: #f7f4f0;
  font-style: italic;
  color: #444;
}

.article-full-text blockquote p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Interview Q&A formatting */
.interview-q {
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.4em;
  margin-bottom: 0.3em;
}
.interview-a {
  margin-top: 0;
  margin-bottom: 1em;
  padding-left: 1em;
  border-left: 2px solid var(--border);
}

/* View Issue button on Archives page */
.view-issue-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.view-issue-btn:hover {
  background: var(--accent);
  color: #fff;
}
