:root {
  --bg-main: #2c3e50;
  --bg-wall: #e7ebee;
  --bg-card: #f5f5dc;
  --accent-orange: #ff6b35;
  --accent-teal: #00b894;
  --status-red: #e74c3c;
  --status-green: #2ecc71;
  --status-blue: #3498db;
  --tag-purple: #9b59b6;
  --tag-yellow: #f1c40f;
  --text-dark: #2c3e50;
  --border-light: #bdc3c7;
  --white: #ffffff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-wall);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
}

h1 {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-teal);
}

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

:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 8px;
  z-index: 1100;
  background: var(--accent-orange);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
  outline: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-teal) 100%);
  z-index: 1200;
  pointer-events: none;
  transition: width 0.1s linear;
}

.site-header {
  background-color: var(--bg-main);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
  border-bottom: 4px solid var(--accent-orange);
}

.header-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 5px 16px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-coord {
  white-space: nowrap;
}

.topbar-meta {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.42);
}

.topbar-icp {
  white-space: nowrap;
}

.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  line-height: 1.1;
}

.brand-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: inherit;
}

.brand-year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--accent-teal);
}

.masthead-desc {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.nav-toggle:hover {
  border-color: var(--accent-orange);
}

.nav-toggle-line {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--accent-orange);
  background: rgba(255, 255, 255, 0.06);
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-orange);
  line-height: 1;
}

.nav-link:hover .nav-num {
  color: var(--white);
}

.nav-text {
  display: inline;
}

.header-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 16px;
}

.search-input {
  width: min(420px, 100%);
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font: 0.875rem/1.5 var(--font-mono);
  padding: 6px 4px;
  transition: border-color 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.search-input:focus-visible {
  outline: none;
  border-bottom-color: var(--accent-orange);
  box-shadow: 0 2px 0 -1px var(--accent-orange);
}

.btn-search {
  display: inline-block;
  background: var(--accent-orange);
  color: var(--white);
  border-radius: 2px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-search:hover {
  background: #d94f1f;
  color: var(--white);
}

.site-footer {
  background-color: var(--bg-main);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  color: rgba(255, 255, 255, 0.75);
  border-top: 4px solid var(--accent-teal);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-col {
  max-width: 360px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-brand .brand-name {
  font-size: 1.375rem;
}

.footer-brand .brand-year {
  font-size: 0.75rem;
}

.footer-desc {
  margin: 8px 0 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-coord {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.32);
  text-transform: uppercase;
}

.footer-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 2px;
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin-top: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-icp {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--orange {
  background: var(--accent-orange);
  color: var(--white);
}

.btn--orange:hover {
  background: #e5541f;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  color: var(--white);
}

.btn--teal {
  background: var(--accent-teal);
  color: var(--white);
}

.btn--teal:hover {
  background: #009b78;
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn--small {
  padding: 4px 12px;
  font-size: 0.75rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 40px 0;
}

.section--dark {
  background: var(--bg-main);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: rgba(255, 255, 255, 0.85);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .section-title {
  color: var(--white);
}

.section--dark .section-head {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.section--warm {
  background: var(--bg-card);
  color: var(--text-dark);
}

.section--narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-main);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  margin: 0;
}

.section-title code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-orange);
}

.section-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-teal);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.section-more:hover {
  color: var(--accent-orange);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 16px 0 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--border-light);
}

.breadcrumb a {
  color: var(--accent-teal);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-orange);
}

.breadcrumb [aria-current="page"] {
  color: var(--text-dark);
  font-weight: 700;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.card-item {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent-orange);
  border-radius: 2px;
  padding: 16px;
  color: var(--text-dark);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.14);
  border-top-color: var(--status-blue);
  color: var(--text-dark);
}

.card-item--teal {
  border-top-color: var(--accent-teal);
}

.card-item--red {
  border-top-color: var(--status-red);
}

.card-item--green {
  border-top-color: var(--status-green);
}

.card-item--blue {
  border-top-color: var(--status-blue);
}

.card-title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #7f8c8d;
}

.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2c3e50 0%, #3a5770 100%);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}

.image-frame::after {
  content: "IMG // PLACEHOLDER";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.04) 75%, transparent 75%);
  background-size: 16px 16px;
}

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

.image-frame--tall {
  aspect-ratio: 3 / 4;
}

.image-frame--square {
  aspect-ratio: 1 / 1;
}

.image-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tile-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.tile-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 96px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: var(--bg-main);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  color: var(--white);
}

.tile-item:active {
  transform: translateY(-1px);
}

.tile-name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

.tile-meta {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.85;
}

.tile-count {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  color: inherit;
}

.tile-item--orange {
  background: var(--accent-orange);
}

.tile-item--teal {
  background: var(--accent-teal);
}

.tile-item--blue {
  background: var(--status-blue);
}

.tile-item--purple {
  background: var(--tag-purple);
}

.tile-item--red {
  background: var(--status-red);
}

.tile-item--green {
  background: var(--status-green);
}

.tile-item--yellow {
  background: var(--tag-yellow);
  color: var(--text-dark);
}

.tile-item--yellow:hover {
  color: var(--text-dark);
}

.tile-item--dark {
  background: var(--bg-main);
}

