@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #fafafa;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --text: #09090b;
  --text-secondary: #27272a;
  --text-muted: #71717a;
  --text-soft: #8e8e98;
  --line: rgba(9, 9, 11, 0.085);
  --line-strong: rgba(9, 9, 11, 0.18);
  --accent: #52525b;
  --accent-strong: #09090b;
  --accent-soft: rgba(9, 9, 11, 0.035);
  --accent-soft-hover: rgba(9, 9, 11, 0.065);
  --code-bg: #f6f6f8;
  --badge-new-bg: rgba(24, 24, 27, 0.055);
  --badge-new-border: rgba(24, 24, 27, 0.14);

  --paper-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
  --panel-shadow: 0 4px 14px rgba(0, 0, 0, 0.022);
  --radius-xl: 24px;
  --radius-lg: 10px;
  --radius-md: 7px;
  --page-width: 1080px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --bg-elevated: #0c0c0f;
  --bg-subtle: #111115;
  --panel: #0c0c0f;
  --panel-strong: #101014;
  --text: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-soft: #71717a;
  --line: rgba(244, 244, 245, 0.085);
  --line-strong: rgba(244, 244, 245, 0.19);
  --accent: #a1a1aa;
  --accent-strong: #f4f4f5;
  --accent-soft: rgba(244, 244, 245, 0.045);
  --accent-soft-hover: rgba(244, 244, 245, 0.085);
  --code-bg: #121216;
  --badge-new-bg: rgba(244, 244, 245, 0.07);
  --badge-new-border: rgba(244, 244, 245, 0.16);

  --paper-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  --panel-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

button {
  font: inherit;
}

/* ==========================================================================
   Floating Dock Header (Shared UI Language with blog.yunzinan.top)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 16px 0;
  pointer-events: none;
}

.site-dock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(var(--page-width), calc(100% - 8px));
  margin: 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.site-nav a,
.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  color: var(--text-muted);
  line-height: 1.1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a {
  gap: 5px;
  padding: 8px 13px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 450;
}

.site-nav a .nav-ext-icon {
  width: 12px;
  height: 12px;
  opacity: 0.62;
}

.site-nav a.active,
.site-nav a:hover {
  border-color: var(--line);
  background: var(--accent-soft);
  color: var(--text);
}

.site-actions {
  position: absolute;
  top: 50%;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  transform: translateY(-50%);
}

.theme-switch {
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  cursor: pointer;
}

.theme-switch:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--panel-shadow);
}

.theme-icon-svg {
  width: 15px;
  height: 15px;
  color: var(--accent-strong);
}

:root:not([data-theme="dark"]) .theme-icon-dark {
  display: none;
}

:root[data-theme="dark"] .theme-icon-light {
  display: none;
}

.theme-switch-title,
.theme-switch-value {
  font-family: var(--font-mono);
}

.theme-switch-title {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-switch-value {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ==========================================================================
   Main Container & Section Framing
   ========================================================================== */

.site-main {
  display: grid;
  gap: 54px;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 76px;
}

.tech-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--panel-shadow);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.tech-card:hover {
  border-color: var(--line-strong);
}

