:root {
  --rg-bg: #f6f8fb;
  --rg-surface: #ffffff;
  --rg-text: #18212f;
  --rg-muted: #5a6575;
  --rg-line: #dfe6ef;
  --rg-blue: #1d5fd0;
  --rg-teal: #087f8c;
  --rg-coral: #b34f35;
  --rg-shadow: 0 18px 45px rgba(37, 50, 77, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(234, 242, 252, 0.8), rgba(246, 248, 251, 0) 420px),
    var(--rg-bg);
  color: var(--rg-text);
}

.main-content-wrap {
  background: transparent;
}

.main-content {
  max-width: 1120px;
  padding-top: 2.5rem;
}

.main-header,
.site-footer,
footer,
footer .d-md-none {
  display: none;
}

.profile-page {
  font-size: 1rem;
  line-height: 1.72;
}

.profile-page a {
  color: var(--rg-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 4rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.hero-copy {
  min-width: 0;
}

.hero-copy > p {
  max-width: 760px;
  margin: 0 0 1rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--rg-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 clamp(1.6rem, 3vw, 2.3rem);
  color: var(--rg-text);
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: var(--rg-surface);
  color: var(--rg-text) !important;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(37, 50, 77, 0.07);
}

.button:hover,
.button:focus-visible {
  border-color: rgba(29, 95, 208, 0.35);
  box-shadow: 0 7px 20px rgba(29, 95, 208, 0.16);
}

.button.primary {
  border-color: var(--rg-blue);
  background: var(--rg-blue);
  color: #fff !important;
}

.portrait {
  margin: 0;
  justify-self: center;
  position: relative;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 18px -16px -18px 16px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(8, 127, 140, 0.22), rgba(179, 79, 53, 0.2));
}

.portrait img {
  position: relative;
  width: min(280px, 58vw);
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 26px;
  box-shadow: var(--rg-shadow);
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0.75rem 0;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(12px);
  border-block: 1px solid rgba(223, 230, 239, 0.8);
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: #fff;
  color: var(--rg-text);
  padding: 0.4rem 0.78rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 50, 77, 0.06);
}

.simple-list article {
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 22px rgba(37, 50, 77, 0.06);
}

.venue {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.1);
  color: var(--rg-teal);
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-heading p,
.simple-list p {
  color: var(--rg-muted);
}

.section-block {
  margin: 0 0 4rem;
  scroll-margin-top: 5rem;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  max-width: 780px;
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--rg-text);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
}

.pub-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 22px rgba(37, 50, 77, 0.05);
}

.pub-controls-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--rg-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.pub-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rg-text);
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  user-select: none;
}

.pub-chip.is-active {
  border-color: rgba(29, 95, 208, 0.45);
  background: rgba(29, 95, 208, 0.1);
  color: var(--rg-blue);
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-actions button {
  min-height: 34px;
  border: 1px solid var(--rg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rg-text);
  padding: 0.3rem 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.pub-actions button:hover,
.pub-actions button:focus-visible,
.pub-tag-pill:hover,
.pub-tag-pill:focus-visible {
  border-color: rgba(29, 95, 208, 0.45);
  color: var(--rg-blue);
}

.pub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rg-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(37, 50, 77, 0.07);
}

.pub-table-wrap .table-wrapper {
  display: contents;
}

.pub-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  margin: 0;
  color: var(--rg-text);
  font-size: 0.92rem;
}

.pub-col-title {
  width: 46%;
}

.pub-col-authors {
  width: 34%;
}

.pub-col-venue {
  width: 12%;
}

.pub-col-year {
  width: 8%;
}

.pub-table th,
.pub-table td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid var(--rg-line);
  vertical-align: top;
  text-align: left;
}

.pub-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fbfe;
  color: #314054;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pub-table tbody tr:nth-child(even) {
  background: rgba(246, 248, 251, 0.65);
}

.pub-table tbody tr:hover {
  background: rgba(29, 95, 208, 0.06);
}

.pub-legend {
  margin: 0.85rem 0 1rem;
  border-left: 3px solid rgba(29, 95, 208, 0.35);
  color: var(--rg-muted);
  padding: 0.15rem 0 0.15rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pub-legend strong {
  color: var(--rg-text);
}

.pub-legend-key {
  color: var(--rg-blue);
  font-weight: 850;
}

.pub-table tbody tr[hidden] {
  display: none;
}

.pub-table strong {
  display: block;
  color: var(--rg-text);
  font-size: 1rem;
  line-height: 1.35;
}

.pub-tags-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.pub-note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.pub-note-red {
  color: #b42318 !important;
  text-decoration-color: rgba(180, 35, 24, 0.45);
}

.pub-note-red:hover,
.pub-note-red:focus-visible {
  color: #8f1d13 !important;
  text-decoration-color: currentColor;
}

.pub-tag-pill {
  border: 1px solid rgba(8, 127, 140, 0.2);
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.08);
  color: var(--rg-teal);
  padding: 0.14rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.3;
  cursor: pointer;
}

.simple-list h3 {
  margin: 0 0 0.45rem;
  color: var(--rg-text);
  font-size: 1.05rem;
  line-height: 1.34;
}

.simple-list p {
  margin: 0.35rem 0 0;
}

.venue {
  margin-right: 0.35rem;
  background: rgba(29, 95, 208, 0.1);
  color: var(--rg-blue);
  text-decoration: none !important;
}

.simple-list {
  display: grid;
  gap: 0.8rem;
}

.simple-list article {
  padding: 1rem 1.1rem;
}

.simple-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plain-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  padding: 0;
  color: var(--rg-muted);
  list-style: none;
}

@media (max-width: 900px) {
  .main-content {
    padding-top: 1.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .portrait {
    justify-self: start;
  }

  .simple-list.compact {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .main-content {
    padding-inline: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    padding-inline: 0.6rem;
  }

  .section-nav {
    position: static;
  }
}
