/* LMO Portal - Navy Blue Theme */
:root {
  --rust-primary: #4F729F;
  --rust-primary-dark: #354F6E;
  --rust-primary-light: #6B8FB8;
  --rust-primary-pale: #E4ECF4;
  --rust-accent: #4A6FA5;
  --rust-hero-start: #4A6FA5;
  --rust-hero-end: #354F6E;
  --rust-notice: #354F6E;
  --rust-text: #333333;
  --rust-text-light: #666666;
  --rust-border: #C8D4E3;
  --rust-white: #FFFFFF;
  --rust-gray-bg: #F0F4F8;
  --rust-footer-bg: #2C3E50;
}

.rust-portal {
  --theme-default: var(--rust-primary);
  --theme-secondary: var(--rust-primary-light);
  --bs-primary: var(--rust-primary);
  --bs-primary-rgb: 79, 114, 159;
  --bs-link-color: var(--rust-primary-dark);
  --bs-link-hover-color: var(--rust-primary);
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body.rust-portal {
  font-family: 'Outfit', 'Noto Sans KR', sans-serif !important;
  color: var(--rust-text);
  background: var(--rust-white);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Mofi/Bootstrap accent → light blue */
.rust-portal .btn-primary,
.rust-portal .btn-primary:active,
.rust-portal .btn-primary:focus {
  background-color: var(--rust-primary) !important;
  border-color: var(--rust-primary) !important;
  color: #fff !important;
}
.rust-portal .btn-primary:hover {
  background-color: var(--rust-primary-dark) !important;
  border-color: var(--rust-primary-dark) !important;
  color: #fff !important;
}
.rust-portal .btn-outline-primary {
  color: var(--rust-primary-dark) !important;
  border-color: var(--rust-primary-light) !important;
}
.rust-portal .btn-outline-primary:hover,
.rust-portal .btn-outline-primary:focus {
  background-color: var(--rust-primary-pale) !important;
  border-color: var(--rust-primary) !important;
  color: var(--rust-primary-dark) !important;
}
.rust-portal .form-check-input:checked {
  background-color: var(--rust-primary) !important;
  border-color: var(--rust-primary) !important;
}
.rust-portal .progress-bar {
  background-color: var(--rust-primary) !important;
}
.rust-portal .text-primary {
  color: var(--rust-primary-dark) !important;
}
.rust-portal .bg-primary {
  background-color: var(--rust-primary) !important;
}
.rust-portal .border-primary {
  border-color: var(--rust-primary-light) !important;
}
.rust-portal .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 114, 159, 0.25);
}

.rust-page-body {
  flex: 0 1 auto;
  width: 100%;
  min-height: auto;
  position: relative;
  z-index: 1;
}

.rust-header {
  flex-shrink: 0;
  background: var(--rust-white);
  border-bottom: 2px solid var(--rust-primary);
  position: relative;
  z-index: 9000;
  overflow: visible !important;
}

.rust-partners {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.rust-footer {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Tap to top */
.rust-tap-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  max-width: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rust-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8000;
  box-shadow: 0 4px 12px rgba(61, 90, 128, 0.35);
  transition: background 0.2s, opacity 0.2s;
}
.rust-tap-top.is-visible { display: flex; }
.rust-tap-top:hover { background: var(--rust-primary-dark); }
.rust-tap-top svg { width: 20px; height: 20px; }

/* Header utility links (logo row, right aligned) */
.rust-header-utility {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 13px;
}
.rust-header-utility a {
  color: var(--rust-text-light);
  text-decoration: none;
  margin-left: 16px;
}
.rust-header-utility a:hover { color: var(--rust-primary); }
.rust-user-name { color: var(--rust-primary-dark); font-weight: 500; margin-right: 12px; }

/* Layout - content centered, backgrounds full width */
.rust-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.rust-fullbleed {
  width: 100%;
}

.rust-header .rust-container {
  overflow: visible !important;
}

.rust-header-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
  border-bottom: none;
}
.rust-header-top::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--rust-border);
  pointer-events: none;
}

.rust-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--rust-primary-dark);
}
.rust-logo-img {
  height: 44px;
  width: auto;
}
.rust-logo-text-wrap { line-height: 1.3; }
.rust-logo-text { font-size: 18px; font-weight: 700; display: block; color: var(--rust-primary-dark); }
.rust-logo-sub { font-size: 11px; color: var(--rust-text-light); display: block; }

/* Mobile hamburger toggle */
.rust-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--rust-border);
  border-radius: 6px;
  background: var(--rust-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.rust-nav-toggle:hover,
.rust-nav-toggle:focus-visible {
  border-color: var(--rust-primary);
  background: var(--rust-primary-pale);
  outline: none;
}
.rust-nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rust-primary-dark);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.rust-nav-toggle[aria-expanded="true"] .rust-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rust-nav-toggle[aria-expanded="true"] .rust-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.rust-nav-toggle[aria-expanded="true"] .rust-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.rust-nav-mobile-open {
  overflow: hidden;
}

/* GNB - full width bg, content max 1320px */
.rust-nav-area {
  position: relative;
  width: 100%;
  background: var(--rust-white);
  overflow: visible;
}

.rust-nav-inner {
  position: relative;
}

.rust-gnb-bar {
  position: relative;
  width: 100%;
  z-index: 2;
}

.rust-gnb {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.rust-gnb-item {
  position: relative;
  min-width: 0;
  text-align: center;
  list-style: none !important;
}

.rust-gnb-link {
  display: block;
  padding: 16px 8px;
  color: var(--rust-text) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.rust-nav-area.is-open .rust-gnb-item.is-active {
  background: var(--rust-primary-pale);
}

.rust-nav-area.is-open .rust-gnb-item.is-active > .rust-gnb-link {
  color: var(--rust-primary) !important;
  background: transparent;
  border-bottom-color: var(--rust-primary-light);
  font-weight: 600;
  position: relative;
  z-index: 11;
  margin-bottom: -2px;
}

@media (min-width: 992px) {
  .rust-nav-area.is-open .rust-gnb-item:hover > .rust-gnb-link {
    color: var(--rust-primary) !important;
    border-bottom-color: var(--rust-primary-light);
    margin-bottom: -2px;
    position: relative;
    z-index: 11;
  }
}

.rust-nav-area.is-open .rust-mega-panel {
  display: block !important;
  margin-top: 0;
}

/* Mega panel - overlay layer (does not push page content) */
.rust-mega-panel {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  background: var(--rust-white);
  border-top: 1px solid var(--rust-border);
  border-bottom: 2px solid var(--rust-primary);
  box-shadow: none;
  z-index: 10;
  overflow: visible;
}

.rust-mega-panel-inner {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
  border-top: none;
}

.rust-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  align-items: stretch;
  position: relative;
  overflow: visible;
}

.rust-mega-col {
  min-width: 0;
  background: var(--rust-white);
  transition: background 0.15s;
  overflow: visible;
  border-left: 1px solid #cdd5df;
}

.rust-mega-col:last-child {
  border-right: 1px solid #cdd5df;
}

.rust-mega-col--home {
  min-height: 1px;
  pointer-events: none;
}

.rust-mega-col.is-active {
  background: var(--rust-white);
}

.rust-mega-col-title {
  display: none;
}

/* Mobile nav utility (hidden on desktop) */
.rust-nav-mobile-utility {
  display: none;
}

.rust-mega-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 14px 0 !important;
}

.rust-mega-col ul li a {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--rust-text-light) !important;
  text-decoration: none !important;
  line-height: 1.4;
  transition: color 0.15s, background 0.15s;
}

.rust-mega-col ul li a:hover {
  color: var(--rust-primary-dark) !important;
  background: var(--rust-primary-pale);
}

/* Hero + Search Zone */
.rust-hero-zone {
  background: linear-gradient(135deg, var(--rust-hero-start) 0%, var(--rust-hero-end) 100%);
  position: relative;
  overflow: hidden;
  color: white;
  padding: 32px 0 28px;
}
.rust-hero-zone::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}
.rust-hero-zone > .rust-container {
  position: relative;
  z-index: 1;
}
.rust-hero-intro {
  margin-bottom: 24px;
}
.rust-hero-intro-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.rust-hero-title {
  flex-shrink: 0;
}
.rust-hero-logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
}
.rust-hero-zone h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.rust-hero-zone h2 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.rust-hero-desc {
  flex: 1;
  min-width: 260px;
  font-size: 14px;
  line-height: 1.7;
  color: #ffffff;
  margin: 0;
  max-width: none;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  border-left: 3px solid rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Search Bar - inside hero zone */
.rust-hero-search {
  padding-top: 4px;
}
.rust-search-bar {
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 24px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.rust-search-bar select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--rust-text);
  padding-right: 12px;
  border-right: 1px solid var(--rust-border);
  margin-right: 12px;
  outline: none;
  cursor: pointer;
}
.rust-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  padding: 10px 0;
}
.rust-search-bar .btn-search {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rust-primary);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.rust-search-bar .btn-search:hover { background: var(--rust-primary-dark); }

