:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  font-synthesis: none;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --accent: #0284c7;
  --accent-strong: #0369a1;
  --accent-soft: #f0f9ff;
  --accent-border: #bae6fd;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --muted: #64748b;
  --surface: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 14px 28px -8px rgba(15, 23, 42, 0.09), 0 4px 12px -3px rgba(2, 132, 199, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-image:
    radial-gradient(1100px 480px at 50% -80px, rgba(14, 165, 233, 0.09), rgba(99, 102, 241, 0.04) 48%, transparent 80%),
    radial-gradient(700px 360px at 85% 40px, rgba(56, 189, 248, 0.06), transparent 70%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 600;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 10px 16px;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.skip:focus {
  top: 12px;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 72px;
  padding: 12px 30px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
  white-space: nowrap;
  color: #0f172a;
}

.brand:hover {
  color: #0f172a;
}

.brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.brand-icon img,
.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand:hover .brand-icon {
  transform: translateY(-1px);
}

.brand-icon img,
.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-label {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-left: 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: all 0.15s ease;
}

nav a:hover {
  color: #0f172a;
}

nav a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--surface);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.header-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0369a1;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.06);
}

.header-contact-badge:hover {
  color: #075985;
  border-color: #7dd3fc;
  background: #e0f2fe;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Main Container */
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 30px 80px;
  min-height: calc(100vh - 150px);
}

main:focus {
  outline: none;
}

/* Hero / Intro Section */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 34px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 50%, #6366f1 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 11px;
  border-radius: 999px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 14px 0 10px;
  color: #0f172a;
  font-weight: 800;
}

p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.intro p {
  margin: 0;
  font-size: 15px;
  color: #475569;
}

.intro p strong {
  color: #0f172a;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.intro-custom-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.intro-custom-pill svg {
  color: #38bdf8;
}

.intro-custom-pill strong {
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 8px;
}

.intro-custom-pill:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: #475569;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.copy-email-btn:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #f8fafc;
}

.copy-email-btn.copied {
  color: #047857;
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.intro-count {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 24px;
  flex-shrink: 0;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.stat-box strong {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-box.stat-custom strong {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--line);
}

/* Catalog Layout & Sidebar */
.catalog-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

aside {
  position: sticky;
  top: 96px;
}

.side-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin: 4px 10px 12px;
}

.category-list {
  display: grid;
  gap: 4px;
}

.category-list button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 10px;
  text-align: left;
  transition: all 0.15s ease;
}

.cat-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cat-btn-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.cat-btn-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-count {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.category-list button:hover {
  background: var(--surface);
  color: #0f172a;
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.category-list button:hover .cat-btn-icon {
  background: #e0f2fe;
  color: var(--accent-strong);
}

.category-list button[aria-pressed="true"] {
  background: var(--surface);
  color: #0f172a;
  font-weight: 600;
  border-color: var(--accent-border);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.category-list button[aria-pressed="true"] .cat-btn-icon {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.category-list button[aria-pressed="true"] .cat-count {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Sidebar Custom Data Service Card */
.custom-side-card {
  margin: 22px 0 0;
  background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.06);
  position: relative;
  overflow: hidden;
}

.custom-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bae6fd;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.custom-side-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.custom-side-card p {
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: #475569;
}

.custom-side-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.custom-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22);
}

.custom-mail-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

.side-copy-btn {
  width: 100%;
  justify-content: center;
}

.side-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-strong);
}

.side-more-link:hover .icon-arrow-right {
  transform: translateX(3px);
}

/* Workspace, Search & Filter Controls */
.workspace {
  min-width: 0;
}

#filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.search-label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  transition: all 0.15s ease;
}

.search-icon {
  display: flex;
  align-items: center;
  color: #64748b;
}

.search-label:focus-within {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.search-label:focus-within .search-icon {
  color: var(--accent);
}

.search-label input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
  font-size: 15px;
  color: #0f172a;
}

.search-label input::placeholder {
  color: #94a3b8;
}

.search-label input:focus-visible {
  outline: none;
}

.search-kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  user-select: none;
}

.filter-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.filter-row label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-label-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
}

select {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

select:hover {
  border-color: #94a3b8;
  background: var(--surface);
}

.reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  margin-left: auto;
  padding: 6px 11px;
  transition: all 0.15s ease;
}

.reset:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: var(--line);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 2px 14px;
  font-size: 14px;
}

.results-bar strong {
  color: #0f172a;
  font-weight: 700;
}

