/* Retain the original full-figure layout with larger, clearer author names. */
.research-page { --paper-detail-size:20px; }
.research-page #publications .pub__authors { font-size:calc(var(--paper-detail-size) + 1px); line-height:1.6; }
.research-page #publications .pub__authors .author-self { font-size:1em; font-weight:700; }
.research-page .pub__desc { margin:0 0 22px; color:var(--ink-soft); font-size:18px; line-height:1.65; text-align:justify; text-align-last:left; text-wrap:wrap; hyphens:auto; }
.research-page .pub__venue { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:10px 14px; margin-inline:-12px; width:calc(100% + 24px); font-size:var(--paper-detail-size); }
.research-page .pub__venue .conference-name { min-width:0; }
.research-page .pub__venue .oral-selection-row { grid-column:1/-1; font-size:var(--paper-detail-size); line-height:1.6; }
.research-page .pub__venue .oral-selection-row .oral-badge { white-space:nowrap; margin-right:7px; padding:4px 16px; border-width:2px; }
.research-page .pub__venue :is(.conference-name,.oral-badge,.pub__badge) { font-size:inherit; }
.research-page .pub__venue .publication-selection { display:inline; color:#b42332; font-size:inherit; font-weight:700; line-height:1.6; }
[data-theme="dark"] .research-page .pub__venue .publication-selection { color:#ff9ba5; }
@media screen and (min-width:1101px) {
  .research-page { --paper-detail-size:18px; }
}
@media screen and (max-width:760px) {
  .research-page { --paper-detail-size:16px; }
  .research-page .pub__desc { font-size:17px; }
}

/* Research navigation and section titles use simple editorial typography. */
.research-contents { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; padding:5px; border:0; border-block:1px solid var(--line); border-radius:0; background:transparent; }
.research-contents a { display:flex; align-items:center; justify-content:center; padding:12px 14px; min-height:48px; border:0; border-radius:0; background:none; text-align:center; color:var(--ink); font-size:18px; font-weight:500; text-decoration:none; }
.research-contents a:hover,.research-contents a:focus-visible { background:color-mix(in srgb,var(--ink) 7%,var(--surface)); border:0; border-radius:0; color:var(--ink); text-decoration:none; text-underline-offset:7px; text-decoration-thickness:1px; }
.research-page .research-group > .research-subtitle,
.research-page #main > #service > .research-subtitle { color:var(--ink); font-family:var(--heading-font); font-size:36px; font-weight:600; border-bottom:0; padding-bottom:0; gap:20px; }
.research-page .research-group > .research-subtitle::before,
.research-page #main > #service > .research-subtitle::before { display:none; }
@media screen and (max-width:760px) {
  .research-page .pub__venue { margin-inline:0; width:100%; gap:10px; }
  .research-contents { gap:0; padding:4px; }
  .research-contents a { font-size:15px; padding:10px 5px; }
  .research-page .research-group > .research-subtitle,
  .research-page #main > #service > .research-subtitle { font-size:28px; }
}

.research-page .research-section-count { color:var(--ink-soft); background:transparent; }

/* Section titles sit beside a fine rule instead of inside coloured panels. */
.research-page .research-group > .research-subtitle::after,
.research-page #main > #service > .research-subtitle::after {
  content:""; display:block; position:static; flex:1; min-width:24px;
  height:1px; background:var(--line);
}
.research-page .research-section-count { order:2; margin-left:0; }
.research-contents a + a { border-left:1px solid var(--line); }
.research-page .service-entry { font-size:20px; line-height:1.7; color:var(--ink); }
.research-page .service-entry p { font-size:inherit; }
@media screen and (max-width:760px) {
  .research-page .service-entry { font-size:18px; }
}

.research-page .pub__venue .pub__badge--muted { width:fit-content; justify-self:start; text-align:left; }

#publications .research-masthead .author-legend { font-size:18px; }
@media screen and (max-width:760px) {
  #publications .research-masthead .author-legend { font-size:15px; }
}

/* The conference has its own heading band; Oral sits on the paper surface. */
.research-page .pub__venue { padding:0; border:0; border-radius:0; background:transparent; }
.research-page .pub__venue .conference-name {
  display:block;
  padding:13px 16px;
  border-left:4px solid var(--ink-soft);
  border-radius:0 8px 8px 0;
  background:color-mix(in srgb,var(--tint) 60%,var(--surface));
}
.research-page .pub__venue .oral-selection-row { padding:4px 16px 0; }
@media screen and (max-width:760px) {
  .research-page .pub__venue .conference-name { padding:12px; }
  .research-page .pub__venue .oral-selection-row { padding:4px 0 0; }
}

/* Submission status shares the venue-band layout, with a warm neutral tint. */
.research-page .pub__venue .pub__badge--muted {
  display:block;
  box-sizing:border-box;
  width:100%;
  padding:13px 16px;
  border:0;
  border-left:4px solid #8b7053;
  border-radius:0 8px 8px 0;
  background:#f3ede3;
  color:#624f3b;
  text-align:left;
  box-shadow:none;
}
[data-theme="dark"] .research-page .pub__venue .pub__badge--muted {
  background:#342f28;
  border-left-color:#c2a781;
  color:#e4d3b8;
}
@media screen and (max-width:760px) {
  .research-page .pub__venue .pub__badge--muted { padding:12px; }
}

/* Slightly soften coauthors while retaining Anthony's existing emphasis. */
.research-page .pub__authors .author-credit,
.research-page .pub__authors .author-credit > a {
  color:color-mix(in srgb,var(--ink) 76%,var(--surface));
}
.research-page .pub__authors .author-credit > a:is(:hover,:focus-visible) { color:var(--person-link); }
.research-page .pub__venue .oral-selection-row {
  text-align:justify;
  text-align-last:left;
  text-wrap:wrap;
}

/* Explain Anthony's existing co-first stars without styling the note as a name. */
.research-page .pub__authors .author-credit--cofirst { flex-wrap:wrap; justify-content:center; column-gap:6px; max-width:100%; }
.author-identity { display:inline-flex; align-items:center; white-space:nowrap; }
.research-page .pub__authors .author-role-note { color:var(--ink); font:inherit; font-weight:700; text-decoration:none; background:none; white-space:nowrap; }

/* Commas separate author credits, including across intentional row breaks. */
.research-page .pub__authors .author-credit::after { content:","; color:inherit; }
.research-page .pub__authors .author-row:last-child > .author-credit:last-child::after { content:none; }

.research-page .pub__authors .author-credit--cofirst::after { content:none; }
.research-page .pub__authors .author-credit--cofirst .author-role-note::after { content:","; font-weight:400; }

.research-page .pub__venue .pub__badge--muted { font-size:var(--paper-detail-size); }

:root[data-theme="light"] .research-page #publications .pub__authors .author-self {
  color:color-mix(in srgb,var(--person-link) 65%,var(--ink));
}

@media screen and (min-width:761px) {
  .research-page #publications .pub__authors { font-size:calc(var(--paper-detail-size) + 2px); }
}

/* Emphasize only Anthony's co-first star. */
.research-page .pub__authors .author-identity > .author-self + .author-marker svg { stroke-width:3; }

.research-page .pub__authors .author-credit > .author-marker { color:inherit; }

/* Make available paper resources easy to spot and clearly interactive. */
.research-page .pub__links a {
  color:var(--accent-hover);
  background:color-mix(in srgb,var(--accent) 10%,var(--surface));
  border:1.5px solid color-mix(in srgb,var(--accent) 55%,var(--line));
  font-size:16px;
  font-weight:700;
  min-height:46px;
  padding:10px 16px;
  box-shadow:0 2px 5px #1725300a;
}
.research-page .pub__links a svg { stroke-width:2; }
.research-page .pub__links a:is(:hover,:focus-visible) {
  color:var(--surface);
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:0 3px 10px #1725301a;
  text-decoration:none;
}
.research-page .pub__links a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