/* Notice Ticker */
.rust-notice-bar {
  background: var(--rust-notice);
  color: white;
  padding: 12px 0;
  font-size: 14px;
}
.rust-notice-bar .notice-icon {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}
.rust-notice-bar a { color: white; text-decoration: none; }
.rust-notice-bar a:hover { text-decoration: underline; }

/* Main Content Panels */
.rust-main-section { padding: 40px 0 48px; }
.rust-main-section .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.rust-panel {
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--rust-white);
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}
.rust-panel-header {
  background: var(--rust-gray-bg);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--rust-text);
  border-bottom: 1px solid var(--rust-border);
  flex-shrink: 0;
}

/* Omics Stat Cards (Top Row) */
.rust-omics-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  flex-shrink: 0;
}
.rust-omics-stat {
  text-align: center;
  padding: 20px 10px;
  border-right: 1px solid var(--rust-border);
  background: white;
  box-sizing: border-box;
}
.rust-omics-stat:last-child { border-right: none; }
.rust-omics-stat .stat-icon {
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  background: var(--rust-primary-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rust-primary);
}
.rust-omics-stat .stat-label { font-size: 13px; color: var(--rust-text-light); margin-bottom: 4px; }
.rust-omics-stat .stat-value { font-size: 20px; font-weight: 700; color: var(--rust-primary-dark); }

/* Omics Feature Tiles (2x2) */
.rust-omics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(96px, 1fr) minmax(96px, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rust-border);
  box-sizing: border-box;
}
.rust-panel-status .rust-omics-grid {
  flex: 1;
  align-self: stretch;
}
.rust-omics-tile {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  min-height: 96px;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
}
.rust-omics-tile:nth-child(1) { background: var(--rust-primary-dark); }
.rust-omics-tile:nth-child(2) { background: var(--rust-primary); }
.rust-omics-tile:nth-child(3) { background: var(--rust-primary-light); }
.rust-omics-tile:nth-child(4) { background: var(--rust-accent); }
.rust-omics-tile .tile-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rust-omics-tile .tile-label { font-size: 13px; opacity: 0.85; margin-bottom: 2px; }
.rust-omics-tile .tile-value { font-size: 26px; font-weight: 700; }

/* Notice List */
.rust-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.rust-notice-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid var(--rust-border);
  font-size: 14px;
}
.rust-notice-list li:last-child { border-bottom: none; }
.rust-notice-list li a {
  color: var(--rust-text);
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rust-notice-list li a:hover { color: var(--rust-primary); }
.rust-notice-list li .notice-date {
  color: var(--rust-text-light);
  font-size: 13px;
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}

/* Genome Carousel Section */
.rust-genome-section {
  padding: 30px 0;
  background: var(--rust-gray-bg);
}
.rust-genome-header {
  display: inline-block;
  background: var(--rust-primary-dark);
  color: white;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}
.rust-genome-carousel-wrap {
  background: white;
  border: 1px solid var(--rust-border);
  padding: 24px 56px 14px;
  position: relative;
}
.rust-genome-carousel-track {
  position: relative;
}
.rust-genome-item {
  text-align: center;
  padding: 0 12px 4px;
}
.rust-genome-item .genome-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--rust-primary-pale);
  background: var(--rust-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.rust-genome-item .genome-img img,
.rust-genome-item .genome-img svg {
  width: 52px;
  height: 52px;
  display: block;
}
.rust-genome-item .genome-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--rust-text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.rust-genome-item .genome-code {
  font-size: 12px;
  color: var(--rust-text-light);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Partner Logos */
.rust-partners {
  padding: 0 0 28px;
  background: var(--rust-gray-bg);
}
.rust-partners-box {
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-top: none;
  padding: 15px 16px;
}
.rust-partners-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rust-partners-inner .partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 11px 8px;
  flex: 1 1 0;
  min-width: 0;
  height: 60px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rust-partners-inner .partner-item:hover {
  border-color: var(--rust-primary-light);
  box-shadow: 0 2px 6px rgba(61, 90, 128, 0.1);
}
.rust-partners .partner-logo {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-size: 12px;
  color: var(--rust-text-light);
  text-align: center;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  background: white;
  font-weight: 500;
}

/* Footer */
.rust-footer {
  background: var(--rust-footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 30px 0;
  font-size: 13px;
  line-height: 1.8;
}
.rust-footer-logo-box {
  background: var(--rust-white);
  padding: 22px 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 112px;
}
.rust-footer-logo-img {
  height: 72px;
  width: auto;
  max-width: 100%;
  display: block;
}
.partner-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.partner-logo-img--banner {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.rust-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.rust-footer a:hover { color: white; }
.rust-footer-links { margin-top: 8px; }
.rust-footer-links a { margin-right: 16px; }

/* Notice Board */
.rust-board-section { padding: 36px 0 48px; background: var(--rust-gray-bg); min-height: 480px; }
.rust-intro-section { min-height: auto; }

.rust-intro-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
}
.rust-intro-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--rust-primary-dark);
  text-decoration: none;
  border: 1px solid var(--rust-border);
  border-radius: 20px;
  background: var(--rust-gray-bg);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.rust-intro-nav a:hover {
  background: var(--rust-primary-pale);
  border-color: var(--rust-primary-light);
  color: var(--rust-primary);
}
.rust-intro-panel {
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 28px 32px;
}
.rust-intro-block {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rust-border);
}
.rust-intro-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.rust-intro-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--rust-primary-dark);
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--rust-primary);
}
.rust-intro-block h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--rust-primary-dark);
  margin: 18px 0 10px;
}
.rust-intro-block p,
.rust-intro-block li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--rust-text);
}
.rust-intro-block ul {
  padding-left: 1.4rem;
  margin: 10px 0 0;
}
.rust-intro-compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.rust-intro-compare-item {
  padding: 16px 18px;
  background: var(--rust-gray-bg);
  border: 1px solid var(--rust-border);
  border-radius: 4px;
}
.rust-intro-compare-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.rust-intro-compare-item p { margin: 0 0 6px; }
.rust-intro-example {
  font-size: 13px !important;
  color: var(--rust-text-light) !important;
}
.rust-intro-table-wrap { overflow-x: auto; margin: 16px 0; }
.rust-intro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rust-intro-table th,
.rust-intro-table td {
  border: 1px solid var(--rust-border);
  padding: 10px 12px;
  text-align: left;
}
.rust-intro-table th {
  background: var(--rust-primary-pale);
  color: var(--rust-primary-dark);
  font-weight: 600;
}
.rust-intro-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.rust-intro-feature {
  padding: 16px 18px;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  background: var(--rust-gray-bg);
}
.rust-intro-feature strong {
  display: block;
  font-size: 15px;
  color: var(--rust-primary-dark);
  margin-bottom: 6px;
}
.rust-intro-feature span {
  font-size: 13px;
  color: var(--rust-text-light);
  line-height: 1.6;
}
.rust-intro-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rust-intro-links li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--rust-border);
}
.rust-intro-links li:last-child { border-bottom: none; }
.rust-intro-links a {
  color: var(--rust-primary);
  text-decoration: none;
}
.rust-intro-links a:hover { text-decoration: underline; }
.rust-intro-source {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rust-border);
  font-size: 13px !important;
  color: var(--rust-text-light) !important;
}
.rust-intro-source a { color: var(--rust-primary); }

@media (max-width: 767px) {
  .rust-intro-panel { padding: 20px 16px; }
  .rust-intro-compare,
  .rust-intro-features { grid-template-columns: 1fr; }
}

.rust-board-header { margin-bottom: 24px; }
.rust-board-top { margin-bottom: 16px; }
.rust-board-title { font-size: 24px; font-weight: 700; color: var(--rust-primary-dark); margin: 0 0 6px; }
.rust-board-desc { color: var(--rust-text-light); margin: 0; font-size: 14px; }
.rust-board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rust-board-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.rust-board-search input {
  min-width: 240px;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}
