@font-face {
  font-family: "Kanit";
  src: url("/static/font/Kanit-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --blue-900: #0a2a6c;
  --blue-800: #0f2f7a;
  --blue-700: #14429c;
  --blue-600: #1e56c5;
  --blue-500: #1c6be1;
  --navy: #08122e;
  --white: #ffffff;
  --muted: #d5deff;
  --accent: #f5a524;
  --shadow: 0 16px 40px rgba(4, 15, 50, 0.28);
  --max-width: 1500px;
  --radius: 18px;
  --font: "Kanit", "Poppins", "Segoe UI", "Sukhumvit Set", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: #f4f6fb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  height: 42px;
  width: auto;
}

.brand__title {
  font-weight: 700;
  font-size: 18px;
}

.brand__subtitle {
  font-size: 12px;
  color: #cfe0ff;
}

.topbar__links {
  display: none;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  color: #e3ebff;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.nav-link--pill {
  background: var(--white);
  color: var(--blue-800);
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.hero {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 24px;
  background: url("/static/pic/heroimg_compact.png") center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 91, 230, 0.17);
}

.hero__content {
  position: relative;
  max-width: 960px;
  z-index: 1;
}

.hero__title {
  margin: 0 0 8px;
  font-size: clamp(40px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  padding-bottom: 4px;
}

.hero__title--en {
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #0c2f78 0%, #0d3f99 40%, #0f54c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 700;
  color: #ffffff;
}

.about {
  background: #ffffff;
  color: #0f2f7a;
  padding: 56px 24px;
}

.about__content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 30px);
  color: #0f2f7a;
}

.about__text {
  margin: 0;
  font-size: 15px;
  color: #2f3f61;
}

.apis {
  padding: 64px 24px 80px;
  background: url("/static/pic/apiproductbg_compact.png") center/cover no-repeat, linear-gradient(180deg, #0a1635 0%, #0c1d48 100%);
  color: var(--white);
}

.apis__header {
  max-width: var(--max-width);
  margin: 0 auto 26px;
  text-align: center;
}

.apis__header .section__title {
  color: #ffffff;
}

.apis__subtitle {
  margin: 8px 0 0;
  color: #c7d4ff;
  font-size: 14px;
}

/* Toolbar Container */
.apis__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 820px;
  margin: 22px auto 8px;
  flex-wrap: wrap;
}

/* Search Box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  padding: 3px 14px 3px 14px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.search-box:focus-within {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.35);
}

.search-box__icon {
  stroke: #4b5d84;
  flex-shrink: 0;
  margin-right: 10px;
}

.search-box__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  color: #0f2f7a;
  padding: 8px 0;
}

.search-box__input::placeholder {
  color: #8c9ebf;
  font-size: 13px;
}

.search-box__clear {
  border: none;
  background: #e2e8f0;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  margin-left: 6px;
  transition: background 0.15s ease;
}

.search-box__clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.search-box__clear.hidden {
  display: none;
}

/* Result count and Empty State */
.search-result-count {
  font-size: 13px;
  color: #c7d4ff;
  margin-top: 6px;
  min-height: 20px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: #ffffff;
  max-width: 600px;
  margin: 20px auto;
  width: 100%;
}

.no-results__icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.no-results__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.no-results__desc {
  font-size: 13px;
  color: #c7d4ff;
}

/* View Mode Toggle */
.view-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  gap: 4px;
}

.view-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: #c7d4ff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle__btn svg {
  stroke: currentColor;
}

.view-toggle__btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.view-toggle__btn--active {
  background: #ffffff !important;
  color: #0f2f7a !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-toggle__btn--active svg {
  stroke: #0f2f7a;
}

/* Card Grid View (Default) */
.api-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.api-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  flex: 0 0 280px;
  padding: 20px 20px 18px;
  background: #ffffff;
  color: #0f2f7a;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 29, 72, 0.08);
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 8px 24px rgba(4, 15, 50, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.api-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(4, 15, 50, 0.18);
}

.api-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), #1f9bd1);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(12, 71, 186, 0.25);
  flex-shrink: 0;
}

.api-card__icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.api-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.api-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0a2a6c;
  cursor: pointer;
  transition: color 0.15s ease;
}

.api-card__title:hover {
  color: #2563eb;
  text-decoration: underline;
}

