/* ==========================================================================
   Translational qMRI Lab – single CSS (Elementor-free)
   Patched to match people.css look (esp. header)
   ========================================================================== */

/* ---- Theme tokens (match people.css) ---- */
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #4a4a4a;
  --heading: #222;
  --muted: #6f6f6f;
  --border: #e9e9e9;

  --accent: #13aff0;
  --maxw: 1140px;
  --pad: 20px;

  --font: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.05);
  --radius: 12px;

  /* keep site.css variable names for compatibility */
  --headings: var(--heading);
  --container-max: var(--maxw);
  --container-pad: var(--pad);
}

/* ---- Base reset-ish ---- */
*{ box-sizing: border-box; }
html{ font-size: 100%; overflow-x: hidden; }

body{
  margin: 0;
  font-family: var(--font);
  font-size: 14px;          /* people.css */
  line-height: 1.8;         /* people.css */
  color: var(--text);
  background:
    radial-gradient(900px 300px at 50% -120px, rgba(19,175,240,.18), transparent 70%),
    #fbfbfc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img{ max-width: 100%; height: auto; border: 0; vertical-align: middle; }
figure{ margin: 0; }

a{ color: #2e2e2e; text-decoration: none; transition: all .2s ease; }
a:hover{ color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* NOTE: people.css does NOT force underline in main; removed from site.css */

/* ---- Accessibility: skip link (match people.css behavior) ---- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

/* ---- Container (match people.css) ---- */
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- Headings (align closer to people.css) ---- */
h1,h2,h3,h4,h5,h6{
  margin: 0 0 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
}
h1{ font-size: 30px; }
h2{ font-size: 18px; }
h3{ font-size: 16px; }
h4{ font-size: 15px; }
h5{ font-size: 14px; }
h6{ font-size: 14px; }

p{ margin: 0 0 20px; }

/* ---- Page spacing (match people.css) ---- */
main{ padding: 46px 0 60px; }

/* Optional page header title block */
.page-header{ margin: 0 0 20px; }
.page-header-title,
.entry-title{ margin: 0 0 20px; }

/* ---- Header + brand + nav (MATCH people.css) ---- */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233,233,233,.9);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
}

/* Brand (no logo-row layout; match people.css) */
.brand{ line-height: 1.15; }
.brand .org{
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand .title{
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 4px;
}

/* If your HTML includes a logo, this prevents it from changing layout */
.brand-logo{ display: none; }

nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
nav a{
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .4px;
  color: #555;
  text-decoration: none;
}
nav a:hover{
  background: rgba(19,175,240,.10);
  text-decoration: none;
}
nav a[aria-current="page"]{
  color: #0b6f99;
  background: rgba(19,175,240,.16);
  font-weight: 700;
}

/* ---- Simple grid helpers (closer to people.css) ---- */
.grid{
  display: grid;
  gap: 18px;
}
@media (min-width: 820px){
  .grid.cols-2{ grid-template-columns: 1fr 1fr; }
}

/* ---- Card (match people.css) ---- */
.card{
  border: 1px solid rgba(233,233,233,.9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

/* ---- Research image grid (kept, but aligned) ---- */
.research-grid{
  display: grid;
  gap: 20px;
}
@media (min-width: 900px){
  .research-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px){
  .research-grid{ grid-template-columns: repeat(2, 1fr); }
}

.research-item{
  display: block;
  border: 1px solid rgba(233,233,233,.9);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.research-item img{
  display: block;
  width: 100%;
  height: auto;
}
.research-item .label{
  /* padding: 14px 14px 16px; */
  padding: 18px 18px 20px; /* bigger label area */
  font-weight: 700;
  font-size: 16px;
  color: var(--heading);
  line-height: 1.4;
  text-decoration: none;
  /* prevent wrapping for long labels like
     "Pulse sequence development" and "Deep learning reconstruction" */
  white-space: nowrap;
}

/* ---- Button (unchanged) ---- */
.btn{
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}
.btn:hover{
  background: #0f8dc2;
  color: #fff;
  text-decoration: none;
}

/* ---- Footer (match people.css) ---- */
footer{
  border-top: 1px solid rgba(233,233,233,.9);
  padding: 18px 0;
  color: var(--muted);
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}