.rust-board-panel {
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-radius: 10px;
  overflow: visible;
}
.rust-board-table { width: 100%; border-collapse: collapse; }
.rust-board-table th,
.rust-board-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rust-border);
  font-size: 14px;
}
.rust-board-table th {
  background: var(--rust-primary-pale);
  color: var(--rust-primary-dark);
  font-weight: 600;
  text-align: center;
}
.rust-board-table td.col-title { text-align: left; }
.rust-board-table td.col-title a {
  color: var(--rust-text);
  text-decoration: none;
}
.rust-board-table td.col-title a:hover { color: var(--rust-primary); text-decoration: underline; }
.rust-board-table .col-no { width: 80px; text-align: center; }
.rust-board-table .col-writer { width: 120px; text-align: center; }
.rust-board-table .col-date { width: 120px; text-align: center; }
.rust-board-table .col-view { width: 80px; text-align: center; }
.rust-board-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.rust-board-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  color: var(--rust-text);
  text-decoration: none;
  background: white;
  font-size: 14px;
}
.rust-board-pagination a.is-active,
.rust-board-pagination a:hover {
  background: var(--rust-primary);
  border-color: var(--rust-primary);
  color: white;
}
.rust-board-detail-head {
  padding: 24px;
  border-bottom: 1px solid var(--rust-border);
}
.rust-board-detail-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--rust-primary-dark);
  margin: 0 0 12px;
}
.rust-board-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--rust-text-light);
}
.rust-board-meta span {
  color: var(--rust-primary-dark);
  font-weight: 600;
  margin-right: 4px;
}
.rust-board-detail-body {
  padding: 28px 24px;
  min-height: 240px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
}
.rust-board-detail-actions {
  padding: 16px 24px 24px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--rust-border);
}
.rust-board-detail-actions form {
  display: flex;
  margin: 0;
}
.rust-board-form { padding: 24px; }
.btn-rust-primary,
.btn-rust-outline,
.btn-rust-danger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-rust-primary {
  background: var(--rust-primary);
  color: white;
  border-color: var(--rust-primary);
}
.btn-rust-primary:hover { background: var(--rust-primary-dark); border-color: var(--rust-primary-dark); color: white; }
.btn-rust-outline {
  background: white;
  color: var(--rust-primary-dark);
  border-color: var(--rust-border);
}
.btn-rust-outline:hover { border-color: var(--rust-primary); color: var(--rust-primary); }
.btn-rust-danger {
  background: #c0392b;
  color: white;
  border-color: #c0392b;
}
.btn-rust-danger:hover { background: #a93226; border-color: #a93226; color: white; }
.rust-board-detail-actions .btn,
.rust-board-form .btn {
  margin: 0;
}
.rust-panel-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--rust-primary);
  min-width: 96px;
  text-align: right;
  flex-shrink: 0;
  text-decoration: none;
}
.rust-panel-more:hover { text-decoration: underline; }
.rust-notice-empty {
  padding: 20px;
  text-align: center;
  color: var(--rust-text-light);
}

/* Login / Join */
.rust-auth-wrap {
  max-width: 440px;
  margin: 0 auto;
}
.rust-auth-section {
  padding: 32px 0 56px;
  background: var(--rust-gray-bg);
}
.rust-auth-panel {
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(61, 90, 128, 0.06);
}
.rust-auth-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--rust-primary-dark);
}
.rust-auth-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--rust-text-light);
}
.rust-auth-form .rust-form-field {
  margin-bottom: 16px;
}
.rust-auth-form .rust-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rust-text);
  margin-bottom: 6px;
}
.rust-auth-form .form-control {
  width: 100%;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  font-size: 14px;
  padding: 10px 12px;
}
.rust-auth-form .form-control:focus {
  border-color: var(--rust-primary);
  box-shadow: 0 0 0 3px rgba(91, 125, 177, 0.15);
}
.rust-auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  font-weight: 600;
  background: var(--rust-primary);
  border-color: var(--rust-primary);
}
.rust-auth-submit:hover {
  background: var(--rust-primary-dark);
  border-color: var(--rust-primary-dark);
}
.rust-auth-footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--rust-text-light);
}
.rust-auth-footer a {
  color: var(--rust-primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.rust-auth-footer a:hover {
  text-decoration: underline;
}
.rust-auth-message {
  min-height: 0;
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 8px;
}
.rust-auth-message--static {
  margin-bottom: 16px;
}
.rust-auth-form .rust-form-optional-note {
  margin: 0 0 16px;
}

.rust-admin-box {
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 16px;
  background: var(--rust-gray-bg);
  height: 100%;
}
.rust-admin-box h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--rust-primary-dark);
  margin: 0 0 12px;
}
.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.alert-danger {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #c0392b;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* CKEditor */
.rust-board-form .cke {
  border: 1px solid var(--rust-border) !important;
  border-radius: 4px;
  overflow: hidden;
}
.rust-board-form .cke_top {
  background: var(--rust-primary-pale) !important;
  border-bottom: 1px solid var(--rust-border) !important;
}
.rust-board-form .cke_bottom {
  background: var(--rust-gray-bg) !important;
  border-top: 1px solid var(--rust-border) !important;
}
.rust-board-form .cke_contents {
  font-family: 'Noto Sans KR', 'Outfit', sans-serif !important;
  font-size: 15px !important;
}
.rust-board-content-html {
  white-space: normal;
}
.rust-board-content-html p { margin-bottom: 0.75rem; }
.rust-board-content-html ul,
.rust-board-content-html ol { padding-left: 1.4rem; margin-bottom: 0.75rem; }
.rust-board-content-html table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.rust-board-content-html table td,
.rust-board-content-html table th {
  border: 1px solid var(--rust-border);
  padding: 8px 10px;
}
.rust-board-content-html a { color: var(--rust-primary); }

/* Board - mobile list layout */
@media (max-width: 767px) {
  .rust-board-section { padding: 20px 0 32px; }
  .rust-board-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "header write"
      "search search";
    gap: 10px 12px;
    margin-bottom: 14px;
  }
  .rust-board-header {
    grid-area: header;
    margin-bottom: 0;
  }
  .rust-board-title { font-size: 20px; margin-bottom: 4px; }
  .rust-board-desc { font-size: 13px; }
  .rust-board-toolbar {
    grid-area: search;
    display: contents;
    margin: 0;
  }
  .rust-board-search {
    grid-area: search;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .rust-board-search input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 10px 12px;
    font-size: 14px;
  }
  .rust-board-search .btn {
    flex-shrink: 0;
    padding: 10px 14px;
    white-space: nowrap;
  }
  .rust-board-write-btn {
    grid-area: write;
    align-self: start;
    margin-top: 2px;
    white-space: nowrap;
    padding: 7px 14px;
  }
  .rust-board-panel {
    border-radius: 8px;
    border-left: none;
    border-right: none;
  }
  .rust-board-table thead {
    display: none;
  }
  .rust-board-table,
  .rust-board-table tbody {
    display: block;
    width: 100%;
  }
  .rust-board-table tbody tr {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rust-border);
    position: relative;
  }
  .rust-board-table tbody tr:last-child {
    border-bottom: none;
  }
  .rust-board-table tbody tr::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--rust-text-light);
    border-bottom: 1.5px solid var(--rust-text-light);
    transform: translateY(-50%) rotate(-45deg);
    opacity: 0.45;
  }
  .rust-board-table tbody td {
    display: block;
    padding: 0;
    border: none;
    font-size: 13px;
  }
  .rust-board-table tbody td[colspan] {
    text-align: center;
    padding: 28px 16px;
    color: var(--rust-text-light);
  }
  .rust-board-table tbody td[colspan]::after {
    display: none;
  }
  .rust-board-table .col-no {
    display: none;
  }
  .rust-board-table .col-title {
    margin-bottom: 6px;
    padding-right: 18px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left !important;
  }
  .rust-board-table .col-title a {
    display: block;
    color: var(--rust-text);
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .rust-board-table .col-writer,
  .rust-board-table .col-date,
  .rust-board-table .col-view {
    display: inline;
    width: auto !important;
    font-size: 12px;
    color: var(--rust-text-light);
    text-align: left !important;
    font-variant-numeric: tabular-nums;
  }
  .rust-board-table .col-writer::after,
  .rust-board-table .col-date::after {
    content: '·';
    margin: 0 5px;
    color: #c5cdd8;
  }
  .rust-board-table .col-view::before {
    content: '조회 ';
  }
  .rust-board-pagination {
    flex-wrap: wrap;
    gap: 4px;
  }
  .rust-board-pagination a {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* Slick overrides - genome carousel */
.rust-genome-carousel.slick-dotted {
  padding-bottom: 0;
  margin-bottom: 0;
}

.rust-genome-carousel-dots {
  margin-top: 10px;
}

.rust-genome-carousel-dots .slick-dots {
  position: static;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rust-genome-carousel-dots .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
}

.rust-genome-carousel-dots .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
}

.rust-genome-carousel-dots .slick-dots li button:before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust-border);
  opacity: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.rust-genome-carousel-dots .slick-dots li.slick-active button:before {
  background: var(--rust-primary-dark);
  opacity: 1;
}