.section-block {
  display: grid;
  gap: 18px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Hero Profile + Bio + Education & Exchange
   ========================================================================== */

.hero-profile {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 96px;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 22px 18px;
}

.profile-avatar {
  width: min(100%, 188px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.profile-name {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-size: 1.56rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.profile-role {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.profile-affiliation {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-affiliation:hover {
  color: var(--text-muted);
}

.profile-motto {
  max-width: 210px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.48;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.profile-links a,
.profile-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.profile-links a:hover,
.profile-links button:hover {
  transform: translateY(-1.5px);
  border-color: var(--line-strong);
  background: var(--accent-soft-hover);
}

.profile-links svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.profile-links svg.brand-mark {
  width: 15.5px;
  height: 15.5px;
}

.profile-links svg.brand-mark-x {
  width: 14px;
  height: 14px;
}

.pub-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.82;
}

.hero-right {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.bio-card {
  padding: 26px 28px;
}

.card-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.bio-prose {
  display: grid;
  gap: 12px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.72;
}

.bio-prose p {
  margin: 0;
}

.bio-prose a,
.inline-link {
  color: var(--accent-strong);
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bio-prose a:hover,
.inline-link:hover {
  text-decoration-color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 18px;
}

.detail-card {
  padding: 22px 24px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interest-tags li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.edu-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.edu-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.edu-item svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--text-muted);
  stroke-width: 1.9;
}

.edu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
}

.edu-head strong {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-soft);
}

.edu-inst {
  display: block;
  margin-top: 2px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: middle;
}

/* ==========================================================================
   News / Updates Section (Inspired by mayankm96.github.io)
   ========================================================================== */

.news-card {
  padding: 20px 24px;
}

.news-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:first-child {
  padding-top: 2px;
}

.news-item:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.news-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  margin-right: 7px;
  padding: 2px 7px;
  border: 1px solid var(--badge-new-border);
  border-radius: 999px;
  background: var(--badge-new-bg);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  vertical-align: 1px;
}

/* ==========================================================================
   Selected Publications (Left Media / Right Metadata + Inline Abs/BibTeX)
   ========================================================================== */

.pub-list {
  display: grid;
  gap: 20px;
}

.pub-card {
  display: grid;
  grid-template-columns: minmax(270px, 38%) minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  align-items: start;
}

.pub-media-col {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pub-media-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  aspect-ratio: 960 / 624;
}

.pub-media-pane {
  width: 100%;
  height: 100%;
}

.pub-media-pane[hidden] {
  display: none;
}

.pub-media-pane video,
.pub-media-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-media-pane.contain img {
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
  cursor: zoom-in;
}

.pub-media-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.media-tab-group {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
}

.media-tab {
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.media-tab.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.media-zoom-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-soft);
}

.pub-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pub-venue-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pub-venue-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.pub-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pub-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--text);
}

.pub-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pub-authors {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pub-authors .author-self {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.pub-tldr {
  margin: 2px 0 0;
  font-size: 0.89rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.pub-btn:hover,
.pub-btn[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--accent-soft-hover);
}

.pub-btn[aria-expanded="true"] {
  border-color: var(--text);
}

.pub-drawer {
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--code-bg);
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.pub-drawer[hidden] {
  display: none;
}

.pub-drawer p {
  margin: 0;
}

.pub-drawer p + p {
  margin-top: 8px;
}

.bibtex-wrap {
  position: relative;
}

.bibtex-copy {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.bibtex-copy:hover {
  border-color: var(--line-strong);
}

.bibtex-wrap pre {
  margin: 0;
  padding-right: 68px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text);
}

/* ==========================================================================
   Selected Projects
   ========================================================================== */

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 22px;
  align-items: center;
}

.project-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 3 / 2;
  background: var(--code-bg);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.025);
}

.project-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.project-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.project-desc {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.64;
}

.project-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.tech-tag {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Visitor Map + Footer & Copy Toast & Lightbox
   ========================================================================== */

.visitor-map-section {
  display: grid;
  justify-items: center;
  padding-top: 6px;
}

.visitor-map-frame {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.visitor-map-frame:hover {
  transform: translateY(-1.5px);
  border-color: var(--line-strong);
}

.visitor-map-frame a {
  display: block;
  width: 180px;
  aspect-ratio: 30 / 19;
}

.visitor-map-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.copy-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: var(--paper-shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(10px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox-figure {
  display: grid;
  gap: 12px;
  max-width: min(100%, 1320px);
  margin: 0;
  justify-items: center;
}

.image-lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.image-lightbox-caption {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  text-align: center;
}

.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.74);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 920px) and (min-width: 681px) {
  .site-dock {
    justify-content: space-between;
  }

  .site-actions {
    position: static;
    transform: none;
  }

  .hero-profile {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 18px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pub-card {
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .project-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 12px 0;
  }

  .site-dock {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    border-radius: 18px;
    padding: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .site-actions {
    position: static;
    justify-content: flex-start;
    transform: none;
  }

  .hero-profile,
  .detail-grid,
  .pub-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .bio-card,
  .detail-card,
  .pub-card,
  .project-card {
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .site-main {
    width: calc(100% - 24px);
    gap: 42px;
    padding-top: 24px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
  }
}
