/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: #ece7ef;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  line-height: 1.55;
}

/* Page shell */
.page { max-width: 900px; width: 90%; margin: 0 auto; padding: 18px 20px; }

/* Header */
.header h1 {
  margin: 6px 0 12px;
  text-align: center;
  font-weight: 800;
}

/* Profile strip */
.profile { display: flex; align-items: flex-start; gap: 28px; margin: 28px 0 6px; }
.profile img {
  width: 160px; height: auto; border-radius: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
.details dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  column-gap: 14px; row-gap: 8px;
}
.details dt { font-weight: 700; }
.details dd { margin: 0; }
.details a { color: #0a4fb8; text-decoration: none; }
.details a:hover { text-decoration: underline; }

/* Soft divider between profile and tabs */
.divider { border: none; border-top: 1px solid #cfc9d7; margin: 28px 0 22px; }

/* Tabs */
/* Tabs */
.tab{
  display: flex;                 /* no floats -> clean edges */
  overflow: hidden;
  border: 1px solid #9fb0c3;
  background-color: #c5d9e8;
  margin: 10px 0 14px;
  border-radius: 6px;
}

.tab button{
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid #9fb0c3; /* separators */
  padding: 10px 14px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1.1;               /* avoids baseline gaps */
}

.tab button:last-child{ border-right: 0; }
.tab button:hover{ background-color: #94b4cb; }

/* Active (selected) tab — fill the bottom edge so it looks flush */
.tab button.active{
  background-color: #83a7c2;
  border-bottom: 2px solid #83a7c2; /* paint bottom edge */
  margin-bottom: -1px;              /* overlap container border */
  position: relative;
  z-index: 1;
}


/* Tab content cards */
.tabcontent {
  display: none;
  background: #f3f7fb;
  border: 1px solid #b8c3d3;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 17px;
}
#graph.tabcontent {
  background: transparent;
  border: none;
  padding: 0;
}
/* Section headings */
h2 { margin: 10px 0 8px; font-size: 22px; }
h2 span {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

h3 { margin: 14px 0 6px; }

/* Tables (if used elsewhere) */
th, td { font-size: 18px; }
th { width: 120px; text-align: left; }
td { width: auto; }
/* Reduce space between updates box and first tab content */
#updates {
  margin-bottom: 4px !important;  /* tighten gap below updates */
}

.tabcontent {
  margin-top: 4px !important;     /* tighten gap above About section */
}

/* Optional: also slightly reduce padding inside the updates box */
#updates > div {
  padding-bottom: 8px !important;
}
/* Utility */
.muted { color: #555; }