.list-row {
  display: grid;
  grid-template-columns: minmax(180px, 2.2fr) minmax(120px, 1.2fr) minmax(120px, 1fr) minmax(90px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-card);
  border-left: 3px solid var(--border-light);
  border-bottom: 1px solid #e8e8d4;
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.list-row:hover {
  border-left-color: var(--accent-orange);
  background: var(--white);
}

.list-row .cell-name {
  font-weight: 700;
  color: var(--text-dark);
}

.list-row .cell-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.list-row-header {
  background: var(--bg-main);
  color: var(--white);
  border-left: 3px solid var(--bg-main);
  cursor: default;
}

.list-row-header:hover {
  border-left-color: var(--bg-main);
  background: var(--bg-main);
}

.list-row-header .cell-name {
  color: var(--white);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tag-yellow);
  color: var(--text-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tag-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  background: #f6c90e;
  color: var(--text-dark);
}

.tag-item--lg {
  font-size: 0.9375rem;
  padding: 6px 16px;
  background: var(--tag-purple);
  color: var(--white);
}

.tag-item--lg:hover {
  background: #8e44ad;
  color: var(--white);
}

.tag-item--md {
  font-size: 0.8125rem;
  background: var(--tag-yellow);
}

.tag-item--sm {
  font-size: 0.6875rem;
  padding: 2px 10px;
  background: var(--border-light);
  color: var(--text-dark);
}

.tag-item--sm:hover {
  color: var(--text-dark);
}

.tag-item--blue {
  background: var(--status-blue);
  color: var(--white);
}

.tag-item--blue:hover {
  color: var(--white);
}

.tag-item--teal {
  background: var(--accent-teal);
  color: var(--white);
}

.tag-item--teal:hover {
  color: var(--white);
}

.tag-item--orange {
  background: var(--accent-orange);
  color: var(--white);
}

.tag-item--orange:hover {
  color: var(--white);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--white);
  background: var(--border-light);
  white-space: nowrap;
}

.badge--new {
  background: var(--status-red);
}

.badge--hot {
  background: var(--status-blue);
}

.badge--active {
  background: var(--accent-teal);
}

.badge--done {
  background: var(--status-green);
}

.badge--orange {
  background: var(--accent-orange);
}

.badge--purple {
  background: var(--tag-purple);
}

.rank-list {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 4px 0;
}

.rank-item {
  display: grid;
  grid-template-columns: 56px 1fr 180px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #e8e8d4;
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-align: center;
  line-height: 1;
}

.rank-item:first-child .rank-num {
  color: var(--status-red);
}

.rank-item:nth-child(2) .rank-num {
  color: var(--accent-orange);
}

.rank-item:nth-child(3) .rank-num {
  color: var(--tag-yellow);
}

.rank-name {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-metric {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rank-metric-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #7f8c8d;
  min-width: 36px;
  text-align: right;
}

.metric-bar {
  flex: 1;
  position: relative;
  height: 6px;
  min-width: 48px;
  background: #e8e8d4;
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--metric, 50%);
  background: var(--accent-teal);
  border-radius: 3px;
}

.metric-bar--orange::before {
  background: var(--accent-orange);
}

.metric-bar--blue::before {
  background: var(--status-blue);
}

.metric-bar--red::before {
  background: var(--status-red);
}

.metric-bar--purple::before {
  background: var(--tag-purple);
}

.index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-teal);
}

.index-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.index-link:hover {
  background: var(--accent-orange);
  color: var(--white);
  border-color: var(--accent-orange);
}

.index-link--current {
  background: var(--bg-main);
  color: var(--white);
  border-color: var(--bg-main);
}

.index-link--current:hover {
  background: var(--bg-main);
  color: var(--white);
  border-color: var(--bg-main);
}

.h-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}

.h-scroll::-webkit-scrollbar {
  height: 6px;
}

.h-scroll::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.h-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.h-scroll-track {
  display: flex;
  gap: 14px;
  min-width: max-content;
}

.h-scroll-track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 280px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.875rem;
  border: 1px solid var(--border-light);
}

.data-table caption {
  caption-side: bottom;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #7f8c8d;
  padding: 8px 4px;
  text-align: left;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-main);
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--accent-orange);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e8e8d4;
  color: var(--text-dark);
}

.data-table tbody tr:hover td {
  background: rgba(0, 184, 148, 0.07);
}

.data-table .col-index {
  font-family: var(--font-mono);
  color: #7f8c8d;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: calc(var(--reveal-delay, 0) * 80ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .header-topbar {
    justify-content: center;
  }

  .topbar-coord,
  .topbar-icp {
    display: none;
  }

  .masthead {
    padding: 20px 16px 12px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .masthead-desc {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    z-index: 10;
  }

  .nav-bar {
    display: none;
  }

  .nav-bar[data-open="true"] {
    display: block;
    animation: navDrop 0.25s ease-out;
    border-bottom: 2px solid var(--accent-orange);
  }

  .site-nav-inner {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0 0;
  }

  .nav-link {
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 12px 20px;
    border-radius: 0;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--accent-orange);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.08);
  }

  .header-search {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }

  .search-input {
    width: 100%;
    margin-bottom: 8px;
  }

  .btn-search {
    text-align: center;
  }

  .footer-inner {
    padding: 40px 20px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .brand-name {
    font-size: 1.375rem;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-bar {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress {
    display: none;
  }
}