.rust-genome-carousel-track .slick-prev,
.rust-genome-carousel-track .slick-next {
  width: 38px;
  height: 38px;
  z-index: 2;
  top: calc(50% + 12px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rust-white);
  border: 1px solid var(--rust-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(61, 90, 128, 0.18);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rust-genome-carousel-track .slick-prev:before,
.rust-genome-carousel-track .slick-next:before {
  position: static;
  color: var(--rust-primary-dark);
  opacity: 1;
  font-size: 20px;
  line-height: 1;
}

.rust-genome-carousel-track .slick-prev:hover,
.rust-genome-carousel-track .slick-next:hover,
.rust-genome-carousel-track .slick-prev:focus,
.rust-genome-carousel-track .slick-next:focus {
  background: var(--rust-primary);
  border-color: var(--rust-primary);
  box-shadow: 0 3px 10px rgba(61, 90, 128, 0.28);
}

.rust-genome-carousel-track .slick-prev:hover:before,
.rust-genome-carousel-track .slick-next:hover:before,
.rust-genome-carousel-track .slick-prev:focus:before,
.rust-genome-carousel-track .slick-next:focus:before {
  color: var(--rust-white);
}

.rust-genome-carousel-track .slick-prev.slick-disabled,
.rust-genome-carousel-track .slick-next.slick-disabled {
  opacity: 0.45;
  cursor: default;
}

.rust-genome-carousel-track .slick-prev {
  left: 8px;
}

.rust-genome-carousel-track .slick-next {
  right: 8px;
}

/* Responsive */
@media (max-width: 991px) {
  .rust-nav-toggle { display: inline-flex; }

  .rust-header-top {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .rust-logo {
    flex: 1;
    min-width: 0;
  }
  .rust-logo-sub { display: none; }
  .rust-header-utility-desktop { display: none; }

  .rust-nav-mobile-utility {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: var(--rust-gray-bg);
    border-bottom: 1px solid var(--rust-border);
  }
  .rust-nav-mobile-utility .rust-user-name {
    flex: 1 1 100%;
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rust-primary-dark);
    background: var(--rust-primary-pale);
    border-bottom: 1px solid var(--rust-border);
    text-align: center;
  }
  .rust-nav-mobile-utility a {
    flex: 1 1 0;
    min-width: 0;
    padding: 13px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rust-text);
    text-decoration: none;
    text-align: center;
    border-right: 1px solid var(--rust-border);
    transition: background 0.2s, color 0.2s;
  }
  .rust-nav-mobile-utility a:last-child {
    border-right: none;
  }
  .rust-nav-mobile-utility a:hover,
  .rust-nav-mobile-utility a:focus-visible {
    background: var(--rust-white);
    color: var(--rust-primary);
    outline: none;
  }

  .rust-nav-area {
    display: none;
    border-top: 1px solid var(--rust-border);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rust-nav-area.is-mobile-open {
    display: block;
  }

  .rust-gnb {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    grid-template-columns: none;
  }
  .rust-gnb-item {
    flex: none;
    width: 100%;
    text-align: left;
  }
  .rust-gnb-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--rust-border);
    white-space: normal;
  }
  .rust-gnb-item.has-submenu > .rust-gnb-link::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--rust-text-light);
    border-bottom: 2px solid var(--rust-text-light);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
  }
  .rust-gnb-item.is-expanded > .rust-gnb-link {
    color: var(--rust-primary) !important;
    background: var(--rust-primary-pale);
    font-weight: 600;
    border-bottom: none;
  }
  .rust-gnb-item.is-expanded > .rust-gnb-link::after {
    transform: rotate(-135deg);
    border-color: var(--rust-primary);
  }
  .rust-gnb-item.is-expanded {
    border-bottom: 1px solid var(--rust-border);
  }

  .rust-nav-area .rust-nav-inner.rust-container {
    padding-left: 0;
    padding-right: 0;
  }

  .rust-gnb-submenu {
    display: none;
    background: var(--rust-white);
    padding: 8px 16px 12px;
    margin-left: 0;
    border-left: none;
  }
  .rust-gnb-item.is-expanded > .rust-gnb-submenu {
    display: block;
  }
  .rust-gnb-submenu .rust-mega-col {
    display: block;
    width: 100%;
    border-left: none;
    border-right: none;
    background: var(--rust-white);
  }

  .rust-gnb-submenu .rust-mega-col.is-mobile-visible {
    display: block;
    width: 100%;
  }

  .rust-mega-panel {
    display: none !important;
  }

  .rust-nav-area.is-open .rust-mega-panel {
    display: none !important;
  }

  .rust-gnb-submenu .rust-mega-grid {
    display: block;
    border-left: none;
    border-right: none;
  }

  .rust-mega-col ul {
    padding: 0 !important;
  }
  .rust-gnb-submenu .rust-mega-col ul li a {
    padding: 12px 20px 12px 36px;
    font-size: 14px;
    border-bottom: 1px solid var(--rust-border);
    display: block;
  }
  .rust-gnb-submenu .rust-mega-col ul li:last-child a {
    border-bottom: none;
  }

  .rust-logo-text { font-size: 15px; }
  .rust-logo-img { height: 36px; }
  .rust-omics-top { grid-template-columns: repeat(2, 1fr); }
  .rust-omics-stat:nth-child(2) { border-right: none; }
}
@media (max-width: 767px) {
  .rust-hero-zone { padding: 24px 0 20px; }
  .rust-hero-intro-row { flex-direction: column; align-items: flex-start; }
  .rust-hero-desc { width: 100%; }
  .rust-hero-zone h1 { font-size: 20px; }
  .rust-header-top { flex-wrap: nowrap; }

  .rust-search-bar {
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 8px;
    padding: 12px;
    align-items: center;
  }
  .rust-search-bar select {
    grid-column: 1 / -1;
    width: 100%;
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rust-border);
  }
  .rust-search-bar input {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 8px 0;
  }
  .rust-search-bar .btn-search {
    grid-column: 2;
    grid-row: 2;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    justify-self: end;
  }

  .rust-footer .col-md-9 {
    margin-top: 18px;
  }
  .rust-footer-logo-box {
    margin-bottom: 0;
  }

  .rust-omics-grid { grid-template-columns: 1fr 1fr; }
  .rust-omics-top { grid-template-columns: 1fr 1fr; }
  .rust-partners-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .rust-partners-inner .partner-item {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .rust-logo-text { font-size: 14px; }
}

/* Home hero */

/* Home hero */
.rust-home-hero {
  position: relative;
  min-height: 168px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rust-border);
  overflow: hidden;
  background: #1e3350;
}
.rust-home-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rust-home-hero-bg-agency {
  position: absolute; inset: 0;
  background-size: cover; background-position: center left;
  filter: saturate(0.9) brightness(0.75);
  transform: scale(1.03);
  pointer-events: none;
}
.rust-home-hero-bg-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(30, 51, 80, 0.92) 0%, rgba(30, 51, 80, 0.72) 42%, rgba(61, 90, 128, 0.45) 68%, rgba(91, 125, 177, 0.25) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.rust-home-hero-content { position: relative; z-index: 1; width: 100%; }
.rust-home-hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 168px;
}
.rust-home-hero-mosaic {
  flex-shrink: 0; margin-left: auto; width: 324px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 58px); gap: 6px; padding: 10px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
}
.rust-home-mosaic-tile {
  overflow: hidden; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.rust-home-mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rust-home-hero-box {
  max-width: 620px; margin: 20px 0; padding: 20px 24px;
  background: rgba(255, 255, 255, 0.94); border-radius: 10px;
  border-left: 4px solid var(--rust-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.rust-home-hero-title-row {
  --hero-title-size: 38px;
  display: flex; align-items: flex-end; gap: 16px; margin-bottom: 10px;
}
.rust-home-hero h1 {
  margin: 0; flex-shrink: 0;
  font-size: var(--hero-title-size); font-weight: 800; line-height: 1;
  color: var(--rust-primary-dark); letter-spacing: -0.02em;
}
.rust-home-hero-title-side {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-width: 0; height: calc(var(--hero-title-size) * 2 / 3);
  padding-left: 12px; border-left: 2px solid var(--rust-border); box-sizing: border-box;
}
.rust-home-hero-side-line { display: block; line-height: 1.25; padding: 0; margin: 0; }
.rust-home-hero-side-line--agency {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--rust-primary);
}
.rust-home-hero-side-line--sub { font-size: 13px; font-weight: 500; color: var(--rust-primary); }
.rust-home-hero-desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--rust-text-light); }

/* Home stats & charts */
.rust-home-section { padding: 28px 0 32px; background: var(--rust-gray-bg); }
.rust-home-stats { padding-top: 20px; padding-bottom: 4px; }
.rust-home-stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.rust-home-stat {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
  background: linear-gradient(135deg, var(--rust-primary) 0%, var(--rust-primary-dark) 100%);
  color: #fff; border-radius: 4px; padding: 10px 18px;
  min-height: 64px;
  box-shadow: 0 2px 8px rgba(61, 90, 128, 0.15);
}
.rust-home-stat-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 0;
}
.rust-home-stat-icon svg {
  width: 22px; height: 22px;
  stroke: rgba(255, 255, 255, 0.9);
}
.rust-home-stat-body { flex: 1; min-width: 0; text-align: right; }
.rust-home-stat-label {
  font-size: 13px; opacity: 0.9; margin-bottom: 2px; line-height: 1.3;
}
.rust-home-stat-value {
  font-size: 22px; font-weight: 700; line-height: 1.1; color: #fff;
}
.rust-home-charts { padding-top: 8px; padding-bottom: 16px; }
.rust-home-chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rust-chart-panel {
  background: var(--rust-white); border: 1px solid var(--rust-border);
  border-radius: 10px; padding: 16px; min-height: 400px;
}
.rust-chart-wrap { min-height: 360px; }
.rust-chart-empty { padding: 40px 16px; text-align: center; color: var(--rust-text-light); font-size: 14px; }