.results-bar span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Dataset Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px 22px 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #3b82f6, #6366f1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 8 Distinct Category Color Themes */
.c0 { background: #e0f2fe; color: #0369a1; }
.c1 { background: #e0e7ff; color: #4338ca; }
.c2 { background: #f3e8ff; color: #6d28d9; }
.c3 { background: #d1fae5; color: #047857; }
.c4 { background: #fef3c7; color: #b45309; }
.c5 { background: #ffe4e6; color: #be123c; }
.c6 { background: #cffafe; color: #0e7490; }
.c7 { background: #f1f5f9; color: #334155; }

.c-text-0 { color: #0369a1; }
.c-text-1 { color: #4338ca; }
.c-text-2 { color: #6d28d9; }
.c-text-3 { color: #047857; }
.c-text-4 { color: #b45309; }
.c-text-5 { color: #be123c; }
.c-text-6 { color: #0e7490; }
.c-text-7 { color: #334155; }

.card-top .card-cat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card-number {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
}

.card h2 {
  font-size: 19px;
  line-height: 1.35;
  margin: 15px 0 6px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.card h2 a:hover {
  color: var(--accent);
}

.card .publisher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  flex: 0;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.card .card-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
  flex: 1;
  margin-bottom: 16px;
}

/* Semantic Tags & Badges */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tag-format {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
}

.tag-cat {
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag-license-open {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.tag-license-open .status-dot {
  background: #10b981;
}

.tag-license-review {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}
.tag-license-review .status-dot {
  background: #f59e0b;
}

.tag-license-restricted {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}
.tag-license-restricted .status-dot {
  background: #f43f5e;
}

/* Card Footer */
.card-bottom {
  border-top: 1px solid #f1f5f9;
  padding: 13px 0;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.card-gh-link {
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12.5px;
}

.card-gh-link:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: var(--line-strong);
}

.card-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
  white-space: nowrap;
}

.icon-arrow-right,
.icon-ext {
  transition: transform 0.18s ease;
}

.card-detail-link:hover .icon-arrow-right,
.primary:hover .icon-arrow-right {
  transform: translateX(3px);
}

.ext-link:hover .icon-ext {
  transform: translate(2px, -2px);
}

/* Enterprise Custom Data Banner */
.custom-cta-banner {
  margin-top: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.custom-cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 50%, #6366f1 100%);
}

.custom-cta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(186, 230, 253, 0.6);
}

.custom-cta-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
  margin: 12px 0 8px;
}

.custom-cta-header p {
  margin: 0;
  font-size: 14.5px;
  color: #475569;
  max-width: 640px;
}

.custom-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.custom-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.cap-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 11px;
  padding: 15px 18px;
}

.cap-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
}

.cap-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

/* Empty State & Buttons */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
}

.empty-symbol {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.empty-symbol svg {
  width: 24px;
  height: 24px;
}

.empty h2,
.empty h1 {
  font-size: 21px;
  margin: 0 0 8px;
}

.empty-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  border: 1px solid #0369a1;
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}

.primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.32);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: #334155;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.secondary-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Detail View */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #334155;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.back-pill:hover {
  color: var(--accent-strong);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.breadcrumb-sep {
  color: #cbd5e1;
}

.breadcrumb-cat {
  font-weight: 500;
  color: #475569;
}

.detail-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 34px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb, #6366f1);
}

.detail-hero h1 {
  font-size: clamp(28px, 3vw, 38px);
  margin: 14px 0 10px;
}

.detail-hero p {
  max-width: 760px;
  font-size: 16px;
  color: #475569;
  margin-bottom: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.panel {
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.panel h2,
.metadata h2,
.notice h2,
.related h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px;
}

.detail-pub-line strong,
.panel p strong {
  color: #0f172a;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.metadata {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.metadata dl {
  margin: 0 0 22px;
}

.metadata dl > div {
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}

.metadata dl > div:last-child {
  border-bottom: 0;
}

.metadata dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metadata dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.metadata dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 5px;
  color: #0369a1;
}

.meta-mail {
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
}

.download {
  display: flex;
  width: 100%;
}

.metadata p {
  font-size: 12px;
  margin: 10px 0 0;
  text-align: center;
}

.notice {
  padding: 22px 26px;
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.notice h2 {
  font-size: 16px;
  color: #0369a1;
  margin-bottom: 8px;
}

.notice p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #334155;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.notice .ext-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-strong);
}

.related {
  margin-top: 40px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading > span {
  color: var(--muted);
  font-size: 13px;
}

/* About View */
.about {
  max-width: 920px;
  margin: 0 auto;
}

.about-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb, #6366f1);
}

.about .lead {
  font-size: 16px;
  line-height: 1.75;
  color: #475569;
  margin: 14px 0 0;
}

.about .lead strong {
  color: #0f172a;
}

.about-contact-bar {
  margin-top: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.about-contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-strong);
}

.contact-email-large {
  font-size: 20px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
}

.about-contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-grid {
  display: grid;
  gap: 16px;
}

.about-grid .panel {
  margin-bottom: 0;
}

.about-grid .ext-link {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 14px;
}

.about-cta {
  margin-top: 26px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: #64748b;
  font-size: 13px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

footer strong {
  color: #0f172a;
  font-weight: 700;
}

.footer-sep,
.footer-dot {
  color: #cbd5e1;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-mail {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: var(--accent-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .brand-label {
    display: none;
  }
  .catalog-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
  }
  .intro-count {
    display: none;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .custom-cta-header {
    flex-direction: column;
  }
  .custom-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 18px;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 64px;
  }
  .brand {
    font-size: 18px;
  }
  .header-contact-badge {
    display: none;
  }
  main {
    padding: 22px 16px 48px;
  }
  .intro {
    padding: 22px 20px;
    margin-bottom: 20px;
  }
  .catalog-layout {
    display: block;
  }
  aside {
    position: static;
  }
  .side-title,
  .custom-side-card,
  .search-kbd {
    display: none;
  }
  .category-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 2px 0 14px;
    margin-bottom: 8px;
  }
  .category-list button {
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 7px 12px;
  }
  .grid,
  .custom-capabilities {
    grid-template-columns: 1fr;
  }
  .custom-cta-banner {
    padding: 22px 20px;
  }
  .filter-row {
    gap: 12px;
    flex-wrap: wrap;
  }
  .reset {
    margin-left: 0;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
  }
  .detail-hero {
    padding: 22px 20px;
  }
  .panel {
    padding: 20px 18px;
  }
  .metadata {
    position: static;
    order: -1;
    width: 100%;
  }
  .metadata dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .footer-inner {
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
