/* ==========================================================================
   Barzin Mobasher Research Group — ASU Unity Design System look
   Colors, type, and components follow ASU web standards:
   maroon #8C1D40, gold #FFC627, Arial, pill buttons, square cards,
   gold-highlight headings, standard ASU global footer.
   ========================================================================== */

:root {
  --maroon: #8C1D40;
  --maroon-dark: #6f1734;
  --gold: #FFC627;
  --dark: #191919;
  --gray-7: #484848;
  --gray-5: #6d6d6d;
  --gray-4: #bfbfbf;
  --gray-3: #d0d0d0;
  --gray-2: #e8e8e8;
  --gray-1: #fafafa;
  --white: #ffffff;
  --max-w: 1200px;
  --shadow-1: 0 2px 8px rgba(25, 25, 25, .12);
  --shadow-2: 0 8px 24px rgba(25, 25, 25, .18);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 9rem; }

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--maroon-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--gold);
}
.band-dark :focus-visible, .band-maroon :focus-visible, .hero-dark :focus-visible, .footer-social :focus-visible {
  outline-color: var(--white);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  color: var(--dark);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--gray-7); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

section { padding: 3.5rem 0; }
section.tight { padding: 2.25rem 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--dark); font-weight: 700;
  padding: .6rem 1rem; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- Gold marker highlight (Unity heading style) ------------------------- */
.hl {
  display: inline;
  background: var(--gold);
  color: var(--dark);
  padding: .05em .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-white {
  display: inline;
  background: var(--white);
  color: var(--dark);
  padding: .05em .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- Prototype ribbon ---------------------------------------------------- */
.proto-ribbon {
  background: var(--gold);
  color: var(--dark);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  padding: .45rem 1rem;
}
.proto-ribbon button {
  background: none; border: 0; font: inherit; cursor: pointer;
  margin-left: .75rem; text-decoration: underline;
}

/* --- Header -------------------------------------------------------------- */
.asu-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.asu-header .brand-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0 .55rem;
}
.asu-header .brand-row img.asu-logo { height: 52px; width: auto; }
.asu-header .brand-row .search-toggle {
  background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--dark);
}
.title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-bottom: 0;
}
.site-title {
  font-weight: 700; font-size: 1.05rem; color: var(--dark);
  text-decoration: none; padding: .35rem 0 .8rem;
}
.site-title:hover { color: var(--maroon); }

.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: stretch; }

/* --- Dropdown navigation ---------------------------------------------------- */
.nav-item.has-sub { position: relative; display: flex; align-items: stretch; }
.nav-item.has-sub > a { padding-right: .3rem; }
.sub-toggle {
  background: none; border: 0; cursor: pointer; color: var(--dark);
  padding: .55rem .55rem .55rem .1rem; font-size: .8rem; line-height: 1;
  border-bottom: 8px solid transparent;
}
.sub-toggle:hover { background: var(--gray-1); }
.sub-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 120;
  min-width: 15rem; background: var(--white);
  border: 1px solid var(--gray-3); border-top: 4px solid var(--maroon);
  box-shadow: var(--shadow-2); padding: .35rem 0;
}
.nav-item.has-sub.open .sub-menu { display: block; }
.sub-menu a {
  display: block; padding: .5rem 1rem; font-size: .92rem; font-weight: 400;
  border-bottom: 0; text-decoration: none; color: var(--dark);
}
.sub-menu a:hover { background: var(--gray-1); color: var(--maroon); }
@media (min-width: 901px) {
  .nav-item.has-sub:hover .sub-menu,
  .nav-item.has-sub:focus-within .sub-menu { display: block; }
}
@media (max-width: 900px) {
  .nav-item.has-sub { flex-wrap: wrap; }
  .nav-item.has-sub > a { flex: 1; }
  .sub-menu { position: static; width: 100%; box-shadow: none; border: 0; border-left: 8px solid var(--gray-2); padding: 0 0 .3rem; }
  .sub-menu a { padding-left: 1.6rem; }
  .sub-toggle { border-bottom: 0; border-left: 0; padding: .55rem .9rem; }
}
.main-nav a {
  display: block;
  padding: .55rem .8rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 8px solid transparent;
}
.main-nav a:hover { background: var(--gray-1); border-bottom-color: var(--gray-3); }
.main-nav a.active { border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: var(--white); border: 1px solid var(--gray-3);
  font-weight: 700; font-size: .95rem; padding: .5rem .9rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; margin-bottom: .8rem; }
  .main-nav {
    display: none; width: 100%; flex-direction: column; gap: 0;
    border-top: 1px solid var(--gray-3); padding-bottom: .5rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border-bottom: 0; border-left: 8px solid transparent; }
  .main-nav a.active { border-left-color: var(--gold); }
}

