/* ===================================
   CSS Variables & Theme
   =================================== */
:root {
  --bg-color: #161616;
  --surface-color: #1e1e1e;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-dim: #555555;

  --accent-color: #28c840;
  --accent-hover: #33d44d;
  --accent-soft: rgba(40, 200, 64, 0.08);

  --border-color: #2a2a2a;
  --border-active: #404040;

  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  --container-width: 960px;

  --transition-fast: 0.1s ease;
  --transition-smooth: 0.3s ease;
}

/* Light Theme */
[data-theme="light"] {
  --bg-color: #fafafa;
  --surface-color: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-dim: #999999;

  --accent-color: #1a9e32;
  --accent-hover: #158a2a;
  --accent-soft: rgba(26, 158, 50, 0.08);

  --border-color: #e5e5e5;
  --border-active: #d4d4d4;
}

/* ===================================
   Theme Toggle Button
   =================================== */
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  margin-left: 1rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--text-dim);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ===================================
   Reset & Base
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--accent-color);
  color: var(--bg-color);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--border-active);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-accent {
  color: var(--accent-color);
}

.text-dim {
  color: var(--text-dim);
}

.text-secondary {
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
}

.sans {
  font-family: var(--font-sans);
}

/* ===================================
   Navbar
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(22, 22, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

[data-theme="light"] .navbar {
  background: rgba(250, 250, 250, 0.88);
}

.navbar-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 34px;
  height: 32px;
  flex-shrink: 0;
  line-height: 1;
}

.logo-alpha {
  display: block;
  width: 28px;
  height: 28px;
  overflow: visible;
}

.logo-alpha text {
  fill: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 390px;
  font-weight: 700;
}

.logo span {
  position: absolute;
  left: 24px;
  bottom: 8.7px;
  width: 3.5px;
  height: 3.5px;
  background: var(--accent-color);
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
}

.nav-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--accent-color);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  width: 24px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 8px;
}

.hamburger-line:nth-child(3) {
  top: 16px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ===================================
   Sub-page Content
   =================================== */
.page-content {
  padding-top: 100px;
  padding-bottom: 5rem;
  flex: 1;
  width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-top: 60px;
}

.hero-prompt {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.hero-ip {
  color: var(--accent-color);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  background-color: var(--accent-color);
  animation: blink 1s step-end infinite;
  vertical-align: baseline;
  margin-left: 0.1rem;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  max-width: 580px;
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  margin-left: 0;
  margin-right: 0;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-tagline span {
  color: var(--accent-color);
}

.hero-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.hero-socials a {
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
}

.hero-socials a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-socials svg {
  width: 20px;
  height: 20px;
}

/* ===================================
   Bash Command
   =================================== */
.bash-cmd {
  font-size: 0.95rem;
  color: var(--accent-color);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

/* ===================================
   Page Header
   =================================== */
.page-header {
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-desc {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ===================================
   Cards Grid
   =================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.card-label {
  font-size: 0.7rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.card-meta span {
  color: var(--accent-color);
}

.card-body {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===================================
   Section Block (about etc.)
   =================================== */
.about-block {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 100%;
}

.about-block p {
  margin-bottom: 1.15rem;
}

/* ===================================
   Skills Grid
   =================================== */
.skills-section {
  margin-bottom: 2.5rem;
}

.skills-section-title {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.skill-chip:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ===================================
   Timeline (Experiences)
   =================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 1.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.timeline-date {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding-top: 0.15rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.timeline-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  left: 120px;
  top: 1.65rem;
  transform: translateX(-50%);
  display: none;
  /* hidden for now, using grid */
}

.timeline-content {}

.timeline-role {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.timeline-org {
  font-size: 0.82rem;
  color: var(--accent-color);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.timeline-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.timeline-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.timeline-tags .skill-chip {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
}

/* ===================================
   Certs List
   =================================== */
.certs-list {
  display: flex;
  flex-direction: column;
}

.cert-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--border-color);
  align-items: start;
}

.cert-row:last-child {
  border-bottom: 1px solid var(--border-color);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
}

.cert-issuer-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent-color);
  opacity: 0.9;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--accent-color);
  font-family: var(--font-mono);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cert-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.cert-link-arrow {
  display: inline-block;
  font-size: 0.85em;
  transition: transform 0.15s ease;
}

.cert-link:hover .cert-link-arrow {
  transform: translate(1px, -1px);
}

.cert-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.35rem;
}

.cert-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  white-space: nowrap;
  padding-top: 0.15rem;
}

/* ===================================
   Projects List
   =================================== */
.projects-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: block;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
}

.project-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.project-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  transition: color 0.15s ease;
}

.project-name::after {
  content: ' \2197';
  font-size: 0.75em;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.project-item:hover .project-name {
  color: var(--accent-color);
}

.project-item:hover .project-name::after {
  color: var(--accent-color);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-color);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.project-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================
   Education Cards
   =================================== */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.edu-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.95rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.edu-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.edu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.edu-school {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.edu-duration {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.edu-degree {
  font-size: 0.82rem;
  color: var(--accent-color);
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}

.edu-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.edu-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.edu-tags .skill-chip {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
}

/* ===================================
   Contact
   =================================== */
.contact-prose {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 0;
  max-width: 720px;
}

.contact-prose a {
  color: var(--accent-color);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-prose a:hover {
  border-color: var(--accent-color);
}

/* ===================================
   Footer
   =================================== */
footer {
  padding: 2.5rem 0 1.5rem 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-terminal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}

.footer-bash-prompt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.footer-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: flex-start;
}

.footer-quicklink {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-quicklink:hover {
  border-bottom-color: var(--accent-color);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ===================================
   Page Quick-links Block (in main)
   =================================== */
.page-quicklinks {
  margin-top: 2rem;
}

/* ===================================
   Section Reveal Animation
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Section Separator
   =================================== */
.section-sep {
  height: 1px;
  background: var(--border-color);
  margin: 3rem 0;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .menu-toggle {
    display: block;
  }

  .theme-toggle {
    margin-left: auto;
    margin-right: 0.75rem;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 60px;
    right: 0;
    width: auto;
    min-width: 160px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 0.5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
    z-index: 999;
    pointer-events: none;
  }

  .mobile-nav.open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-nav-link {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.15s ease, background 0.15s ease;
  }

  .mobile-nav-link:hover {
    color: var(--accent-color);
    background: var(--surface-color);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .timeline-date {
    font-size: 0.72rem;
  }

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

  .cert-row {
    grid-template-columns: 1fr;
  }

  .cert-date {
    order: -1;
    margin-bottom: 0.2rem;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .bash-cmd {
    font-size: 0.85rem;
  }

  footer {
    margin-top: 2rem;
    padding: 2rem 1rem;
  }
}

/* ===================================
   Project Name Links
   =================================== */
a.project-name-link {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.2s ease;
}

a.project-name-link::after {
  content: ' ↗';
  font-size: 0.78em;
  opacity: 0;
  transition: opacity 0.2s ease;
}

a.project-name-link:hover {
  color: var(--accent-color);
}

a.project-name-link:hover::after {
  opacity: 1;
}

/* ===================================
   Publications List & Cards
   =================================== */
.pubs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pub-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.pub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.pub-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-color);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.pub-authors {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.pub-author-me {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-color);
}

.pub-venue {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.pub-abstract {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

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

.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-color);
  background: transparent;
  border: 1px solid var(--accent-color);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pub-btn:hover {
  background: var(--accent-color);
  color: var(--bg-color);
}

.pub-btn-secondary {
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.pub-btn-secondary:hover {
  background: var(--surface-color);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}