/* Mega menu tax slots */
.rust-mega-col-inner {
  padding: 16px 18px 18px;
  background: var(--rust-white);
  box-sizing: border-box;
}
.rust-mega-col--home .rust-mega-col-inner { min-height: 0; }
@media (min-width: 992px) {
  .rust-mega-panel .rust-mega-col--home .rust-mega-col-inner,
  .rust-mega-panel .rust-mega-col--fungi .rust-mega-col-inner,
  .rust-mega-panel .rust-mega-col--like .rust-mega-col-inner,
  .rust-mega-panel .rust-mega-col--mlsa .rust-mega-col-inner {
    min-height: 188px;
    position: relative;
  }
  .rust-mega-panel .rust-mega-col--mlsa .rust-mega-col-inner {
    display: flex; flex-direction: column; justify-content: flex-start;
  }
  .rust-mega-panel .rust-mega-col--mlsa .rust-mega-mlsa-list {
    gap: 10px; flex: 0 0 auto;
  }
  .rust-mega-panel .rust-mega-col--mlsa .rust-mega-mlsa-list li {
    flex: 0 0 auto; display: block;
  }
  .rust-mega-panel .rust-mega-col--mlsa .rust-mega-mlsa-list li a {
    width: 100%; min-height: 52px;
  }
}
.rust-mega-tax-slot { position: relative; min-width: 0; }
.rust-mega-tax-slot:hover { z-index: 20; }
.rust-mega-tax-stack { display: flex; flex-direction: column; gap: 6px; position: relative; }
.rust-mega-tax-item {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 56px; padding: 10px 14px; border: 1px solid var(--rust-border);
  border-radius: 8px; background: var(--rust-white); cursor: default;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}
.rust-mega-tax-item--compact { min-height: 52px; }
.rust-mega-tax-name-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.rust-mega-tax-name { font-size: 14px; font-weight: 600; color: var(--rust-primary-dark); }
.rust-mega-tax-soon-badge {
  display: inline-block;
  margin-left: auto;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--rust-primary-dark);
  background: var(--rust-primary-pale);
  border: 1px solid var(--rust-border);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rust-mega-tax-slot--soon .rust-mega-tax-item {
  background: #fafbfd;
  border-color: #dde4ec;
}
.rust-mega-tax-slot--soon:hover .rust-mega-tax-item {
  border-color: #cdd5df;
  background: #f5f8fb;
  box-shadow: none;
  transform: none;
}
.rust-mega-tax-en { font-size: 11px; color: var(--rust-text-light); letter-spacing: 0.02em; }
.rust-mega-tax-flyout { display: none; flex-direction: column; gap: 4px; }
.rust-mega-tax-flyout a {
  display: block; padding: 8px 12px; border: 1px solid var(--rust-border);
  border-radius: 6px; color: var(--rust-text) !important; text-decoration: none !important;
  font-size: 13px; background: var(--rust-white);
}
.rust-mega-tax-flyout--compact a { padding: 7px 10px; font-size: 12px; }
.rust-mega-tax-flyout a:hover {
  background: var(--rust-primary-pale); border-color: var(--rust-primary-light);
  color: var(--rust-primary-dark) !important;
}
.rust-mega-tax-flyout--overlay {
  position: absolute; top: 50%; left: 50%; right: auto;
  width: 220px; max-width: min(240px, 42vw); margin: 0; padding: 0; z-index: 30;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  flex-direction: column; gap: 6px;
}
@media (min-width: 992px) {
  .rust-mega-tax-flyout--overlay a {
    box-shadow: 0 4px 14px rgba(30, 51, 80, 0.12);
  }
}
.rust-mega-tax-slot:hover .rust-mega-tax-flyout--overlay { display: flex; }
.rust-mega-tax-slot:hover .rust-mega-tax-item {
  border-color: var(--rust-primary); background: var(--rust-primary-pale);
  box-shadow: 0 0 0 2px rgba(91, 125, 177, 0.28), 0 6px 18px rgba(61, 90, 128, 0.16);
  transform: none;
}
.rust-mega-tax-slot:hover .rust-mega-tax-name { color: var(--rust-primary-dark); }
.rust-mega-tax-item:hover {
  border-color: var(--rust-primary);
  box-shadow: 0 6px 16px rgba(61, 90, 128, 0.12);
  transform: translateY(-1px);
}

.rust-mega-tax-slot:hover .rust-mega-tax-item:hover {
  transform: none;
}
.rust-mega-tax-slot:hover .rust-mega-tax-item:hover { transform: none; }
.rust-mega-col .rust-mega-mlsa-list {
  list-style: none; margin: 0; padding: 0 !important;
  display: flex; flex-direction: column; gap: 8px;
}
.rust-mega-col .rust-mega-mlsa-list li a {
  display: flex; align-items: center;
  min-height: 52px; padding: 10px 14px; box-sizing: border-box;
  border: 1px solid var(--rust-border); border-radius: 8px;
  color: var(--rust-text) !important; text-decoration: none !important;
  font-size: 14px; font-weight: 500; background: var(--rust-white);
}
.rust-mega-col .rust-mega-mlsa-list li a:hover {
  background: var(--rust-primary-pale); border-color: var(--rust-primary-light);
  color: var(--rust-primary-dark) !important;
}

/* Resource list section */
.rust-list-section { padding: 20px 0 48px; background: var(--rust-gray-bg); }
.rust-about-breadcrumb { background: linear-gradient(135deg, var(--rust-hero-start) 0%, var(--rust-hero-end) 100%); padding: 10px 0; margin-bottom: 0; }
.rust-about-breadcrumb-text { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.92); }
.rust-about-breadcrumb-text a { color: #fff; text-decoration: none; }
.rust-about-breadcrumb-text a:hover { text-decoration: underline; }
.rust-about-breadcrumb-sep { margin: 0 8px; opacity: 0.75; }
.rust-about-section { padding: 28px 0 48px; background: var(--rust-gray-bg); }
.rust-about-cards { display: flex; flex-direction: column; gap: 20px; }
.rust-about-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(61, 90, 128, 0.07);
}
.rust-about-card--reverse { grid-template-columns: 300px minmax(0, 1fr); }
.rust-about-card--reverse .rust-about-card-body { order: 2; }
.rust-about-card--reverse .rust-about-card-media { order: 1; }
.rust-about-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rust-about-card-title {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--rust-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--rust-primary-dark);
  line-height: 1.35;
}
.rust-about-card-text { font-size: 14px; line-height: 1.8; color: var(--rust-text); }
.rust-about-card-text p { margin: 0 0 10px; }
.rust-about-card-text p:last-child { margin-bottom: 0; }
.rust-about-card-media {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  background: var(--rust-primary-pale);
  overflow: hidden;
}
.rust-about-card-media img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 991px) {
  .rust-about-card,
  .rust-about-card--reverse { grid-template-columns: 1fr; justify-items: center; }
  .rust-about-card--reverse .rust-about-card-body,
  .rust-about-card--reverse .rust-about-card-media { order: unset; }
}

/* Coming soon pages */
.rust-coming-soon-section { padding: 48px 0 64px; background: var(--rust-gray-bg); }
.rust-coming-soon-card {
  max-width: 640px; margin: 0 auto; padding: 40px 32px; text-align: center;
  background: var(--rust-white); border: 1px solid var(--rust-border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(61, 90, 128, 0.08);
}
.rust-coming-soon-badge {
  display: inline-block; margin-bottom: 16px; padding: 4px 12px;
  font-size: 12px; font-weight: 600; color: var(--rust-primary-dark);
  background: var(--rust-primary-pale); border-radius: 999px;
}
.rust-coming-soon-title { margin: 0 0 8px; font-size: 28px; font-weight: 700; color: var(--rust-primary-dark); }
.rust-coming-soon-en { margin: 0 0 16px; font-size: 16px; font-weight: 500; color: var(--rust-primary); }
.rust-coming-soon-desc { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--rust-text-light); }
.rust-coming-soon-back { min-width: 140px; }

/* Statistics page */
.rust-statistics-section {
  padding: 24px 0 48px;
  background: var(--rust-gray-bg);
}
.rust-statistics-head {
  margin-bottom: 20px;
}
.rust-statistics-head h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--rust-primary-dark);
}
.rust-statistics-head p {
  margin: 0;
  font-size: 14px;
  color: var(--rust-text-light);
}
.rust-statistics-stat-grid {
  margin-bottom: 20px;
}
.rust-statistics-chart-grid {
  margin-top: 0;
}