/* --- Hero ---------------------------------------------------------------- */
.hero-dark {
  background: var(--dark) url("../img/TopoPatternBlack.png") center / 640px repeat;
  color: var(--white);
  padding: 5rem 0 5.5rem;
}
.hero-dark h1 { color: var(--white); max-width: 18ch; }
.hero-dark .lead { color: var(--gray-2); max-width: 62ch; }
.hero-dark .eyebrow { color: var(--gold); }

.eyebrow {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: .9rem;
}

.page-hero { padding: 3.5rem 0 1rem; }
.page-hero .lead { max-width: 70ch; }

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* --- Buttons (Unity pill style) ------------------------------------------ */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: .6rem 1.6rem;
  border-radius: 400px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: scale(1.03); box-shadow: var(--shadow-1); }
.btn-maroon { background: var(--maroon); color: var(--white); }
.btn-maroon:hover { background: var(--maroon-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { color: var(--dark); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-sm { font-size: .85rem; padding: .4rem 1.1rem; }

/* --- Bands --------------------------------------------------------------- */
.band-gray { background: var(--gray-1); border-top: 1px solid var(--gray-2); border-bottom: 1px solid var(--gray-2); }
.band-maroon {
  background: var(--maroon);
  color: var(--white);
}
.band-maroon h2, .band-maroon h3 { color: var(--white); }
.band-maroon p { color: var(--gray-2); }
.band-dark {
  background: var(--dark);
  color: var(--white);
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark p { color: var(--gray-2); }

/* --- Credo strip (home, maroon band) --------------------------------------- */
.credo { max-width: 48rem; margin: 0 auto; border-left: 3px solid var(--gold); padding: .35rem 0 .35rem 1.6rem; }
.credo-quote { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.3; color: var(--white); margin: 0; }
.credo-body { font-size: 1rem; color: var(--gray-2); margin: .65rem 0 0; max-width: 40rem; }
.credo-attrib { margin: .55rem 0 0; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }

/* --- Member cards ----------------------------------------------------------- */
.member-row { display: flex; gap: 1.4rem; align-items: flex-start; }
.portrait-sm { width: 150px; height: 150px; flex: 0 0 150px; border-width: 4px; }
@media (max-width: 560px) { .member-row { flex-direction: column; } }

/* --- Stats --------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.25);
}
.stat {
  background: var(--maroon);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.stat .value { font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1.15; }
.stat .value.text { font-size: 1.45rem; letter-spacing: .02em; padding-top: .35rem; }
.stat .label { font-size: .95rem; color: var(--gray-2); margin-top: .35rem; }

/* --- Cards --------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-3);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card .card-img { border-bottom: 1px solid var(--gray-3); }
.card .card-img img { width: 100%; }
.card .card-body { padding: 1.25rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card .card-body h3 { margin-bottom: .5rem; }
.card .card-body p { color: var(--gray-7); font-size: .97rem; }
.card .card-body .card-cta { margin-top: auto; padding-top: .8rem; }
.card.card-gold-top { border-top: 8px solid var(--gold); }
.card.card-maroon-top { border-top: 8px solid var(--maroon); }

.card-link {
  text-decoration: none; color: inherit; display: block; height: 100%;
}
.card-link:hover { color: inherit; }

.arrow-link {
  font-weight: 700; text-decoration: none; color: var(--maroon);
}
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* --- Icon tiles ---------------------------------------------------------- */
.icon-tile {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.icon-tile svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 2; }

/* --- Chips / badges ------------------------------------------------------- */
.chip-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 1.6rem; }
.chip {
  font-family: inherit; font-size: .88rem; font-weight: 700;
  padding: .38rem 1.05rem; border-radius: 400px;
  border: 2px solid var(--dark); background: var(--white); color: var(--dark);
  cursor: pointer;
}
.chip:hover { background: var(--gray-2); }
.chip.active { background: var(--dark); color: var(--white); }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .18rem .6rem; border-radius: 3px;
}
.badge-maroon { background: var(--maroon); color: var(--white); }
.badge-gold { background: var(--gold); color: var(--dark); }
.badge-gray { background: var(--gray-2); color: var(--gray-7); }
.badge-outline { border: 1px solid var(--gray-4); color: var(--gray-7); }
.badge-verify { background: #fff3cd; color: #7a5c00; border: 1px solid #e6c34a; }

/* --- People -------------------------------------------------------------- */
.pi-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start;
}
@media (max-width: 800px) { .pi-layout { grid-template-columns: 1fr; } }
.portrait-round {
  border-radius: 50%; width: 260px; height: 260px; object-fit: cover;
  border: 6px solid var(--gray-2);
}
.profile-card .card-img img { aspect-ratio: 1 / 1; object-fit: cover; }
.profile-links { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .95rem; }
.member-meta { color: var(--gray-5); font-size: .95rem; margin-bottom: .3rem; }

blockquote.asu-quote {
  margin: 2rem 0; padding-left: 1.6rem; border-left: 8px solid var(--gold);
  font-size: 1.25rem; font-weight: 700; line-height: 1.5; color: var(--dark);
}
blockquote.asu-quote footer { font-size: .95rem; font-weight: 400; color: var(--gray-5); margin-top: .7rem; }

/* --- Accordion ----------------------------------------------------------- */
.accordion { border: 1px solid var(--gray-3); border-left: 8px solid var(--gold); margin-bottom: .9rem; background: var(--white); }
.accordion > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-align: left;
  padding: 1rem 1.2rem;
}
.accordion > button .chev { transition: transform .18s ease; font-size: 1.1rem; }
.accordion.open > button .chev { transform: rotate(180deg); }
.accordion .acc-body { display: none; padding: 0 1.2rem 1.2rem; color: var(--gray-7); }
.accordion.open .acc-body { display: block; }

/* --- Publications -------------------------------------------------------- */
.pub-controls { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.pub-search {
  flex: 1 1 260px; max-width: 420px;
  padding: .6rem .9rem; font: inherit;
  border: 2px solid var(--dark); border-radius: 400px;
}
.year-heading {
  font-size: 1.6rem; border-bottom: 3px solid var(--gold);
  padding-bottom: .3rem; margin: 2.2rem 0 1rem;
  scroll-margin-top: 9rem;
}

/* --- Decade jump navigation (long publication archive) --------------------- */
.decade-nav {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 1.4rem; padding: .9rem 0; border-top: 1px solid var(--gray-2);
  border-bottom: 1px solid var(--gray-2);
}
.decade { border: 1px solid var(--gray-3); background: var(--white); }
.decade > summary {
  cursor: pointer; font-weight: 700; font-size: .9rem;
  padding: .35rem .85rem; list-style: none;
}
.decade > summary::-webkit-details-marker { display: none; }
.decade > summary::before { content: "\25B8 "; color: var(--maroon); }
.decade[open] > summary::before { content: "\25BE "; }
.decade-years {
  display: flex; flex-wrap: wrap; gap: .25rem .7rem;
  padding: .2rem .85rem .6rem; max-width: 26rem;
}
.decade-years a { font-size: .88rem; font-weight: 700; text-decoration: none; }
.decade-years a:hover { text-decoration: underline; }

/* --- Presentations timeline ------------------------------------------------ */
.talk-year { display: grid; grid-template-columns: 92px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--gray-2); }
.talk-year:last-child { border-bottom: 0; }
.talk-year .yr { font-size: 1.7rem; font-weight: 700; color: var(--maroon); line-height: 1; position: sticky; top: 9rem; }
@media (max-width: 640px) { .talk-year { grid-template-columns: 1fr; gap: .5rem; } .talk-year .yr { position: static; } }
.talk { padding: .55rem 0; border-bottom: 1px dotted var(--gray-3); overflow-wrap: anywhere; }
.talk:last-child { border-bottom: 0; }
.talk .ev { font-weight: 700; }
.talk .ti { color: var(--gray-7); }
.talk .loc { color: var(--gray-5); font-size: .9rem; }

/* --- AI page --------------------------------------------------------------- */
.principle { border-left: 4px solid var(--gold); padding: .2rem 0 .2rem 1.1rem; margin-bottom: 1.4rem; }
.principle h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.principle p { color: var(--gray-7); margin-bottom: 0; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .tool-row { grid-template-columns: 1fr; } }

/* --- Diagrams and mind maps -------------------------------------------------- */
.diagram { margin: 0 0 2rem; }
.diagram-stage {
  border: 1px solid var(--gray-3); background: var(--white);
  padding: 1.2rem; overflow-x: auto;
}
/* These maps are drawn portrait on a 600-unit grid. Capping the rendered width
   keeps their type near its intended size instead of magnifying it on wide
   screens; the stage scrolls horizontally if the viewport is narrower. */
.diagram-stage svg {
  width: 100%; height: auto; display: block; min-width: 520px;
}
/* Portrait diagrams drawn on a 600-unit grid would magnify their type if
   stretched across a wide container, so those are capped. Landscape charts
   and the map are meant to fill the width. */
.diagram-stage svg[viewBox^="0 0 600"] { max-width: 620px; margin: 0 auto; }
.diagram figcaption {
  font-size: .9rem; color: var(--gray-5); padding-top: .6rem;
}
.band-dark .diagram-stage, .band-maroon .diagram-stage { border-color: rgba(255,255,255,.25); }

/* --- Fields summary on the home page ---------------------------------------- */
.field-chips {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: grid; gap: 1px; background: var(--gray-3);
  border: 1px solid var(--gray-3);
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.field-chips li {
  background: var(--white); padding: .75rem 1rem;
  border-left: 4px solid var(--maroon);
}
.field-chips .fc-name { display: block; font-weight: 700; font-size: .97rem; }
.field-chips .fc-meta { display: block; font-size: .85rem; color: var(--gray-5); margin-top: .12rem; }

/* --- Fields of work table --------------------------------------------------- */
.fields-table td { vertical-align: top; }
.fields-table td strong { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.fields-table .fld-text { display: block; font-size: .92rem; color: var(--gray-7); max-width: 74ch; }
.fields-table .num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.fields-table thead th:not(:first-child) { text-align: right; }

/* --- Media / GIF gallery ---------------------------------------------------- */
.clip {
  border: 1px solid var(--gray-3); background: var(--white);
  display: flex; flex-direction: column;
}
/* Fixed 4:3 stage so portrait and landscape footage share one grid rhythm. */
.clip video, .clip img {
  width: 100%; display: block; background: var(--dark);
  aspect-ratio: 4 / 3; object-fit: contain;
}
.clip .cap { padding: .7rem .9rem; flex: 1; }
/* Software screen captures are wide and text-heavy, so they keep their own
   aspect rather than being letterboxed into the 4:3 laboratory stage, and they
   get a two-across grid so the on-screen numbers stay legible. */
.clip-wide video, .clip-wide img { aspect-ratio: auto; object-fit: contain; }
.demo-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); }
@media (max-width: 560px) { .demo-grid { grid-template-columns: 1fr; } }
.clip .cap h3 { font-size: 1rem; margin-bottom: .25rem; }
.clip .cap p { font-size: .88rem; color: var(--gray-7); margin-bottom: 0; }
.pub-item {
  padding: 1.1rem 0; border-bottom: 1px solid var(--gray-2);
}
.pub-item .pub-title { font-weight: 700; font-size: 1.08rem; margin: 0 0 .25rem; }
.pub-item .pub-title a { text-decoration: none; }
.pub-item .pub-title a:hover { text-decoration: underline; }
.pub-item .pub-authors { color: var(--gray-7); margin: 0 0 .15rem; }
.pub-item .pub-authors .me { font-weight: 700; }
.pub-item .pub-venue { color: var(--gray-5); font-style: italic; margin: 0 0 .55rem; }
.pub-item .pub-actions { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.pub-item .pub-actions .badge { margin-right: .2rem; }
.btn-tiny {
  font-size: .8rem; font-weight: 700; padding: .28rem .85rem;
  border-radius: 400px; border: 2px solid var(--dark);
  background: var(--white); color: var(--dark); cursor: pointer; text-decoration: none;
}
.btn-tiny:hover { background: var(--dark); color: var(--white); }
span.btn-tiny[aria-disabled="true"] {
  border-color: var(--gray-4); color: var(--gray-5); cursor: default;
}
span.btn-tiny[aria-disabled="true"]:hover { background: var(--white); color: var(--gray-5); }
.pub-authors a { color: inherit; }
.pub-authors a:hover { color: var(--maroon); }

/* --- Paper page ---------------------------------------------------------- */
.breadcrumbs { font-size: .88rem; color: var(--gray-5); margin-bottom: 1.4rem; }
.breadcrumbs a { color: var(--gray-5); }
.paper-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.8rem; align-items: start; }
@media (max-width: 960px) { .paper-layout { grid-template-columns: 1fr; } }
.side-card { border: 1px solid var(--gray-3); border-top: 8px solid var(--maroon); padding: 1.3rem 1.4rem; margin-bottom: 1.5rem; background: var(--white); }
.side-card h3 { font-size: 1.05rem; margin-bottom: .8rem; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { padding: .32rem 0; }
.bibtex-box {
  background: var(--gray-1); border: 1px solid var(--gray-3);
  font-family: Consolas, "Courier New", monospace; font-size: .78rem;
  padding: .9rem; white-space: pre-wrap; word-break: break-word;
  max-height: 220px; overflow: auto; margin-bottom: .7rem;
}
.findings { margin: 0 0 1.6rem; padding-left: 1.2rem; }
.findings li { margin-bottom: .7rem; color: var(--gray-7); max-width: 74ch; }
figure.paper-fig { margin: 0 0 1.6rem; }
figure.paper-fig img { border: 1px solid var(--gray-3); width: 100%; }
figure.paper-fig figcaption { font-size: .88rem; color: var(--gray-5); padding-top: .5rem; }

/* --- Video embed --------------------------------------------------------- */
.video-slot { position: relative; aspect-ratio: 16 / 9; background: var(--dark); border: 1px solid var(--gray-3); }
.video-slot img, .video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-slot button.play-load {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: none; border: 0; cursor: pointer;
}
.video-card h3 { font-size: 1.05rem; margin: .8rem 0 .3rem; }
.video-card p { font-size: .92rem; color: var(--gray-7); }
.video-slot .badge { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; }

/* --- Software flagship page ---------------------------------------------- */
.sw-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 960px) { .sw-hero { grid-template-columns: 1fr; } }
.sw-hero .version-chip {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4);
  color: var(--white); font-size: .85rem; font-weight: 700;
  border-radius: 400px; padding: .3rem 1rem; margin-bottom: 1.1rem;
}
.shot { display: block; width: 100%; height: auto; border: 1px solid var(--gray-3); background: #fff; }
.band-dark .shot { border-color: rgba(255,255,255,.25); }
.shot-fig { margin: 0; }
.shot-fig figcaption { font-size: .85rem; color: var(--gray-4); margin-top: .6rem; }
.module-group { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--maroon); margin: 2.4rem 0 0; }
.module-row h3 { margin-top: 0; }

