/* Mahesh Dhole — academic website stylesheet */
:root {
  --ink: #1a1a1a;
  --muted: #555;
  --accent: #7a0019;      /* deep maroon */
  --accent-soft: #a33;
  --rule: #ddd;
  --bg: #ffffff;
  --bg-alt: #f7f6f4;
}

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

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Header / nav ---------- */
header {
  border-bottom: 3px solid var(--accent);
  background: var(--bg);
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 20px 0 20px;
}
.site-name {
  font-size: 1.9rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.site-sub {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 2px;
}
nav {
  margin-top: 14px;
}
nav a {
  display: inline-block;
  padding: 9px 16px 11px 16px;
  color: var(--ink);
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
nav a:hover { color: var(--accent); }
nav a.active {
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  margin-bottom: -3px;
  font-weight: bold;
}

/* ---------- Layout ---------- */
main {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 20px 60px 20px;
  flex: 1;
}

h1 { font-size: 1.6rem; margin-bottom: 18px; }
h2 {
  font-size: 1.25rem;
  color: var(--accent);
  margin: 30px 0 12px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
h3 { font-size: 1.05rem; margin: 18px 0 6px 0; }

p { margin-bottom: 14px; }
a { color: var(--accent); }
a:hover { color: var(--accent-soft); }

.paper {
  margin-bottom: 26px;
}
.paper-title {
  font-weight: bold;
  font-size: 1.05rem;
}
.paper-coauthors {
  color: var(--muted);
  font-style: italic;
}
.paper-status {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
  padding: 1px 8px 2px 8px;
  margin: 4px 0;
}
details {
  margin-top: 6px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
}
details summary {
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}
details p { margin: 10px 0 2px 0; font-size: 0.95rem; }

/* ---------- Home page ---------- */
.intro {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.intro-photo {
  width: 280px;
  flex-shrink: 0;
}
.intro-photo img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--rule);
}
.photo-placeholder {
  width: 280px;
  height: 260px;
  background: var(--bg-alt);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}
.intro-text { flex: 1; min-width: 280px; }

.notice {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  margin: 18px 0;
  font-size: 0.98rem;
}

/* ---------- Teaching / CV lists ---------- */
.course-list { list-style: none; }
.course-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
}
.course-list .term {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.95rem;
}
.note { color: var(--muted); font-size: 0.92rem; }

.btn {
  display: inline-block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 4px;
  margin: 6px 8px 6px 0;
}
.btn:hover { background: var(--accent-soft); }

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 18px 10px 26px 10px;
}
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .intro { flex-direction: column; align-items: center; }
  nav a { padding: 8px 10px; font-size: 0.85rem; }
  .course-list li { flex-direction: column; gap: 0; }
}