/* MLSA */
.rust-mlsa-section { padding: 20px 0 48px; background: var(--rust-gray-bg); }
.rust-mlsa-panel {
  background: var(--rust-white); border: 1px solid var(--rust-border);
  border-radius: 8px; padding: 24px; margin-top: 20px;
}
.rust-stepper { margin: 0; }
.rust-stepper-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative;
}
.rust-stepper-item {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 8px; z-index: 1;
}
.rust-stepper-item:not(:last-child)::after {
  content: ''; position: absolute; top: 18px; left: calc(50% + 18px);
  width: calc(100% - 36px); height: 3px; background: var(--rust-border); border-radius: 999px; z-index: 0;
}
.rust-stepper-item.is-done:not(:last-child)::after {
  background: linear-gradient(90deg, var(--rust-primary) 0%, var(--rust-primary-light) 100%);
}
.rust-stepper-node {
  position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rust-white); border: 2px solid var(--rust-border);
  box-shadow: 0 2px 6px rgba(61, 90, 128, 0.08);
}
.rust-stepper-num { font-size: 14px; font-weight: 700; color: var(--rust-text-light); }
.rust-stepper-label {
  margin-top: 10px; font-size: 12px; font-weight: 600; line-height: 1.35;
  color: var(--rust-text-light); max-width: 140px;
}
.rust-stepper-item.is-done .rust-stepper-node { border-color: var(--rust-primary); background: var(--rust-primary); }
.rust-stepper-item.is-done .rust-stepper-num { color: #fff; }
.rust-stepper-item.is-done .rust-stepper-label { color: var(--rust-primary-dark); }
.rust-stepper-item.is-current .rust-stepper-node {
  border-color: var(--rust-primary);
  background: linear-gradient(135deg, var(--rust-primary) 0%, var(--rust-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(61, 90, 128, 0.28);
}
.rust-stepper-item.is-current .rust-stepper-num { color: #fff; }
.rust-stepper-item.is-current .rust-stepper-label { color: var(--rust-primary-dark); font-weight: 700; }
.rust-mlsa-form .rust-form-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.rust-mlsa-form .rust-form-block-head {
  margin-bottom: 0;
}
.rust-mlsa-form .rust-form-field label {
  margin-bottom: 8px;
}
.rust-mlsa-form .rust-form-field .form-control,
.rust-mlsa-form .rust-form-field textarea {
  margin-top: 0;
}
.rust-mlsa-file-list-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px;
}
.rust-mlsa-subhead { margin: 0; font-size: 15px; font-weight: 700; color: var(--rust-primary-dark); }
.rust-mlsa-step2 .step2-file-card {
  border: 1px solid var(--rust-border); border-radius: 8px; margin-bottom: 12px; background: #fff; overflow: hidden;
}
.rust-mlsa-step2 .step2-file-head {
  padding: 10px 14px; background: var(--rust-primary-pale); border-bottom: 1px solid var(--rust-border);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.rust-mlsa-step2 .step2-read-row { padding: 10px 14px; border-bottom: 1px dashed var(--rust-border); }
.rust-mlsa-step2 .step2-read-row:last-child { border-bottom: none; }
.rust-mlsa-step2 .step2-badge-paired,
.rust-mlsa-step2 .step2-badge-single,
.rust-mlsa-step2 .step2-badge-gene,
.rust-mlsa-step2 .step2-badge-auto,
.rust-mlsa-step2 .step2-badge-fail,
.rust-mlsa-step2 .step2-badge-ok {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; color: #fff;
}
.rust-mlsa-step2 .step2-badge-paired { background: #0d6efd; }
.rust-mlsa-step2 .step2-badge-single { background: #6c757d; }
.rust-mlsa-step2 .step2-badge-gene { background: #198754; }
.rust-mlsa-step2 .step2-badge-auto { background: #6f42c1; }
.rust-mlsa-step2 .step2-badge-fail { background: #dc3545; }
.rust-mlsa-step2 .step2-badge-ok { background: #198754; }

/* Admin */
.rust-admin-section { padding: 20px 0 48px; background: var(--rust-gray-bg); }
.rust-admin-panel {
  background: var(--rust-white); border: 1px solid var(--rust-border);
  border-radius: 8px; padding: 24px; margin-top: 20px;
}
.rust-admin-panel-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rust-border);
}
.rust-admin-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--rust-primary-dark); }
.rust-admin-team { font-size: 13px; color: var(--rust-text-light); }
.rust-admin-tabs { border-bottom: 1px solid var(--rust-border); margin-bottom: 20px; gap: 4px; }
.rust-admin-tabs .nav-link {
  border: none; border-bottom: 2px solid transparent; border-radius: 0;
  color: var(--rust-text-light); font-size: 14px; font-weight: 600; padding: 10px 16px; margin-bottom: -1px;
}
.rust-admin-tabs .nav-link:hover { color: var(--rust-primary); border-color: transparent; }
.rust-admin-tabs .nav-link.active {
  color: var(--rust-primary-dark); background: transparent; border-bottom-color: var(--rust-primary);
}
.rust-admin-tabs .nav-link i { margin-right: 6px; }
.rust-admin-tab-content { padding-top: 4px; }
.rust-admin-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.rust-admin-badge--admin { background: #e8eef5; color: var(--rust-primary-dark); }
.rust-admin-badge--manager { background: #fdecea; color: #c0392b; }
.rust-admin-badge--ok { background: #e8f5e9; color: #2e7d32; }
.rust-admin-badge--req { background: #fff3e0; color: #e65100; }
.rust-admin-level-display {
  padding: 10px 12px; background: var(--rust-gray-bg);
  border: 1px solid var(--rust-border); border-radius: 4px; font-weight: 600; color: var(--rust-primary-dark);
}
.rust-admin-modal .modal-body {
  padding: 20px 24px;
}
.rust-admin-modal .rust-form-field {
  margin-bottom: 16px;
}
.rust-admin-modal .rust-form-grid {
  margin-bottom: 0;
}
.rust-admin-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rust-admin-modal-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.rust-admin-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 10px 12px;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  background: var(--rust-gray-bg);
}
.rust-admin-radio-group--wrap {
  gap: 10px 16px;
}
.rust-admin-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.rust-list-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 4px;
}
.rust-list-switch .form-check-input {
  width: 2.4em;
  height: 1.2em;
  margin: 0;
  cursor: pointer;
}
.rust-list-switch-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--rust-text);
  white-space: nowrap;
}
.rust-admin-section .rust-list-toolbar { margin-bottom: 16px; }
.rust-admin-section .rust-board-table .col-no { width: 72px; }

.rust-list-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end;
  justify-content: space-between; margin-bottom: 18px;
  padding: 14px 16px; background: var(--rust-white);
  border: 1px solid var(--rust-border); border-radius: 10px;
}
.rust-list-toolbar-left, .rust-list-toolbar-right {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end;
}
.rust-list-field label { display: block; font-size: 12px; font-weight: 600; color: var(--rust-text-light); margin-bottom: 4px; }
.rust-list-actions { display: flex; gap: 8px; align-items: center; }
.rust-list-meta {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--rust-text);
  border-bottom: 1px solid #cdd5df;
  background: var(--rust-white);
}
.rust-list-table-wrap { overflow-x: auto; }
.rust-board-table--resource .col-link,
.rust-board-table--gene .col-link { text-align: left; font-weight: 600; }
.rust-board-table--resource .col-order,
.rust-board-table--resource .col-family,
.rust-board-table--resource .col-disease,
.rust-board-table--gene .col-meta,
.rust-board-table--gene .col-len,
.rust-board-table--gene .col-gene-name { text-align: center; }
.rust-gene-chip {
  display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px;
  font-size: 11px; border-radius: 12px; background: var(--rust-primary-pale);
  color: var(--rust-primary-dark); border: 1px solid var(--rust-border);
}
.rust-list-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-top: 1px solid var(--rust-border);
}
.rust-list-pagination-row td { padding: 20px 16px !important; border-bottom: none !important; text-align: center; }
.rust-list-empty { text-align: center; padding: 48px 16px !important; color: var(--rust-text-light); }

/* === Rust list pagination theme (v20250701v) — remove this block to revert === */
.rust-list-section .pagination,
.rust-admin-section .pagination,
.rust-mlsa-section .pagination,
.rust-board-section .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rust-list-section .pagination .page-item,
.rust-admin-section .pagination .page-item,
.rust-mlsa-section .pagination .page-item,
.rust-board-section .pagination .page-item {
  margin: 0;
  list-style: none;
}
.rust-list-section .pagination .page-link,
.rust-admin-section .pagination .page-link,
.rust-mlsa-section .pagination .page-link,
.rust-board-section .pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid var(--rust-border) !important;
  border-radius: 4px !important;
  background: var(--rust-white) !important;
  color: var(--rust-text) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rust-list-section .pagination .page-item.active .page-link,
.rust-admin-section .pagination .page-item.active .page-link,
.rust-mlsa-section .pagination .page-item.active .page-link,
.rust-board-section .pagination .page-item.active .page-link,
.rust-list-section .pagination .page-link:hover,
.rust-admin-section .pagination .page-link:hover,
.rust-mlsa-section .pagination .page-link:hover,
.rust-board-section .pagination .page-link:hover,
.rust-list-section .pagination .page-link:focus-visible,
.rust-admin-section .pagination .page-link:focus-visible,
.rust-mlsa-section .pagination .page-link:focus-visible,
.rust-board-section .pagination .page-link:focus-visible {
  background: var(--rust-primary) !important;
  border-color: var(--rust-primary) !important;
  color: #fff !important;
  z-index: 1;
}
.rust-list-section .pagination .page-item.disabled .page-link,
.rust-admin-section .pagination .page-item.disabled .page-link,
.rust-mlsa-section .pagination .page-item.disabled .page-link,
.rust-board-section .pagination .page-item.disabled .page-link {
  background: var(--rust-gray-bg) !important;
  border-color: var(--rust-border) !important;
  color: var(--rust-text-light) !important;
  opacity: 0.7;
  pointer-events: none;
}
@media (max-width: 767px) {
  .rust-list-section .pagination,
  .rust-admin-section .pagination,
  .rust-mlsa-section .pagination,
  .rust-board-section .pagination {
    gap: 4px;
  }
  .rust-list-section .pagination .page-link,
  .rust-admin-section .pagination .page-link,
  .rust-mlsa-section .pagination .page-link,
  .rust-board-section .pagination .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}
/* === end pagination theme === */

.rust-list-section .rust-board-table th {
  border-bottom: 1px solid #cdd5df;
}
.rust-board-table--resource .col-link a,
.rust-board-table--gene .col-link a,
.rust-board-table .col-link a {
  color: var(--rust-text);
  text-decoration: none;
  font-weight: 600;
}
.rust-board-table--resource .col-link a:hover,
.rust-board-table--gene .col-link a:hover,
.rust-board-table .col-link a:hover {
  color: var(--rust-primary);
  text-decoration: underline;
}

/* Resource form + image upload */
.rust-resource-form-section { padding: 24px 0 48px; background: var(--rust-gray-bg); }
.rust-resource-form-panel {
  background: var(--rust-white);
  border: 1px solid var(--rust-border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 28px;
}
.rust-resource-form-panel:last-of-type {
  margin-bottom: 0;
}
.rust-resource-form-panel h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--rust-primary-dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rust-border);
}
.rust-resource-form-section .rust-form-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.rust-resource-form-section .rust-form-block {
  padding: 20px;
  margin-bottom: 0;
}
.rust-resource-form-section .rust-form-block:not(.rust-form-block--group) {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rust-resource-form-section .rust-form-block--group {
  padding: 0 20px 20px;
}
.rust-resource-form-section .rust-form-block--group .rust-form-block-head {
  margin: 0 -20px 20px;
}
.rust-resource-form-section .rust-form-basic-row {
  gap: 28px;
}
.rust-resource-form-section .rust-form-grid {
  gap: 18px 20px;
}
.rust-resource-form-section .rust-form-actions {
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rust-border);
}
.rust-resource-form-section .rust-form-panel-toolbar {
  margin-bottom: 20px;
  padding-bottom: 14px;
}
.rust-resource-form-section .rust-img-zones {
  gap: 20px;
  margin-top: 4px;
}
.rust-resource-form-section .rust-seq-form-list {
  gap: 16px;
}
.rust-resource-form-section .rust-form-field label {
  margin-bottom: 8px;
}
.rust-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rust-form-grid .rust-form-field--full { grid-column: 1 / -1; }
.rust-form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rust-text);
  margin-bottom: 6px;
}
.rust-form-field .form-control,
.rust-form-field .form-select,
.rust-form-field textarea {
  width: 100%;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  font-size: 14px;
  padding: 8px 12px;
}
.rust-form-field textarea { min-height: 100px; resize: vertical; }
.rust-img-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rust-img-zone {
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  background: var(--rust-gray-bg);
  overflow: hidden;
}
.rust-img-zone-head {
  padding: 10px 12px;
  background: var(--rust-primary-pale);
  border-bottom: 1px solid var(--rust-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--rust-primary-dark);
}
.rust-img-dropzone {
  position: relative;
  display: block;
  min-height: 140px;
  margin: 12px;
  padding: 20px 12px;
  border: 2px dashed var(--rust-primary-light);
  border-radius: 4px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.rust-img-file-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.rust-img-dropzone.is-dragover {
  border-color: var(--rust-primary);
  background: var(--rust-primary-pale);
}
.rust-img-dropzone-icon {
  display: block;
  font-size: 28px;
  color: var(--rust-primary-light);
  margin-bottom: 8px;
}
.rust-img-dropzone-text {
  font-size: 13px;
  color: var(--rust-text-light);
  line-height: 1.5;
}
.rust-img-upload-list { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; }
.rust-img-upload-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
}
.rust-img-upload-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--rust-border);
}
.rust-img-upload-item .form-control { font-size: 13px; }
.rust-img-upload-meta {
  font-size: 11px;
  color: var(--rust-text-light);
  margin-top: 4px;
  word-break: break-all;
}
.rust-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}
.rust-form-block {
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}
.rust-form-block:last-child { margin-bottom: 0; }
.rust-form-block--group { padding-top: 0; overflow: hidden; }
.rust-form-block-head {
  margin: 0 0 16px;
  padding: 10px 16px;
  background: var(--rust-primary-pale);
  color: var(--rust-primary-dark);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid var(--rust-border);
}
.rust-form-block--group .rust-form-block-head { margin: 0 -16px 16px; }
.rust-form-blocks { display: flex; flex-direction: column; gap: 0; }
.rust-form-optional-note { font-size: 12px; color: var(--rust-text-light); margin: 0 0 8px; }
.rust-form-panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rust-border);
}
.rust-form-panel-toolbar h3 { margin: 0; padding: 0; border: 0; }
.rust-seq-form-list { display: flex; flex-direction: column; gap: 14px; }
.rust-seq-form-item {
  border: 1px solid var(--rust-border);
  border-radius: 6px;
  padding: 14px;
  background: var(--rust-gray-bg);
}
.rust-seq-form-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.rust-seq-form-item-title { font-size: 14px; color: var(--rust-primary-dark); }
.rust-seq-length-note { margin-top: 6px; font-size: 12px; color: var(--rust-text-light); }
.rust-seq-length { font-weight: 700; color: var(--rust-primary); }
.rust-seq-form-empty { margin: 0; font-size: 13px; }
.rust-form-basic-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  align-items: start;
}
.rust-form-thumb-panel .rust-form-thumb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.rust-img-dropzone--thumb {
  min-height: 180px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
}
.rust-img-dropzone--thumb .rust-img-dropzone-body {
  display: block;
}
.rust-img-dropzone--thumb .rust-img-dropzone-text { font-size: 12px; }
.rust-thumb-preview {
  margin-top: 10px;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--rust-gray-bg);
}
.rust-thumb-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.rust-thumb-preview-actions { padding: 8px; text-align: right; }