.module-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: center; padding: 2.2rem 0; border-bottom: 1px solid var(--gray-2); }
.module-row:last-child { border-bottom: 0; }
@media (max-width: 900px) { .module-row { grid-template-columns: 1fr; } }
.module-row img { border: 1px solid var(--gray-3); }
.module-row .standard { color: var(--maroon); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

.tut-item { display: flex; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--gray-2); align-items: flex-start; }
.tut-item:last-child { border-bottom: 0; }
.tut-num {
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.15rem;
}
.tut-item h4 { margin-bottom: .2rem; }
.tut-item p { margin-bottom: .5rem; color: var(--gray-7); }

/* --- News ---------------------------------------------------------------- */
.news-item { padding: 1rem 0; border-bottom: 1px solid var(--gray-2); }
.news-item .date { font-size: .85rem; font-weight: 700; color: var(--maroon); text-transform: uppercase; letter-spacing: .06em; }
.news-item h3 { font-size: 1.1rem; margin: .2rem 0 .3rem; }
.news-item p { color: var(--gray-7); margin: 0; font-size: .95rem; }

/* --- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.asu-table { border-collapse: collapse; width: 100%; }
table.asu-table th { background: var(--dark); color: var(--white); text-align: left; padding: .6rem .8rem; }
table.asu-table td { border-bottom: 1px solid var(--gray-2); padding: .6rem .8rem; }

/* --- Footer (ASU global footer) ------------------------------------------ */
footer.asu-footer { margin-top: 3rem; }
.footer-social {
  background: var(--dark);
  padding: 2.2rem 0;
}
.footer-social .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-social img.endorsed { height: 64px; width: auto; }
.social-icons { display: flex; gap: .8rem; }
.social-icons a, .social-icons > span {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.social-icons a:hover { background: var(--gold); }
.social-icons > span { opacity: .45; }
.social-icons svg { width: 20px; height: 20px; fill: var(--dark); }

.footer-innovation { background: var(--white); padding: 1.4rem 0; border-bottom: 1px solid var(--gray-2); }
.footer-innovation .wrap { display: flex; justify-content: center; }
.footer-innovation img { height: 64px; width: auto; }

.footer-columns { background: var(--gray-2); padding: 1.6rem 0 .4rem; }
.footer-columns ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 2.6rem; justify-content: center;
}
.footer-columns a { color: var(--dark); font-weight: 700; text-decoration: none; }
.footer-columns a:hover { text-decoration: underline; }

