﻿@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --ink: #111827;
  --ink-soft: #4b5563;
  --surface: transparent;
  --surface-strong: #ffffff;
  --line: #d1d5db;
  --brand: #6f2dbd;
  --brand-deep: #5f27a5;
  --shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

body {
  color: var(--ink);
  background: var(--surface);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  font-weight: 400;
}

h1, h2, h3 {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a { color: inherit; }

.container {
  width: min(1320px, 96vw);
  margin: 0 auto;
}

.portal-main .container {
  width: min(1120px, 90vw);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  z-index: 1000;
}

.portal-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.portal-bg {
  position: fixed;
  inset: 0;
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center;
  z-index: -3;
}

.portal-pattern {
  position: fixed;
  right: -140px;
  top: -90px;
  width: min(680px, 65vw);
  opacity: 0.08;
  z-index: -2;
  pointer-events: none;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  background: #ffffff;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.partner-badge {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.portal-main {
  padding-bottom: 48px;
}

.hero {
  padding: 72px 0 36px;
}

.hero-inner {
  max-width: none;
  width: 100%;
  padding: 4px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #c084fc;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  line-height: 1.16;
  color: #f8fafc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .subhead {
  margin: 14px 0 0;
  color: #e5e7eb;
  max-width: 64ch;
  font-size: 1.04rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 18px 0 24px;
}

.section .container {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

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

h2 {
  font-size: clamp(1.35rem, 1.7vw, 1.85rem);
  letter-spacing: 0.01em;
}

.schema-page h1 {
  color: var(--ink);
  text-shadow: none;
  max-width: none;
  margin: 0;
}

.schema-page .subhead {
  color: var(--ink-soft);
  text-shadow: none;
  max-width: 72ch;
  margin: 0;
}

.section-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: 84px;
  border: 1px solid #d9e1ed;
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8fd 100%);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

.filters-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #4b5563;
  margin: 0 0 12px;
}

.filter-group {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.01em;
}

.filter-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.01em;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.93rem;
  color: #1f2937;
  font-weight: 500;
}

.check-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0b4dbb;
}

.filter-group select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 0.94rem;
}

.catalog-content .grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-top: 0;
  gap: 20px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
}

.filters label {
  font-weight: 600;
  color: var(--ink);
}

.filters select {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  margin-top: 8px;
}

@media (max-width: 1280px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid #d9e1ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.09), 0 2px 6px rgba(17, 24, 39, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover,
.card:focus-within {
  border-color: #98afd3;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12), 0 0 0 2px rgba(11, 77, 187, 0.12);
  transform: translateY(-2px);
}

.card-title {
  font-size: 1.24rem;
  line-height: 1.3;
}

.card-title a {
  text-decoration: none;
}

.card-title a:hover,
.card-title a:focus-visible {
  text-decoration: underline;
}

.card-desc {
  margin: 0;
  color: var(--ink-soft);
  min-height: 52px;
  font-size: 0.95rem;
}

.card-meta {
  margin: 0;
  min-height: 26px;
}

.market-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #dde1e7;
  border-radius: 999px;
  background: #f5f7fb;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.market-tag.tag-match {
  background: #e7f0ff;
  border-color: #9ec0ff;
  color: #0b3c8f;
}

.card-actions {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}

.card-actions .btn {
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  font-weight: 600;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  border-color: #b7bec8;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-small {
  font-size: 0.82rem;
  padding: 8px 10px;
}

.card-soon {
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
  border-style: dashed;
}

.btn-disabled {
  border-color: #d0d7e5;
  color: #6b7280;
  background: #f7f9fc;
  cursor: not-allowed;
  pointer-events: none;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding-left: 12px;
  padding-right: 12px;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .partner-badge {
    display: none;
  }

  .hero {
    padding: 56px 0 20px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Compatibility styles for schema detail pages */
.global-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.global-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 140ms ease;
}

.nav-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: block;
  flex-wrap: initial;
  align-items: stretch;
  gap: 0;
  min-width: 290px;
  padding: 8px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  z-index: 30;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: #f3f4f6;
}

.header-actions {
  margin-left: 0;
  justify-self: end;
  display: flex;
  align-items: center;
}

.btn-outline {
  background: #fff;
}

.schema-page {
  padding: 22px 0 36px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 14px;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: var(--ink-soft);
}

.breadcrumb li:last-child::after {
  content: ";
  margin: 0;
}

.page-header {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

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

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ece5de;
  color: #5f4d42;
  font-size: 0.82rem;
}

.badge.success {
  background: #dceee1;
  color: #1d6842;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-grid {
  margin: 20px 0;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 14px;
}

.meta-table dt {
  font-weight: 600;
}

.meta-table dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
}

.content {
  margin-bottom: 18px;
}

.key-fields,
.related {
  margin: 8px 0 0;
  padding-left: 18px;
}

.code-block {
  margin: 8px 0;
  padding: 14px;
  border-radius: 10px;
  background: #1f1d1a;
  color: #f2ede7;
  overflow-x: auto;
}

.muted {
  color: var(--ink-soft);
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.btn-ghost {
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .global-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .pager {
    flex-direction: column;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .card-actions .btn {
    flex: 1 1 100%;
  }
}