/* Resource view */
.rust-resource-view-section { padding: 20px 0 48px; background: var(--rust-gray-bg); }
.rust-resource-view-panel {
  background: var(--rust-white); border: 1px solid var(--rust-border);
  border-radius: 10px; padding: 20px 24px;
}
.rust-species-title {
  font-size: 22px; font-weight: 700; color: var(--rust-primary-dark);
  margin: 0 0 16px; padding: 12px 16px;
  background: var(--rust-primary-pale); border-left: 4px solid var(--rust-primary); border-radius: 6px;
}
.rust-detail-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; table-layout: fixed; }
.rust-detail-table th, .rust-detail-table td {
  border: 1px solid var(--rust-border); padding: 10px 12px; font-size: 14px; vertical-align: top;
}
.rust-detail-label {
  width: 160px; min-width: 160px; background: var(--rust-gray-bg);
  font-weight: 600; color: var(--rust-primary-dark);
}
.rust-detail-value { word-break: break-word; }
.rust-detail-table--group .rust-detail-group-head {
  background: var(--rust-primary-pale);
  color: var(--rust-primary-dark);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rust-border);
}
.rust-resource-view-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  margin-bottom: 8px;
}
.rust-resource-view-thumb {
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--rust-gray-bg);
  min-height: 220px;
}
.rust-resource-view-thumb-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.rust-resource-view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rust-border);
}
.rust-resource-view-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rust-resource-view-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rust-border);
}
.rust-resource-view-footer .rust-resource-view-actions {
  justify-content: flex-end;
  margin-left: auto;
}
.rust-resource-view-footer > .btn,
.rust-resource-view-footer > .rustResourceDeleteOne {
  flex-shrink: 0;
}
.rust-seq-block {
  margin-top: 16px;
  border: 1px solid var(--rust-border);
  border-radius: 4px;
  overflow: hidden;
}
.rust-seq-block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--rust-primary-pale);
  border-bottom: 1px solid var(--rust-border);
}
.rust-seq-name { font-weight: 700; color: var(--rust-primary-dark); }
.rust-seq-meta { color: var(--rust-text-light); font-size: 13px; }
.rust-seq-block-body {
  padding: 12px 14px;
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
}

