/* ===========================================================
   Aman Kumar — portfolio
   Design language: Google Scholar profile page
   White ground, Arial-based type, blue links, hairline rules,
   citation-style stats table, tabbed "article list" content.
   =========================================================== */

:root {
  --bg: #ffffff;
  --text: #202124;
  --text-muted: #5f6368;
  --rule: #dadce0;
  --blue: #1a73e8;
  --blue-visited: #6b3fa0;
  --chip-bg: #e8f0fe;
  --chip-text: #1967d2;
  --green: #188038;
  --row-hover: #f8f9fa;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 40px;
}

/* ============ PROFILE HEADER ============ */
.profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}

.profile-photo {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

.profile-name {
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--text);
}

.profile-affil {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.profile-email {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.verified-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 14px;
}

/* ============ LAYOUT ============ */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

/* ============ SIDEBAR ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stats-table th,
.stats-table td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--rule);
}

.stats-table thead th {
  color: var(--blue);
  font-weight: 400;
  border-bottom: 1px solid var(--rule);
}

.stats-table td:last-child,
.stats-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.activity-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 64px;
  border-bottom: 1px solid var(--rule);
  padding: 0 4px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  height: 100%;
}

.bar {
  width: 100%;
  max-width: 26px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-text);
  border-bottom: none;
}

.bar-col span {
  display: none;
}

.activity-block { position: relative; }
.activity-block::after {
  content: "2024   2025   2026";
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.sidebar-block p {
  margin: 0 0 8px;
  font-size: 13px;
}

.edu-line strong { font-weight: 700; }
.edu-courses { color: var(--text-muted); }

/* ============ TABS ============ */
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}

.tab {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 2px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab:hover { color: var(--text); }

.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.sort-btn {
  background: none;
  border: none;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
}
.sort-btn:hover { text-decoration: underline; }

/* ============ ENTRY LIST ============ */
.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--rule);
}

.entry:hover { background: var(--row-hover); }

.entry-main { flex: 1; min-width: 0; }

.entry-title {
  font-size: 15px;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 2px;
}
.entry-title:visited { color: var(--blue-visited); }
span.entry-title { color: var(--text); }

.entry-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.entry-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text);
}
.entry-bullets li { margin-bottom: 4px; }

.entry-year {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
  padding-top: 2px;
}

/* ============ SKILLS TABLE ============ */
.skills-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13.5px;
}

.skills-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.skills-label {
  width: 200px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ============ RESUME ============ */
.resume-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 12px;
}

.resume-download {
  color: var(--blue);
}

.resume-frame {
  width: 100%;
  height: 780px;
  border: 1px solid var(--rule);
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .profile {
    flex-direction: column;
    align-items: flex-start;
  }
  .entry {
    flex-direction: column;
  }
  .entry-year {
    text-align: left;
  }
  .tabs {
    overflow-x: auto;
    gap: 18px;
  }
  .resume-frame {
    height: 500px;
  }
}

/* ============ REDUCED MOTION / FOCUS ============ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}