.footer-legal { background: var(--gray-2); padding: .9rem 0 2rem; }
.footer-legal ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3rem 1.8rem; justify-content: center;
}
.footer-legal a { color: var(--gray-7); font-size: .88rem; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* --- Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.center { text-align: center; }
.muted { color: var(--gray-5); }
.small { font-size: .88rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head h2 { margin-bottom: 0; }
.divider-gold { border: 0; border-top: 3px solid var(--gold); width: 80px; margin: 0 0 1.6rem; }

@media print {
  .asu-header, .proto-ribbon, footer.asu-footer, .nav-toggle,
  .pub-controls, .chip-row, .video-slot, .hero-actions { display: none !important; }
  .hero-dark, .band-dark, .band-maroon, .stat { background: #fff !important; }
  .hero-dark h1, .hero-dark .lead, .hero-dark .eyebrow,
  .band-dark h2, .band-dark h3, .band-dark p,
  .band-maroon h2, .band-maroon h3, .band-maroon p,
  .credo-quote, .credo-body, .credo-attrib,
  .stat .value, .stat .label, .sw-hero .version-chip { color: #000 !important; }
  .accordion .acc-body { display: block; }
  .bibtex-box { max-height: none; overflow: visible; }
  .card, .pub-item, .side-card, figure.paper-fig, .tut-item { break-inside: avoid; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #484848; }
}
