/* ---------- Base layout ---------- */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f6f7fb;              /* soft grey background */
  color: #111827;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem 2.5rem;
  background: #ffffff;              /* white content card */
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-radius: 12px;
}

/* ---------- Header / nav ---------- */

.site-title-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
}

/* Site title */
.site-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #13294B;                   /* UIUC blue */
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-title:hover {
  color: #E84A27; 
  text-decoration: none;
}

/* Nav links */
.site-nav a {
  margin-left: 1rem;
  color: #707372;                   /* neutral grey */
  text-decoration: none;
  font-weight: 500;
  font-size: 1.00rem;
}

.site-nav a:hover {
  color: #E84A27;                   /* UIUC orange on hover */
  font-weight: 500;
  text-decoration: none;            /* no underline on nav hover */
}

/* ---------- Main content ---------- */

.page-content {
  margin-top: 1.5rem;
  line-height: 1.6;
  font-size: 0.96rem;
}

.page-content p {
  margin: 0 0 0.8rem;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #13294B;                   /* UIUC blue */
  font-weight: 700;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  font-weight: 700;
  color: #707372;
}

/* ---------- News section ---------- */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.news-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.news-date {
  font-weight: 700;
  color: #E84A27;                   /* UIUC orange date */
  margin-bottom: 4px;
  font-size: 1.00rem;
}

.news-text {
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ---------- Links ---------- */

/* Base style for all links (no underline by default) */
a {
  color: #707372;                   /* Strom grey */
  text-decoration: none;
}

/* Links inside main content area */
.page-content a {
  color: #707372;
  text-decoration: underline;
}

/* Underline + orange hover ONLY in content */
.page-content a:hover {
  color: #E84A27;                   /* UIUC orange on hover */
  text-decoration: underline;
}

.baseline-block {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.baseline-note {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* UIUC Colors: #FF5F05 (Orange), #13294B (Blue), #707372 (Storm Grey), #9C9A9D (Industrial Silver), #C8C6C7 (Cloudy Day) */

.baseline-table {
    border-collapse: collapse; 
    width: 100%; 
    margin: 25px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(19, 41, 75, 0.1);
    border-radius: 6px;
    overflow: hidden;
    table-layout: fixed;
}

.baseline-table th, 
.baseline-table td {
    border: 1px solid #C8C6C7;
    padding: 0.6rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* 1. First Column (Model ID) - Fixed Width */
.baseline-table thead tr:first-child th:first-child {
    width: 260px;
    text-align: left; 
    padding-left: 14px;
    font-weight: 700;
}
.baseline-table tbody td:first-child {
    width: 260px;
    text-align: left; 
    padding-left: 14px;
    font-weight: 600;
    background-color: white;
}

/* 2. Equal Width for ALL Metric Columns (8 data columns) */
.baseline-table th:not(:first-child),
.baseline-table td:not(:first-child) {
    width: calc((100% - 260px) / 8);
    min-width: 65px;
    white-space: nowrap;
}

/* All header cells - base style */
.baseline-table thead th {
    color: white;
    font-weight: 600;
    font-size: 0.9em;
}

/* Row 1 headers (Model ID, CER ↓, WER ↓) - darkest blue */
.baseline-table thead tr:first-child th {
    background-color: #13294B;
    font-size: 1.05em;
    font-weight: 700;
}

/* Row 2 headers (Dev, Test1) - medium blue */
.baseline-table thead tr:nth-child(2) th {
    background-color: #1e3d5f;
    font-size: 0.95em;
}

/* Row 3 headers (All, Shared, Unshared) - lighter blue */
.baseline-table thead tr:nth-child(3) th {
    background-color: #2a5075;
    font-size: 0.85em;
    font-weight: 500;
}

/* Cells with rowspan need explicit background based on their starting row */
/* Test1 cells start in row 2, so match row 2 color */
.baseline-table thead th[rowspan] {
    background-color: #1e3d5f;
}

/* Model ID spans all 3 rows, keep darkest */
.baseline-table thead tr:first-child th[rowspan] {
    background-color: #13294B;
}

/* First column header (Model ID) - left aligned */
.baseline-table thead tr:first-child th:first-child {
    text-align: left;
}

/* Body cells - clean white background */
.baseline-table tbody td {
    background-color: white;
}

/* Hover effect using UIUC orange tint */
.baseline-table tbody tr:hover td {
    background-color: rgba(255, 95, 5, 0.08) !important;
    transition: background-color 0.15s ease;
}

/* Style for code links in the first column (Model IDs) - italic only for model names */
.baseline-table tbody td:first-child code {
    background: transparent;
    padding: 0;
    font-size: 0.85em;
    font-family: inherit;
    font-style: italic;
}
.baseline-table tbody td:first-child code a {
    color: #13294B;
    text-decoration: none;
    font-weight: 500;
    font-style: italic;
}

/* Ensure other cells are NOT italic */
.baseline-table tbody td:not(:first-child) {
    font-style: normal;
}
.baseline-table td code a:hover {
    color: #FF5F05;
    text-decoration: underline;
}

/* Bottom row rounded corners */
.baseline-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}
.baseline-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

/* Note style */ 