/* ==========================================================================
   Plain, compact academic theme for YOUR existing layout (no text or markup
   changes). Arial text, blue links, peach join note, dark-red headings, bold-date
   news list, slim UTD-green header, tight spacing. Loads AFTER site.css.
   To go back to the previous look, delete this file and its <link> line in
   _includes/site-head.html.
   ========================================================================== */

/* ---------- Title fonts (self-hosted, 6-25 KB each; only the one in use is downloaded) ---------- */
@font-face { font-family: "Baskerville Web"; src: url("../fonts/gfs-baskerville.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora Web"; src: url("../fonts/lora-bold-italic.woff") format("woff"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Caladea Web"; src: url("../fonts/caladea-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display Web"; src: url("../fonts/inter-display-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --paper-2: #faf1e6;
  --ink: #111111;
  --ink-2: #1a1a1a;
  --muted: #6b6b78;
  --rule: #e6e0d8;
  --rule-strong: #d3cabd;
  --orange: #c05800;
  --orange-text: #b34f00;
  --green: #b34f00;
  --peach: #fbeee0;
  --news-red: #b80000;
  --hire-bg: #fcdcdc;      /* background of the "Join our lab" card (a light red) */
  --hire-edge: #b80000;    /* its solid red left edge */
  --menu-align: center;   /* the menu: "center" puts it in the middle, "space-between" spreads it across the width */
  --sub-green: #154734;    /* UTD green: the line under the lab name on the homepage */
  --link: #1f1fcf;
  --sans: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --serif: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  /* --green-deep is left alone: the header stays your UTD green */

  /* The title fonts */
  --font-1: "Baskerville Web", "Baskerville", Georgia, serif;          --track-1: -0.005em; --weight-1: 400; --fstyle-1: normal;   /* 1: elegant, refined serif */
  --font-2: "Lora Web", Lora, Georgia, serif;                          --track-2: -0.01em;  --weight-2: 700; --fstyle-2: italic;   /* 2: graceful bold italic */
  --font-3: "Caladea Web", Cambria, Georgia, serif;                    --track-3: -0.005em; --weight-3: 700; --fstyle-3: normal;   /* 3: warm, confident serif */
  --font-4: "Inter Display Web", Inter, "Helvetica Neue", Arial, sans-serif; --track-4: -0.04em; --weight-4: 500; --fstyle-4: normal;   /* 4: sharp sans (the previous look) */

  /* Where the title changes colour in the two-tone name style (the gap before "Lab"), per font */
  --split-1: 70.1%; --split-2: 69.8%; --split-3: 68.3%; --split-4: 69.4%;

  /* TITLE FONT: to change it, change the number (1, 2, 3 or 4) in ALL FIVE of the next lines */
  --title-font: var(--font-3);
  --title-tracking: var(--track-3);
  --title-weight: var(--weight-3);
  --title-fstyle: var(--fstyle-3);
  --title-split: var(--split-3);

  /* The four NAME STYLES for "AS²ERT Lab" */
  --fill-1: linear-gradient(100deg, #e87500 0%, #c05800 55%, #8f3f00 100%);                                                /* 1: rich orange gradient */
  --fx-1: drop-shadow(0 2px 3px rgba(110, 55, 0, 0.25));
  --fill-2: linear-gradient(90deg, #c05800 0, #c05800 var(--title-split), #154734 var(--title-split), #154734 100%);      /* 2: two-tone, UTD orange + green */
  --fx-2: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
  --fill-3: linear-gradient(180deg, #f5a623 0%, #d4690a 48%, #a24a00 100%);                                               /* 3: glossy vertical orange gradient */
  --fx-3: drop-shadow(0 2px 2px rgba(110, 55, 0, 0.28));
  --fill-4: #c05800;                                                                                                        /* 4: flat orange, identical to every other page title */
  --fx-4: none;
  --tf-1: transparent;  --tf-2: transparent;  --tf-3: transparent;  --tf-4: #c05800;   /* the text colour that goes with each style (transparent lets a gradient show through) */

  /* NAME STYLE: to change it, change the number (1, 2, 3 or 4) in ALL THREE of the next lines */
  --title-fill: var(--fill-4);
  --title-fx: var(--fx-4);
  --title-tf: var(--tf-4);
}

body { background: #fff; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; color: var(--ink); letter-spacing: 0; }
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: auto; text-underline-offset: 2px; text-decoration-color: currentColor; }
a:hover { color: #0b0b8f; text-decoration-color: currentColor; text-decoration-thickness: auto; }
a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
strong { font-weight: 700; }
.wrap { max-width: 980px; }

/* ---------- Header: slim green bar and logo, pill-style menu ---------- */
.site-header .wrap.bar { max-width: 980px; padding-top: 6px; padding-bottom: 6px; }
.site-header .site-nav a { padding: 6px 12px; font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #fff; border: 0; border-radius: 8px; text-decoration: none; }
.site-header .site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.2); border: 0; }
.site-header .site-nav a[aria-current="page"] { background: #fff; color: var(--green-deep); font-weight: 700; }
.site-header .nav-toggle { border-radius: 8px; text-transform: none; letter-spacing: 0; }
@media (min-width: 881px) { .site-header .site-nav ul { gap: 6px; } }
@media (max-width: 880px) {
  .site-header .site-nav ul { gap: 4px; }
  .site-header .site-nav li { border: 0; }
  .site-header .site-nav a { display: block; padding: 9px 12px; letter-spacing: 0; text-transform: none; }
  .site-header .site-nav a[aria-current="page"] { color: var(--green-deep); }
}

/* ---------- Home: your layout (title block left, join card + news right), tightened ---------- */
.home-top2 { padding: 22px 0 6px; }
.home-top2 .home-grid { display: block; }
.home-col, .home-side, .home-research-head { max-width: none; }   /* one column using the full width, same left edge as the logo and footer */
.home-side { margin-top: 4px; }

.home-top2 .hero-title { display: inline-block; margin: 0 0 2px; font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-fstyle); letter-spacing: var(--title-tracking); line-height: 1.1; font-size: clamp(2.2rem, 4.6vw, 3.2rem); color: var(--orange); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .home-top2 .hero-title { background: var(--title-fill); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: var(--title-tf); color: var(--title-tf); filter: var(--title-fx); }
}
.home-top2 .hero-sub { margin: 0 0 18px; font-style: normal; font-weight: 400; font-size: 1.0625rem; line-height: 1.35; color: var(--sub-green); }
.home-top2 .hero-sub strong { font-weight: 700; color: inherit; }
/* contact lines: a tidy two-by-two card instead of four loose grey lines */
.home-top2 .home-contact { display: block; max-width: none; margin: 4px 0 16px; padding: 9px 14px; font-style: normal; font-size: 0.875rem; line-height: 1.75; color: #4a4a55; background: #f6f3ee; border: 1px solid #ebe5da; border-radius: 8px; columns: 2; column-gap: 14px; }
.home-top2 .home-contact::first-line { font-weight: 600; color: var(--ink); }
.home-top2 .home-contact a { font-weight: 600; }
.home-top2 .home-contact strong { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
@media (max-width: 600px) { .home-top2 .home-contact { columns: 1; } }
.home-bio .home-message { margin: 0 0 0.7em; max-width: none; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.home-bio .home-message strong { font-weight: 700; color: var(--ink); }
.home-bio .home-explore { margin: 8px 0 0; max-width: none; font-size: 1rem; font-weight: 400; line-height: 1.55; }
.home-bio .home-explore a, .home-explore a { font-weight: 400; text-decoration-thickness: auto; text-underline-offset: 2px; }

/* join card becomes the peach note box */
.home-side .hire-card, .hire-card { margin: 16px 0 22px; padding: 9px 14px; background: var(--hire-bg); border: 0; border-left: 3px solid var(--hire-edge); border-radius: 0 6px 6px 0; color: var(--ink); }
.hire-card p { margin: 0 0 3px; color: var(--ink); font-size: 0.975rem; line-height: 1.5; }
.hire-card p:last-child { margin-bottom: 0; }
.hire-card .hire-card-title { margin-bottom: 2px; font-size: 0.975rem; font-weight: 700; color: var(--ink); }
.hire-card a.hire-cta, .hire-card a.hire-cta:visited { color: #a30000; font-weight: 400; text-decoration-color: currentColor; text-decoration-thickness: auto; text-underline-offset: 2px; }
.hire-card a.hire-cta:hover { color: #6e0000; }
.hire-card a.hire-cta:focus-visible { outline: 2px solid #a30000; outline-offset: 3px; border-radius: 2px; }

/* Recent News: plain bullet list, bold dates */
.home-side .home-recent, .home-recent { position: static; border-top: 0; padding-top: 0; }
.home-recent h2 { margin: 0 0 6px; font-size: 1.375rem; line-height: 1.2; color: var(--news-red); }
.home-recent ul { list-style: disc; margin: 0; padding-left: 1.2em; }
.home-recent li { margin: 0 0 4px; padding: 0; font-size: 0.975rem; line-height: 1.4; color: var(--ink); }
.home-recent li strong { display: inline; margin: 0; font-family: var(--sans); font-size: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.home-recent .home-more { margin: 6px 0 0; font-size: 0.975rem; }

/* ---------- Research: two compact columns ---------- */
.home-research { padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.home-research-head { align-items: baseline; margin-bottom: 2px; }
.home-research-head h2, .home-block h2 { margin: 0; font-size: 1.375rem; color: var(--news-red); }
.home-research-head a { font-size: 0.9375rem; }
.rcard, .rcard-nofig { display: grid; grid-template-columns: 56px minmax(240px, 46%) minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); }
.rcard > div { display: contents; }
.rcard img { grid-column: 1; width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.rcard h3 { grid-column: 2; margin: 0; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--ink); }
.rcard .tags { grid-column: 3; margin: 0; gap: 6px; }
@media (max-width: 640px) {
  .rcard, .rcard-nofig { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 14px; }
  .rcard-nofig h3 { grid-column: 1 / -1; }
  .rcard .tags { grid-column: 1 / -1; }
}
.tag { padding: 2px 7px; font-size: 0.6875rem; border-radius: 4px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.tag:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- Buttons and inner pages ---------- */
.btn { border-radius: 4px; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover { background: #8f3f00; border-color: #8f3f00; }
.eyebrow { color: var(--orange-text); }
.page-head { padding: 26px 0 14px; }
.page-head h1 { margin-top: 6px; font-size: clamp(1.7rem, 3.4vw, 2.25rem); line-height: 1.1; font-weight: 700; letter-spacing: 0; }
.page-lede { margin-top: 8px; font-size: 1.0625rem; }

/* ---------- Footer: light, compact, same content ---------- */
.site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--rule); margin-top: 10px; }
.site-footer a { color: var(--link); }
.footer-grid { padding-top: 20px; padding-bottom: 10px; gap: 20px 36px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr; } }
.footer-about p.footer-name { margin: 0 0 2px; color: var(--ink); font-weight: 700; font-size: 1.0625rem; }
.footer-about p { margin: 0 0 4px; font-size: 0.875rem; color: var(--muted); }
.footer-grid h2 { margin: 0 0 6px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }
.footer-grid ul { font-family: var(--sans); font-size: 0.875rem; }
.footer-grid li { padding: 2px 0; }
.footer-base { padding-top: 10px; padding-bottom: 16px; color: var(--muted); border-top: 1px solid var(--rule); font-size: 0.8125rem; }

/* ==========================================================================
   Space between sections (about 36-40 px between blocks, items inside stay tight)
   ========================================================================== */
.home-top2 { padding: 28px 0 calc(var(--section-gap) / 2); }
.home-bio .home-explore { margin-top: 8px; }
.home-side { margin-top: 0; }
.home-side .hire-card, .hire-card { margin: 16px 0 var(--section-gap); padding: 12px 16px; }
.home-recent h2 { margin-bottom: 6px; }
.home-recent li { margin-bottom: 4px; }
.home-recent .home-more { margin-top: 6px; }
.home-research { padding: calc(var(--section-gap) / 2) 0 32px; }
.home-research-head { margin-bottom: 8px; }
.site-footer { margin-top: 12px; }
.footer-grid { padding-top: 32px; padding-bottom: 14px; }

/* ==========================================================================
   Footer color: UTD green, matching the header
   ========================================================================== */
.site-footer { margin-top: 0; background: var(--green-deep); color: #cfe0d6; border-top: 4px solid var(--orange); }
.site-footer a { color: #ffffff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.site-footer a:hover { color: #ffffff; text-decoration-color: #f3b27a; }
.footer-about p.footer-name { color: #ffffff; }
.footer-about p { color: #cfe0d6; }
.footer-grid h2 { color: #f3b27a; }
.footer-base { color: #9dbfae; border-top: 1px solid rgba(255, 255, 255, 0.16); }

/* ==========================================================================
   Bigger menu text
   ========================================================================== */
.site-header .site-nav a { font-size: 1.1875rem; padding: 8px 16px; font-weight: 500; }
@media (min-width: 881px) { .site-header .site-nav ul { gap: 8px; } }
@media (min-width: 881px) and (max-width: 1040px) { .site-header .site-nav a { font-size: 1.125rem; padding: 8px 13px; } }
@media (max-width: 880px) { .site-header .site-nav a { font-size: 1.1875rem; padding: 12px 14px; } }

/* ==========================================================================
   Icon row under the lab name (profiles and contact, same list as the footer)
   ========================================================================== */
.home-icons { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 2px 0 18px; padding: 0; }
.home-icons li { margin: 0; padding: 0; }
.home-icons a { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M10.6%2013.4a1%201%200%200%201%200-1.4l3-3a3%203%200%201%201%204.2%204.2l-1.5%201.5-1.4-1.4%201.5-1.5a1%201%200%200%200-1.4-1.4l-3%203a1%201%200%200%201-1.4%200zm2.8-2.8a1%201%200%200%201%200%201.4l-3%203a3%203%200%201%201-4.2-4.2l1.5-1.5%201.4%201.4-1.5%201.5a1%201%200%200%200%201.4%201.4l3-3a1%201%200%200%201%201.4%200z%22/%3E%3C/svg%3E"); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-deep); text-decoration: none; transition: background 0.15s, transform 0.15s; }
.home-icons a::before { content: ""; width: 20px; height: 20px; background: #ffffff; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.home-icons a:hover { background: var(--orange); transform: translateY(-2px); }
.home-icons a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.home-icons a[data-label="Email"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M2%205.5A1.5%201.5%200%200%201%203.5%204h17A1.5%201.5%200%200%201%2022%205.5v13a1.5%201.5%200%200%201-1.5%201.5h-17A1.5%201.5%200%200%201%202%2018.5v-13zm2.2.5L12%2012.2%2019.8%206H4.2zM20%207.7l-8%206.3-8-6.3V18h16V7.7z%22/%3E%3C/svg%3E"); }
.home-icons a[data-label="Google Scholar"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%203%201%209l11%206%209-4.9V17h2V9L12%203zM5%2013.2V17c0%201.7%203.1%203%207%203s7-1.3%207-3v-3.8l-7%203.8-7-3.8z%22/%3E%3C/svg%3E"); }
.home-icons a[data-label="LinkedIn"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M20.4%202H3.6C2.7%202%202%202.7%202%203.6v16.8c0%20.9.7%201.6%201.6%201.6h16.8c.9%200%201.6-.7%201.6-1.6V3.6c0-.9-.7-1.6-1.6-1.6zM8%2019H5V9.8h3V19zM6.5%208.5a1.7%201.7%200%201%201%200-3.4%201.7%201.7%200%200%201%200%203.4zM19%2019h-3v-4.5c0-1.1%200-2.5-1.5-2.5s-1.8%201.2-1.8%202.4V19h-3V9.8h2.9v1.3c.4-.8%201.4-1.5%202.8-1.5%203%200%203.6%202%203.6%204.5V19z%22/%3E%3C/svg%3E"); }
.home-icons a[data-label="YouTube"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21.6%207.2a2.5%202.5%200%200%200-1.8-1.8C18.3%205%2012%205%2012%205s-6.3%200-7.8.4A2.5%202.5%200%200%200%202.4%207.2C2%208.7%202%2012%202%2012s0%203.3.4%204.8a2.5%202.5%200%200%200%201.8%201.8C5.7%2019%2012%2019%2012%2019s6.3%200%207.8-.4a2.5%202.5%200%200%200%201.8-1.8C22%2015.3%2022%2012%2022%2012s0-3.3-.4-4.8zM10%2015V9l5.2%203L10%2015z%22/%3E%3C/svg%3E"); }
.home-icons a[data-label="GitHub"] { --icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202a10%2010%200%200%200-3.16%2019.49c.5.09.68-.22.68-.48v-1.7c-2.78.6-3.37-1.34-3.37-1.34-.45-1.15-1.11-1.46-1.11-1.46-.91-.62.07-.6.07-.6%201%20.07%201.53%201.03%201.53%201.03.89%201.52%202.34%201.08%202.91.83.09-.65.35-1.08.63-1.33-2.22-.25-4.55-1.11-4.55-4.94%200-1.09.39-1.98%201.03-2.68-.1-.25-.45-1.27.1-2.64%200%200%20.84-.27%202.75%201.02a9.5%209.5%200%200%201%205%200c1.91-1.29%202.75-1.02%202.75-1.02.55%201.37.2%202.39.1%202.64.64.7%201.03%201.59%201.03%202.68%200%203.84-2.34%204.69-4.57%204.94.36.31.68.92.68%201.85v2.74c0%20.27.18.58.69.48A10%2010%200%200%200%2012%202z%22/%3E%3C/svg%3E"); }

/* ==========================================================================
   Footer: copyright line only
   ========================================================================== */
.site-footer .footer-base { border-top: 0; padding-top: 18px; padding-bottom: 18px; }

/* ==========================================================================
   Research on the homepage: three categories side by side (stacked on narrow screens)
   ========================================================================== */
.rgroups { max-width: none; display: grid; grid-template-columns: 1fr; gap: 14px; }
.rgroup { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--orange); border-radius: 10px; }
.rgroup-fig { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.rgroup h3 { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.rgroup .tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.rgroup .tag { padding: 5px 12px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; border-radius: 999px; background: #f7f3ec; border: 1px solid #e3dccf; color: var(--ink); text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.rgroup a.tag:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-1px); }
.rgroup .tag-ongoing { background: #fff; border-style: dashed; border-color: #cdbfa8; }
@media (min-width: 900px) {
  .rgroups { grid-template-columns: 1.55fr 1fr 1fr; gap: 20px; align-items: stretch; }
  .rgroup { display: block; padding: 22px 22px 24px; }
  .rgroup-fig { display: block; width: 112px; height: 112px; margin: 0 0 16px; }
  .rgroup h3 { margin-bottom: 12px; font-size: 1.5rem; }
}

/* ==========================================================================
   Other pages: the same fonts, colours and sizes as the homepage.
   Font and colour rules only. Every page keeps its own layout.

   Sizes used everywhere (the homepage's scale):
     52px page title      24px card titles    22px section headings   17px subtitles
     16px paragraphs      15.6px lists and secondary text             14px small details
     13px chips           12px small labels
   ========================================================================== */

/* page titles: same font and colour as the lab name */
.page-head h1, .pi-intro h1 { font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-fstyle); letter-spacing: var(--title-tracking); font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.1; color: var(--orange); }
.page-lede { font-size: 1.0625rem; color: #444; }

/* section headings: same red and size as "Recent News" and "Research" */
.year-label, .group > h2, .join-col h2, .areas .area-text h3 { font-family: var(--sans); font-size: 1.375rem; font-weight: 700; letter-spacing: 0; color: var(--news-red); }
.person-feature h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: 0; color: var(--ink); }

/* lists and secondary text: 15.6px */
.news-item .news-text, .cv li, .plain li, .join-ride li { font-size: 0.975rem; }
.pi-aside .aside-title { font-size: 0.975rem; }
/* paragraphs: 16px */
.pi-intro p, .join-col p { font-size: 1rem; }
/* subtitles: 17px */
.pi-intro .role { font-size: 1.0625rem; }
.cv-section h4, .pi-main h4 { font-size: 1.0625rem; }
/* small details: 14px */
figcaption { font-size: 0.875rem; }
/* chips: 13px */
.areas .tag { font-size: 0.8125rem; }
/* small labels: 12px */
.news-date, .join-ride span, .aside-block h2, .field label, .contact-info dt { font-size: 0.75rem; }
/* buttons and one homepage link on the same scale */
.btn { font-size: 0.975rem; }
.home-research-head a { font-size: 0.975rem; }

/* ==========================================================================
   Spacing like the homepage: content starts higher, a clear gap between
   sections, tight rows inside them. Spacing only: no columns or structure change.
   Change these three numbers to loosen or tighten every page at once.
   ========================================================================== */
:root { --content-top: 20px; --section-gap: 48px; --row-pad: 5px; }

/* content starts higher, right under the page title */
.page-body, .join-grid, .contact-grid, .pi-layout, .areas { padding-top: var(--content-top); padding-bottom: 44px; }
.pub-intro { padding: 14px 0 0; }

/* a clear gap between sections (the dividers stay where they are) */
.year-block, .group, .area { padding-top: calc(var(--section-gap) / 2); padding-bottom: calc(var(--section-gap) / 2); }
.year-block:first-of-type, .area:first-child { padding-top: 0; }
.person-feature { padding: 0 0 calc(var(--section-gap) / 2); }
.cv-section { margin-top: calc(var(--section-gap) / 2); padding-top: calc(var(--section-gap) / 2); }
.endnote { padding-top: 18px; }

/* tight rows inside sections, headings close to their content */
.news-item, .cv li, .plain li { padding-top: var(--row-pad); padding-bottom: var(--row-pad); }
.news-item:first-child, .cv li:first-child, .plain li:first-child { padding-top: 0; }
.names li { padding-top: 5px; padding-bottom: 5px; }
.cv-section > h3 { margin-bottom: 8px; }
.area h3 { margin-bottom: 8px; }
.area .tags, .areas .tags { margin-top: 12px; }

/* research chips: the same soft pills as the homepage */
.areas .tag { padding: 5px 12px; border-radius: 999px; background: #f7f3ec; border: 1px solid #e3dccf; color: var(--ink); font-weight: 600; }
.areas a.tag:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.areas .tag-ongoing { background: #fff; border-style: dashed; border-color: #cdbfa8; }

/* ==========================================================================
   Dr. Hossain page: one full-width column, lists formatted like the homepage news
   (bullets with the date in bold)
   ========================================================================== */
.pi-layout { display: block; }
.pi-main { max-width: none; }
.pi-intro p { max-width: none; }
.cv, .plain { list-style: disc; padding-left: 1.2em; }
.cv li, .plain li { display: list-item; border-top: 0; padding-top: 3px; padding-bottom: 3px; }
.cv li:first-child, .plain li:first-child { padding-top: 3px; }
.cv-when { display: inline; padding: 0; font-size: inherit; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.cv li > div { display: inline; }
.cv-when:empty { display: none; }
.cv-when::after { content: " "; }

/* Dr. Hossain page: portrait on the left of the name and role, paragraphs full width below */
.pi-photo { display: block; width: 150px; aspect-ratio: 0.8; object-fit: cover; object-position: 50% 28%; margin: 4px 0 14px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--paper-2); }
@media (min-width: 601px) {
  .pi-intro { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 26px; align-items: start; }
  .pi-intro .pi-photo { grid-column: 1; grid-row: 1 / span 4; margin: 4px 0 14px; }
  .pi-intro .eyebrow { grid-column: 2; grid-row: 1; }
  .pi-intro h1 { grid-column: 2; grid-row: 2; }
  .pi-intro .role { grid-column: 2; grid-row: 3; margin-bottom: 0; }
  .pi-intro > p:not(.eyebrow):not(.role) { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .pi-photo { width: 120px; } }

/* ==========================================================================
   News and Team pages: the same space-saving layout as Publications.
   Headings sit above their content, narrow side columns shrink or go away,
   and the content gets the width that was being wasted.
   ========================================================================== */
/* News: year as a heading, slim date column, text gets the rest */
.news-page .year-block { display: block; }
.news-page .year-block:first-of-type { padding-top: 0; }
.news-page .year-label { position: static; margin: 0 0 4px; }
.news-page .news-item { gap: 2px 18px; align-items: baseline; border: 0; padding: 0 0 14px; }
.news-page .news-item:last-child { padding-bottom: 0; }
.news-page .year-block { border: 0; }
@media (min-width: 700px) { .news-page .news-item { grid-template-columns: 84px minmax(0, 1fr); } }

/* Team: group name as a heading, then the people */
.team-page .group { display: block; }
.team-page .group > h2 { margin: 0 0 8px; }
@media (min-width: 700px) { .team-page .person-feature { grid-template-columns: 130px minmax(0, 1fr); } }
.team-page .person-feature { gap: 14px 24px; }
.team-page .portrait { max-width: 130px; }

/* ==========================================================================
   Tidy pass: tighter inside sections, and the last three off-scale font sizes
   ========================================================================== */
.subhead { margin: 16px 0 4px; }
.subhead:first-of-type { margin-top: 6px; }
.pi-intro p, .join-col p { margin-bottom: 0.7em; }
.cv-section > h3, .area h3 { margin-bottom: 6px; }
.area .tags, .areas .tags { margin-top: 10px; }
.prose figcaption { font-size: 0.875rem; }
.field input, .field textarea { font-size: 1rem; }

/* ==========================================================================
   Team page: calmer. No rule under every name, plain labels, no boxed button.
   (Team page only. Nothing is removed.)
   ========================================================================== */
/* the PI block: no decorative dash, the button becomes an ordinary link */
.team-page .person-feature .eyebrow::before { display: none; }
.team-page .person-feature .role-lab, .team-page .person-feature .role-lab strong { font-weight: 400; color: var(--muted); }
.team-page .person-feature .actions { margin-top: 6px; }
.team-page .person-feature .btn { padding: 0; border: 0; background: none; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.team-page .person-feature .btn::after { content: " \2192"; }
.team-page .person-feature .btn:hover { color: #0b0b8f; background: none; }
/* one light line between groups */

/* ==========================================================================
   Audit fixes
   ========================================================================== */
/* footer links: Join and Contact stay reachable from every page */
.site-footer .footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; }
.footer-links a { display: inline-block; padding: 4px 0; }
.footer-links a + a { margin-left: 14px; }

/* easier to tap: the menu button, and links that stand on a line of their own */
.site-header .nav-toggle { min-height: 44px; padding-left: 16px; padding-right: 16px; }
.hire-card a.hire-cta, .home-recent .home-more a, .home-research-head a, .team-page .person-feature .btn { display: inline-block; padding-top: 4px; padding-bottom: 4px; }

/* research cards on the homepage are as tall as their content, with no empty space inside */
.rgroups { align-items: start; }

/* Research page: area titles are now h2 (they were h3, which skipped a heading level) */
.areas .area-text h2 { margin: 0 0 6px; font-family: var(--sans); font-size: 1.375rem; line-height: 1.2; font-weight: 700; letter-spacing: 0; color: var(--news-red); }

/* Team page: replaces two inline styles */
.team-page .person-feature h2 { margin-top: 16px; }

/* High Contrast mode: keep the green header and footer so the white logo stays visible */
@media (forced-colors: active) { .site-header, .site-footer { forced-color-adjust: none; } }

/* Header without the logo: the menu starts at the page's left edge */
@media (min-width: 881px) { .site-header .wrap.bar { grid-template-columns: 1fr; } .site-header .site-nav { grid-column: 1; justify-self: stretch; margin-left: -16px; margin-right: -16px; } .site-header .site-nav ul { justify-content: var(--menu-align); } }
@media (min-width: 881px) and (max-width: 1040px) { .site-header .site-nav { margin-left: -13px; margin-right: -13px; } }
@media (max-width: 880px) { .site-header .nav-toggle { margin-left: auto; } }

/* Safety net: the logo stays hidden even if an older header file is still in place */
.site-header a.brand, .site-header .brand-icon, .site-header .brand-logo { display: none; }

/* ==========================================================================
   Publications: venue and year in a left column; title, authors, venue and links on the right.
   ========================================================================== */
.bib-list { margin: 0; padding: 0; list-style: none; }
.bib-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px; margin: 0 0 22px; }
.bib-year:last-child .bib-item:last-child { margin-bottom: 0; }
.bib-where { font-size: 1rem; line-height: 1.4; color: var(--muted); }
.bib-where span { display: block; }
.bib-where span:first-child { font-weight: 700; }
.bib-main p { margin: 0; }
.bib-title { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.bib-main .bib-authors, .bib-main .bib-venue, .bib-main .bib-links { margin-top: 2px; font-size: 0.975rem; line-height: 1.45; }
.bib-authors, .bib-venue { color: var(--muted); }
.bib-authors strong { font-weight: 700; color: var(--ink); }
.bib-links a { display: inline-block; margin: -3px 0; padding: 3px 0; color: var(--link); text-decoration: none; white-space: nowrap; }
.bib-links a + a { margin-left: 8px; }
.bib-links a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .bib-item { grid-template-columns: 1fr; row-gap: 2px; }
  .bib-where span { display: inline; }
  .bib-where span + span::before { content: "\00a0"; }
}

/* ==========================================================================
   Team: one line per person. The name is the link, the role follows in grey.
   ========================================================================== */
.team-page .people { display: block; margin: 0; padding: 0; list-style: none; }
.team-page .people li { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 24px; align-items: baseline; margin: 0; padding: 0 0 6px; border: 0; }
.team-page .people .person-topic { color: var(--muted); }
@media (max-width: 700px) { .team-page .people li { display: block; padding-bottom: 8px; } .team-page .people .person-topic { display: block; } }
.team-page .people li:last-child { padding-bottom: 0; }
.team-page .people a { display: inline-block; margin: -3px 0; padding: 3px 0; color: var(--link); text-decoration: none; }
.team-page .people a:hover { text-decoration: underline; }
.team-page .people .person-more { margin-left: 4px; white-space: nowrap; }

/* ==========================================================================
   Team: quiet. No rules between sections, no orange label, and the undergraduate names
   run on as plain text after a bold lead-in instead of sitting in columns.
   ========================================================================== */
.team-page .person-feature, .team-page .group { border: 0; padding: 0; }
.team-page .person-feature { margin: 0 0 32px; }
.team-page .group { margin: 0 0 32px; }
.team-page .group:last-child { margin-bottom: 0; }
.team-page .portrait { border: 0; }
.team-page .person-feature .eyebrow { margin: 0 0 2px; font-size: 0.975rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.team-page .cohort { margin: 0 0 20px; }
.team-page .cohort:last-child { margin-bottom: 0; }
.team-page .cohort h3 { display: block; margin: 0 0 8px; font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
/* each name is a small chip on a soft tint, so the names read as separate people */
.team-page .names { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; column-width: auto; }
.team-page .names li { display: block; margin: 0; padding: 3px 10px; border: 0; border-radius: 4px; background: var(--green-tint); font-size: 0.975rem; line-height: 1.45; color: var(--ink); }

/* ==========================================================================
   Dr. Hossain page: three parts (Background, Faculty at UTD, Ph.D. years and earlier).
   Part titles are large and dark, section titles smaller and red, subheads plain bold text.
   ========================================================================== */
.pi-jump { margin: 6px 0 0; font-size: 0.975rem; }
.pi-jump a { display: inline-block; margin: 0 20px 0 0; padding: 3px 0; color: var(--link); text-decoration: none; }
.pi-jump a:hover { text-decoration: underline; }
.pi-part { margin-top: 64px; }
.pi-jump + .pi-part { margin-top: 32px; }
.pi-part .part-title { margin: 0 0 2px; font-family: var(--sans); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.pi-main .cv-section { margin-top: 28px; padding-top: 0; border: 0; }
.pi-main .cv-section > h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; color: var(--news-red); }
.pi-main .subhead { margin: 16px 0 4px; font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.pi-main .subhead:first-of-type { margin-top: 6px; }
