/* EconomicCodes Minimalist Classification Directory Design System */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-th: #f8fafc;
  
  --border-card: #e2e8f0;
  --border-row: #edf2f7;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-bg: #eff6ff;
  --primary-border: #bfdbfe;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.gc-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Minimalist Global Header */
.gc-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.gc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gc-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.gc-brand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.gc-country-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gc-country-link {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.gc-country-link:hover, .gc-country-link.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
}

/* Breadcrumbs */
.gc-breadcrumbs {
  padding: 16px 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.gc-breadcrumbs a {
  color: var(--text-muted);
}

.gc-breadcrumbs a:hover {
  color: var(--primary);
}

.gc-breadcrumbs .sep {
  color: var(--text-light);
}

.gc-breadcrumbs .current {
  color: var(--text-main);
  font-weight: 600;
}

/* Main Content Card */
.gc-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Pre-title Label */
.gc-pretitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Page H1 Title */
.gc-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 20px;
}

/* Action Toolbar */
.gc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.gc-btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.gc-btn-tool:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.gc-btn-tool svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Key-Value Attribute Table */
.gc-specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  font-size: 14px;
}

.gc-specs-table tr {
  border-bottom: 1px solid var(--border-row);
}

.gc-specs-table tr:last-child {
  border-bottom: none;
}

.gc-specs-table th {
  background: var(--bg-th);
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  padding: 12px 18px;
  width: 220px;
  border-right: 1px solid var(--border-row);
  vertical-align: top;
}

.gc-specs-table td {
  background: #ffffff;
  color: var(--text-main);
  padding: 12px 18px;
  vertical-align: top;
}

.gc-code-pill {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid var(--primary-border);
}

/* Sibling & Child List Section */
.gc-list-section {
  margin-top: 36px;
}

.gc-list-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.gc-items-list {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-row);
  text-decoration: none !important;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.gc-item-row:last-child {
  border-bottom: none;
}

.gc-item-row:hover {
  background: #f8fafc;
}

.gc-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gc-item-code {
  background: var(--primary-bg);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--primary-border);
  min-width: 65px;
  text-align: center;
}

.gc-item-name {
  font-size: 14px;
  color: var(--text-main);
}

.gc-item-arrow {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
}

.gc-item-row:hover .gc-item-arrow {
  color: var(--primary);
}

/* Minimalist Footer */
.gc-footer {
  border-top: 1px solid var(--border-card);
  background: #ffffff;
  padding: 24px 0;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-muted);
}

.gc-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .gc-main-card {
    padding: 20px 16px;
  }
  .gc-specs-table th {
    width: 140px;
    padding: 10px 12px;
  }
  .gc-specs-table td {
    padding: 10px 12px;
  }
  .gc-toolbar {
    gap: 6px;
  }
  .gc-btn-tool {
    padding: 6px 10px;
    font-size: 12px;
  }
}