@media (max-width: 991px) {
  .rust-img-zones { grid-template-columns: 1fr; }
  .rust-form-grid { grid-template-columns: 1fr; }
  .rust-resource-view-top,
  .rust-form-basic-row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .rust-img-upload-item {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 10px 12px;
  }
  .rust-img-upload-item img {
    width: 64px;
    height: 64px;
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
  }
  .rust-img-upload-item > div {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }
  .rust-img-upload-item .form-control {
    width: 100%;
    min-width: 0;
  }
  .rust-img-upload-meta {
    margin-top: 6px;
    line-height: 1.35;
  }
  .rust-img-upload-item .btn {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 991px) {
  .rust-home-hero-inner { flex-direction: column; align-items: stretch; min-height: 0; gap: 12px; }
  .rust-home-hero-mosaic {
    width: 100%; max-width: none; margin-left: 0;
    grid-template-rows: repeat(2, 56px);
    padding: 10px;
  }
  .rust-home-hero-title-row { --hero-title-size: 28px; flex-wrap: wrap; gap: 10px; }
  .rust-home-hero-side-line--agency { font-size: 9px; }
  .rust-home-hero-side-line--sub { font-size: 11px; }
  .rust-home-hero-content.rust-container {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .rust-home-hero-box { margin: 0; padding: 18px 20px; max-width: none; }
  .rust-home-hero-desc { font-size: 12.5px; letter-spacing: -0.01em; }
  .rust-home-stat-grid { grid-template-columns: 1fr; }
  .rust-home-chart-grid { grid-template-columns: 1fr; }
  .rust-chart-panel { min-height: auto; }
  .rust-chart-wrap { min-height: 340px; height: auto; overflow: visible; }
  .rust-chart-wrap .apexcharts-legend {
    max-height: 150px !important; overflow-y: auto !important; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; padding-right: 4px;
  }
  .rust-gnb-submenu .rust-mega-col-inner { min-height: 0 !important; padding: 0; }
  .rust-gnb-submenu .rust-mega-col--fungi .rust-mega-col-inner,
  .rust-gnb-submenu .rust-mega-col--like .rust-mega-col-inner {
    min-height: 0 !important;
  }
  .rust-gnb-submenu .rust-mega-col--fungi .rust-mega-tax-slot,
  .rust-gnb-submenu .rust-mega-tax-stack .rust-mega-tax-slot {
    margin: 0 0 6px;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
  .rust-gnb-submenu .rust-mega-tax-slot { position: relative; min-width: 0; }
  .rust-gnb-submenu .rust-mega-tax-stack {
    gap: 6px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }
  .rust-gnb-submenu .rust-mega-tax-item {
    margin: 0;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--rust-border);
    border-radius: 8px;
    box-shadow: none;
    transform: none;
    background: var(--rust-white);
  }
  .rust-gnb-submenu .rust-mega-tax-slot.is-mobile-expanded .rust-mega-tax-item {
    border-color: var(--rust-primary);
    background: var(--rust-primary-pale);
    box-shadow: inset 0 0 0 1px var(--rust-primary);
  }
  .rust-gnb-submenu .rust-mega-tax-flyout--overlay {
    display: none !important;
    position: static;
    width: calc(100% - 15px);
    max-width: none;
    margin: 2px 0 0 15px;
    padding: 0;
    box-shadow: none;
    gap: 0;
    border: 1px solid var(--rust-border);
    border-radius: 8px;
    background: var(--rust-white);
    overflow: hidden;
  }
  .rust-gnb-submenu .rust-mega-tax-slot.is-mobile-expanded .rust-mega-tax-flyout--overlay {
    display: flex !important;
    flex-direction: column;
  }
  .rust-gnb-submenu .rust-mega-tax-flyout--overlay a {
    margin: 0;
    padding: 11px 14px;
    border: none;
    border-bottom: 1px solid var(--rust-border);
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--rust-text) !important;
  }
  .rust-gnb-submenu .rust-mega-tax-flyout--overlay a:last-child {
    border-bottom: none;
  }
  .rust-gnb-submenu .rust-mega-tax-flyout--overlay a:hover,
  .rust-gnb-submenu .rust-mega-tax-flyout--overlay a:focus-visible {
    background: var(--rust-primary-pale);
    color: var(--rust-primary-dark) !important;
  }
  .rust-gnb-submenu .rust-mega-mlsa-list {
    gap: 6px;
    padding: 0;
  }
  .rust-gnb-submenu .rust-mega-mlsa-list li a {
    margin: 0;
    border-radius: 8px;
    border: 1px solid var(--rust-border);
    min-height: 48px;
    padding: 11px 14px 11px 18px;
    box-shadow: none;
    transform: none;
    font-weight: 500;
    background: var(--rust-white);
  }
  .rust-resource-view-top, .rust-form-basic-row { grid-template-columns: 1fr; }
  .rust-detail-label { width: 130px; min-width: 130px; max-width: 130px; }
}

@media (max-width: 767px) {
  .rust-resource-view-section { padding: 12px 0 32px; }
  .rust-resource-view-panel { padding: 14px; border-radius: 10px; border-left: none; border-right: none; }
  .rust-species-title { font-size: 18px; padding: 10px 14px; margin-bottom: 14px; }
  .rust-resource-view-toolbar {
    flex-direction: column; align-items: stretch; gap: 10px;
    margin-bottom: 14px; padding-bottom: 10px;
  }
  .rust-resource-view-actions { justify-content: flex-end; }
  .rust-resource-view-thumb { min-height: 0; max-height: 220px; }
  .rust-resource-view-thumb-img {
    min-height: 0; max-height: 220px; object-fit: contain; background: #fff;
  }
  .rust-detail-table { display: block; table-layout: auto; margin-bottom: 12px; border-radius: 8px; overflow: hidden; }
  .rust-detail-table colgroup, .rust-detail-table thead { display: none; }
  .rust-detail-table tbody, .rust-detail-table tr { display: block; width: 100%; }
  .rust-detail-table:not(.rust-detail-table--group) tbody tr { border-bottom: 1px solid var(--rust-border); }
  .rust-detail-table:not(.rust-detail-table--group) tbody tr:last-child { border-bottom: none; }
  .rust-detail-table th, .rust-detail-table td {
    display: block; width: 100% !important; min-width: 0 !important; max-width: none !important;
    box-sizing: border-box; word-break: normal; overflow-wrap: anywhere;
  }
  .rust-detail-table:not(.rust-detail-table--group) th.rust-detail-label {
    border-bottom: none; padding: 10px 12px 4px; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.03em; background: var(--rust-primary-pale);
  }
  .rust-detail-table:not(.rust-detail-table--group) td {
    padding: 0 12px 12px; border-top: none; font-size: 14px; line-height: 1.55;
  }
  .rust-detail-table--group {
    border: 1px solid var(--rust-border); border-radius: 8px; overflow: hidden; margin-bottom: 12px;
  }
  .rust-detail-table--group .rust-detail-group-head {
    display: block; text-align: left; padding: 10px 12px; font-size: 13px;
    border-bottom: 1px solid var(--rust-border);
  }
  .rust-detail-table--group tbody th.rust-detail-label {
    padding: 10px 12px 4px; font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.03em; border-bottom: none; border-top: 1px solid var(--rust-border);
  }
  .rust-detail-table--group tbody td.rust-detail-value {
    padding: 0 12px 10px; border-top: none; font-size: 14px; line-height: 1.5;
  }
  .rust-detail-table--group tbody tr:first-child th.rust-detail-label:first-child { border-top: none; }
  .rust-resource-view-footer {
    margin-top: 20px;
    padding-top: 14px;
    gap: 10px;
  }
  .rust-seq-block-head { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
  .rust-seq-block-body { font-size: 11px; padding: 10px 12px; overflow-x: auto; }

  .rust-about-card-body { padding: 20px 18px; width: 100%; }
  .rust-about-card-media {
    width: 100%; height: auto; padding: 0 18px 20px;
    box-sizing: border-box; background: var(--rust-white);
  }
  .rust-about-card-media img {
    width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 4px;
  }
}

/* Modals — above header mega menu (z-index 9000) */
#seqModal,
#adminEditModal,
#publicDeleteModal {
  z-index: 10100 !important;
}
#seqModal.show,
#adminEditModal.show,
#publicDeleteModal.show {
  display: block !important;
}
body.modal-open .modal-backdrop {
  z-index: 10090 !important;
}

/* Modal open: html scrollbar-gutter already reserves space — do not add body padding */
html:has(body.modal-open) {
  overflow: hidden;
}
body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}
body.modal-open .rust-header,
body.modal-open .rust-tap-top {
  padding-right: 0 !important;
  margin-right: 0 !important;
}
