:root {
  --brand-ink: #071d33;
  --brand-blue: #0057b8;
  --brand-blue-deep: #002f6c;
  --brand-cyan: #008fca;
  --brand-sky: #e8f1fb;
  --brand-mist: #f4f7fb;
  --uax-yellow: #ffd200;
  --uax-yellow-deep: #f1b800;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --line: #d8dde7;
  --text-soft: #536174;
  --ok: #1c7a58;
  --danger: #a4223c;
  --shadow: 0 12px 34px rgba(7, 29, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", "Arial", "Helvetica Neue", sans-serif;
  color: var(--brand-ink);
  background: #f3f5f8;
}

a {
  color: var(--brand-blue);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 36px;
}

.uax-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 10px 24px;
  margin: 0 -24px;
  background: #071d33;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.uax-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.uax-topbar a {
  color: #fff;
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin: 0 0 0;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  text-decoration: none;
  background: transparent;
  color: var(--brand-ink);
  border: 0;
  border-radius: 0;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 700;
}

.pill-link.is-active {
  background: transparent;
  color: var(--brand-blue);
  box-shadow: inset 0 -4px 0 var(--uax-yellow);
}

.pill-link.uax-nav-cta {
  min-height: 44px;
  margin-left: 8px;
  padding: 0 18px;
  background: var(--uax-yellow);
  color: #071d33;
}

.pill-link.uax-nav-cta:hover {
  background: var(--uax-yellow-deep);
}

.site-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  margin: 0 -24px 0;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
  box-shadow: 0 8px 24px rgba(7, 29, 51, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark-shell {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #dfe4ec;
  box-shadow: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-lockup-copy {
  display: grid;
  gap: 4px;
}

.brand-lockup-copy strong {
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  letter-spacing: 0;
}

.brand-kicker {
  display: inline-flex;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  font-weight: 700;
}

.brand-wordmark {
  width: min(100%, 260px);
  max-height: 74px;
  object-fit: contain;
}

.brand-wordmark[src=""],
.brand-mark[src=""] {
  display: none;
}

.hero {
  color: #fff;
  border-radius: 0;
  padding: 0;
  margin: 0 -24px 34px;
  background: #071d33;
  box-shadow: none;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 0;
  align-items: stretch;
  min-height: 560px;
}

.hero-home-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 82px) clamp(28px, 6vw, 76px);
}

.hero-home-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-home-copy p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
  font-size: 1.08rem;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 0;
  background: var(--uax-yellow);
  color: #071d33;
  border: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .btn,
.hero-actions .btn.secondary {
  width: auto;
  min-width: 168px;
  padding-inline: 22px;
}

.hero-home-visual {
  display: grid;
  align-content: end;
  gap: 0;
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(0deg, rgba(0, 47, 108, 0.76), rgba(0, 87, 184, 0.12)),
    linear-gradient(135deg, rgba(255, 210, 0, 0.88) 0 16%, transparent 16% 100%),
    linear-gradient(145deg, #eaf1f8 0%, #ffffff 38%, #cdd9e8 100%);
  color: #071d33;
}

.signal-card {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 0;
  background: #fff;
  border: 0;
  border-left: 6px solid var(--uax-yellow);
  box-shadow: 0 18px 34px rgba(7, 29, 51, 0.13);
}

.signal-card + .signal-card {
  margin-top: 12px;
}

.signal-card span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-blue);
  font-weight: 700;
}

.signal-card strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.signal-card-primary {
  border-left-color: var(--brand-blue);
}

.signal-card-accent {
  border-left-color: var(--uax-yellow);
}

.tab-nav {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.tab-btn {
  width: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 600;
}

.tab-btn.is-active {
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue));
  color: #fff;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

.card {
  background: var(--surface);
  border: 1px solid #e2e7ef;
  border-radius: 0;
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: clamp(1.72rem, 3vw, 2.7rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.card p {
  font-size: 1rem;
  line-height: 1.72;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uax-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.uax-feature-list,
.uax-next-steps {
  display: grid;
  gap: 12px;
}

.uax-feature-list div,
.uax-next-steps a {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
  border-left: 5px solid var(--uax-yellow);
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.uax-feature-list strong,
.uax-next-steps strong {
  font-size: 1rem;
}

.uax-feature-list span,
.uax-next-steps span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.uax-next-steps a {
  border-left-color: var(--brand-blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.uax-next-steps a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.asset-stage-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.flow-stage-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asset-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-soft);
}

.asset-stage span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
}

.asset-stage strong {
  font-size: 13px;
}

.asset-stage.is-active {
  border-color: #92c5e6;
  background: #eef7ff;
  color: var(--brand-ink);
}

.asset-stage.is-done {
  border-color: #9ad8bd;
  background: #f1fbf5;
  color: #176946;
}

.asset-stage.is-done span {
  background: #daf5e8;
  color: #176946;
}

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

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.action-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 14px;
}

label {
  font-size: 12px;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}

input,
select,
button,
textarea {
  width: 100%;
  border: 1px solid #bfd0ea;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.96);
}

button,
.btn {
  background: var(--uax-yellow);
  color: #071d33;
  cursor: pointer;
  border: none;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: none;
}

button.secondary,
.btn.secondary {
  background: #fff;
  color: var(--brand-ink);
  border: 2px solid var(--brand-ink);
  box-shadow: none;
}

.btn + .btn {
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  background: linear-gradient(180deg, #eef4fc 0%, #f8fbff 100%);
}

.home-catalog-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f8fafc;
}

.home-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.home-catalog-actions .btn,
.home-catalog-actions button {
  width: auto;
  min-width: 180px;
  margin-top: 0;
  padding: 10px 16px;
}

.home-catalog-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-right: 8px;
  color: var(--brand-blue-deep);
  font-weight: 700;
}

.home-catalog-metric strong {
  font-size: 1.8rem;
  line-height: 1;
}

.home-catalog-sources {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
}

.home-catalog-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 0;
  background: #fff4b8;
  color: #071d33;
  font-size: 12px;
  font-weight: 700;
}