.api-card__desc {
  margin: 0;
  color: #2b3f6d;
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

/* Card Action Area */
.api-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.api-card__downloads {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-download--csv {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.btn-download--csv:hover {
  background: #d1fae5;
  color: #065f46;
  transform: translateY(-1px);
}

.btn-download--json {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-download--json:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-download--pdf {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.btn-download--pdf:hover {
  background: #fee2e2;
  color: #991b1b;
  transform: translateY(-1px);
}

.api-card__link {
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  height: 34px;
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--blue-600), var(--blue-500));
  border: 1px solid rgba(28, 107, 225, 0.3);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.api-card__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 71, 186, 0.35);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 980px;
  margin: 16px auto 4px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #c7d4ff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.category-tab--active {
  background: #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 700;
  border-color: #60a5fa !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* Data Request Button */
.btn-data-request {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #10b981;
  background: #059669;
  color: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-data-request:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Format Badges */
.formats-list {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.format-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.format-badge--api {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.format-badge--json {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.format-badge--pdf {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Open Data Metadata on Cards */
.card-meta {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #718096;
}

.card-meta__row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-meta__tag {
  color: #059669;
  font-weight: 600;
}

/* List / Row View adjustments */
.api-grid--list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
}

.api-grid--list .api-card {
  width: 100%;
  flex: 1 1 100%;
  min-height: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.api-grid--list .api-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.api-grid--list .api-card__icon {
  width: 54px;
  height: 54px;
}

.api-grid--list .api-card__body {
  text-align: left;
  gap: 4px;
}

.api-grid--list .api-card__title {
  font-size: 16px;
}

.api-grid--list .api-card__desc {
  font-size: 13px;
  color: #43557a;
}

.api-grid--list .card-meta {
  flex-direction: row;
  gap: 14px;
  border-top: none;
  padding-top: 2px;
}

.api-grid--list .api-card__actions {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
}

.api-grid--list .api-card__link {
  align-self: center;
  flex-shrink: 0;
  width: auto;
  min-width: 170px;
}

@media (max-width: 860px) {
  .api-grid--list .api-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .api-grid--list .card-meta {
    flex-direction: column;
    gap: 3px;
  }
  .api-grid--list .api-card__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 8px;
  }
  .api-grid--list .api-card__link {
    width: 100%;
    text-align: center;
  }
}

/* Modal: Data Request */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 15, 50, 0.7);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: #ffffff;
  color: #1e293b;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card__header {
  background: linear-gradient(135deg, #0a2a6c, #14429c);
  color: #ffffff;
  padding: 20px 24px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
}

.modal-card__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.modal-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-card__subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: #c7d4ff;
}

.modal-card__close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.modal-card__close:hover {
  opacity: 1;
}

.modal-card__body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.req-star {
  color: #ef4444;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
}

.form-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-alert.hidden {
  display: none;
}

.modal-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a2a6c, #1e56c5);
  color: #ffffff;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 42, 108, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f3587, #2563eb);
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 9px 18px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Metadata Modal Specific Styles */
.modal-card--lg {
  max-width: 960px;
  width: 92vw;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.modal-card__badge--cat {
  background: rgba(59, 130, 246, 0.4) !important;
  color: #ffffff !important;
}

/* Meta Modal Tab Bar */
.meta-modal-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 16px;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
}

.meta-modal-tab {
  padding: 11px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.meta-modal-tab:hover {
  color: #0f172a;
}

.meta-modal-tab--active {
  color: #0a2a6c !important;
  border-bottom-color: #2563eb !important;
  font-weight: 700;
}

.meta-tab-content {
  display: block;
  animation: fadeInTab 0.2s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.meta-tab-content.hidden {
  display: none !important;
}

/* Overview Section */
.meta-section-heading {
  font-size: 14px;
  font-weight: 700;
  color: #0f2f7a;
  margin: 0 0 10px;
}

.meta-desc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
}

.meta-desc-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.meta-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-item--full {
  grid-column: 1 / -1;
}

.meta-item__label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.meta-item__value {
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}

/* Data Dictionary & Sample Data Table */
.meta-sample-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.meta-sample-info {
  color: #475569;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-sample-raw-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.meta-sample-raw-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.meta-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: auto;
  max-height: 420px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.meta-dict-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 12px;
}

.meta-dict-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.meta-dict-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.5;
}

.meta-dict-table tr:hover td {
  background: #f8fafc;
}

.meta-dict-table code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  color: #0f2f7a;
  font-weight: 700;
}

/* Data Access Tab */
.meta-access-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.access-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.access-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.access-card__header h4 {
  margin: 0;
  font-size: 15px;
  color: #0f2f7a;
}

.access-card__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.access-card__badge--api {
  background: #e0f2fe;
  color: #0284c7;
}

.access-card__badge--csv {
  background: #ecfdf5;
  color: #059669;
}

.access-card__desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
}

.access-card__btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-access-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a2a6c, #1e56c5);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-access-primary:hover {
  background: linear-gradient(135deg, #0f3587, #2563eb);
  transform: translateY(-1px);
}

.btn-access-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-access-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Metadata CTA Button on Cards */
.btn-metadata {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-metadata:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 8px;
  background: #0a2d78;
}

.footer__img {
  max-width: 100%;
  height: 42px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 16px;
    justify-content: center;
  }
  .hero {
    padding: 60px 20px;
    min-height: 360px;
  }
  .about__text {
    text-align: left;
  }
}