.home-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.home-catalog-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 15px;
  border: 1px solid rgba(216, 226, 241, 0.95);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 12px 26px rgba(8, 27, 51, 0.08);
}

.home-catalog-card-head,
.home-catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-catalog-card-head span,
.home-catalog-card-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef4fc;
  color: var(--brand-blue-deep);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-catalog-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.home-catalog-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.home-catalog-card-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

@media (max-width: 1120px) {
  .site-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    padding-left: 0;
  }

  .lang-switch {
    margin-left: 0;
  }
}

#homeCatalogTable {
  display: block;
  max-height: 560px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

#homeCatalogTable thead,
#homeCatalogTable tbody,
#homeCatalogTable tr {
  width: 100%;
}

.trace-data {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.35;
}

.muted {
  color: var(--text-soft);
  font-size: 12px;
}

.status {
  margin-top: 8px;
  font-size: 13px;
}

.status-ok {
  color: var(--ok);
}

.status-error {
  color: var(--danger);
}

.audit-panel--info {
  border-color: #c8d9ee;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.audit-panel--safe {
  border-color: #9ad8bd;
  background: linear-gradient(180deg, #ffffff 0%, #f3fcf7 100%);
}

.audit-panel--warn {
  border-color: #f2cf8d;
  background: linear-gradient(180deg, #ffffff 0%, #fff9ef 100%);
}

.audit-panel--danger {
  border-color: #efb0b3;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
}

.audit-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(160, 183, 214, 0.4);
}

.audit-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 700;
}

.audit-summary-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-ink);
}

.audit-hero-side {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.audit-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.audit-chip--safe {
  background: #daf5e8;
  color: #176946;
}

.audit-chip--warn {
  background: #fff0cf;
  color: #8a5a00;
}

.audit-chip--danger {
  background: #ffe0e3;
  color: #9b2226;
}

.audit-chip--info {
  background: #e7f1ff;
  color: #285ea8;
}

.audit-chip--outline {
  background: #fff;
  color: var(--brand-ink);
  border: 1px solid var(--line);
}

.audit-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.audit-meta-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(160, 183, 214, 0.45);
  border-radius: 12px;
  padding: 12px;
}

.audit-meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 700;
}

.audit-reason-list {
  display: grid;
  gap: 10px;
}

.audit-reason {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.84);
}

.audit-reason--high {
  border-color: #efb0b3;
  background: #fff3f4;
}

.audit-reason--medium {
  border-color: #f2cf8d;
  background: #fff9ef;
}

.audit-reason--low {
  border-color: #bdddcb;
  background: #f6fcf8;
}

.audit-reason p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.audit-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.audit-token {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #2f4c7c;
  border: 1px solid #d0dff2;
  font-weight: 600;
}

.audit-recommendations {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.audit-recommendations li {
  line-height: 1.5;
}

.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  margin-top: 14px;
}

.institution-card {
  border: 1px solid #c8d6ec;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 87, 184, 0.06) 0%, rgba(0, 153, 204, 0.05) 100%);
  padding: 14px;
  transition: all 0.25s ease;
}

.institution-card:hover {
  border-color: var(--brand-cyan);
  box-shadow: 0 14px 28px rgba(0, 153, 204, 0.12);
  transform: translateY(-2px);
}

.institution-card h3 {
  color: var(--brand-blue-deep);
  font-size: 15px;
  margin-bottom: 8px;
}

.institution-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 10px;
}

.institution-card a {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.institution-card a:hover {
  color: var(--brand-cyan);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .container {
    padding: 0 14px 24px;
  }

  .uax-topbar,
  .site-masthead,
  .hero {
    margin-left: -14px;
    margin-right: -14px;
  }

  .uax-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lang-switch {
    width: 100%;
    margin-left: 0;
  }

  .site-masthead,
  .hero-home {
    grid-template-columns: 1fr;
  }

  .site-masthead {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    padding-left: 0;
  }

  .pill-link {
    min-height: 42px;
    padding: 0 10px;
  }

  .brand-wordmark {
    width: 100%;
    max-height: 56px;
  }

  .card {
    padding: 18px;
  }

  .hero-home {
    min-height: 0;
  }

  .uax-section-grid {
    grid-template-columns: 1fr;
  }
}
