:root {
  --ink: #12223d;
  --muted: #66758a;
  --blue: #2c7fd1;
  --blue2: #65a9ec;
  --ice: #eff7ff;
  --line: #dce6f0;
  --green: #168868;
  --white: #fff;
  --shadow: 0 16px 45px rgba(18, 34, 61, 0.1);
}
.warning {
  padding: 14px 17px;
  border: 1px solid #eed49a;
  border-radius: 12px;
  background: #fff8e8;
  color: #76551a;
  font-size: 13px;
}
.section-path {
  margin: 1px 0 8px !important;
  color: #2c7fd1 !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
}
.match {
  margin: 9px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #65a9ec;
  border-radius: 0 9px 9px 0;
  background: #f5f9fd;
  color: #40566f;
  font-size: 13px;
  line-height: 1.55;
}
.match span {
  display: block;
  margin-bottom: 3px;
  color: #718399;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.answer-card {
  padding: 24px 26px;
  border: 1px solid #bcdaf7;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4f9ff, #fff);
  box-shadow: var(--shadow);
}
.answer-label {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.answer-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.setup-card {
  padding: 16px 18px;
  border: 1px solid #bcdaf7;
  border-radius: 13px;
  background: #edf7ff;
  color: #315b80;
  font-size: 13px;
}
.source-heading {
  margin: 12px 0 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7c90;
}
.pill.source {
  background: #eef5fb;
  color: #3d617f;
}
.open {
  white-space: nowrap;
}
.pilot-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.brand-actions .pilot-nav {
  margin-left: 0;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.language-toggle button {
  min-width: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #dcecff;
  font: 800 11px/1 inherit;
  cursor: pointer;
}
.language-toggle button[aria-pressed="true"] {
  background: white;
  color: #174f85;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}
.pilot-nav a {
  padding: 6px 9px;
  border-radius: 8px;
  color: #cfe6fd;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.pilot-nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}
.pilot-nav .feedback-link {
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: white;
}
.floating-feedback {
  position: fixed;
  z-index: 5;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(18, 71, 122, 0.24);
}
.floating-feedback span {
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: #f8fafc;
  color: var(--ink);
  font:
    15px/1.55 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.shell {
  width: min(1040px, calc(100% - 34px));
  margin: auto;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 38px;
  color: white;
  background:
    radial-gradient(circle at 82% 0%, rgba(101, 169, 236, 0.52), transparent 38%),
    linear-gradient(125deg, #091a34, #123c70 68%, #15518e);
}
.hero:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -140px;
  bottom: -260px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  display: block;
  width: 134px;
  height: auto;
  filter: brightness(0) invert(1);
}
.version {
  margin-left: auto;
  color: #a9d2fb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.hero-copy {
  max-width: 760px;
  margin-top: 44px;
}
.eyebrow {
  margin: 0;
  color: #86c3fb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.hero h1 {
  margin: 7px 0 4px;
  font-size: clamp(33px, 6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.lede {
  margin: 0;
  color: #d8e9fb;
  font-size: 17px;
}
.search-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 8px 8px 8px 17px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 44px rgba(0, 0, 0, 0.22);
}
.search-box svg {
  width: 24px;
  fill: none;
  stroke: #66809d;
  stroke-width: 2;
  stroke-linecap: round;
}
.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.search-box input::placeholder {
  color: #9aa9ba;
  font-weight: 400;
}
.search-box button {
  padding: 13px 23px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.search-box button:disabled {
  cursor: wait;
  opacity: 0.78;
}
.examples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.examples button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #dcecff;
  font: 600 12px inherit;
  cursor: pointer;
}
.content {
  min-height: 470px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 25px 0 15px;
  color: var(--muted);
}
.toolbar p {
  margin: 0;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.toolbar select {
  padding: 9px 28px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.results {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding-bottom: 45px;
}
.result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  min-width: 0;
  gap: 15px;
  align-items: start;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 3px 11px rgba(18, 34, 61, 0.035);
  transition: 0.16s ease;
}
.result > * {
  min-width: 0;
}
.result h2,
.match {
  overflow-wrap: anywhere;
}
.result:hover {
  transform: translateY(-1px);
  border-color: #b9d8f5;
  box-shadow: var(--shadow);
}
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--blue);
  font-size: 19px;
}
.result h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
}
.result p {
  margin: 0;
  color: var(--muted);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.pill {
  padding: 4px 8px;
  border-radius: 99px;
  background: #edf2f7;
  color: #52667e;
  font-size: 11px;
  font-weight: 800;
}
.pill.authority {
  background: #eaf8f3;
  color: var(--green);
}
.pill.language-note {
  background: #fff4dc;
  color: #7a5a16;
}
.open {
  align-self: center;
  padding: 9px 13px;
  border-radius: 9px;
  background: #edf6ff;
  color: #176bbd;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.why {
  margin-top: 8px !important;
  color: #8190a2 !important;
  font-size: 12px;
}
.empty-state {
  text-align: center;
  margin: 66px auto;
  color: var(--muted);
  max-width: 540px;
}
.empty-state .compass {
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: #eaf4ff;
  color: var(--blue);
  font-size: 35px;
  line-height: 58px;
}
.empty-state h2 {
  margin: 14px 0 4px;
  color: var(--ink);
}
.empty-state p {
  margin: 0;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--muted);
}
.loading strong,
.loading span {
  display: block;
}
.loading strong {
  color: var(--ink);
  font-size: 15px;
}
.loading .spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 4px solid #d9eafb;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: search-spin 0.8s linear infinite;
}
@keyframes search-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .loading .spinner { animation-duration: 1.8s; }
}
footer {
  border-top: 1px solid var(--line);
  background: white;
  color: #8391a2;
  font-size: 12px;
}
footer .shell {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
}
@media (max-width: 640px) {
  .brand-actions {
    gap: 5px;
  }
  .language-toggle button {
    min-width: 31px;
    padding: 5px 6px;
  }
  .pilot-nav {
    gap: 4px;
  }
  .pilot-nav a {
    padding: 5px 7px;
    font-size: 10px;
  }
  .pilot-nav a:first-child {
    display: none;
  }
  .brand-logo {
    width: 112px;
  }
  .hero-copy {
    margin-top: 35px;
  }
  .search-box {
    padding-left: 13px;
  }
  .search-box button {
    padding: 12px 14px;
  }
  .toolbar {
    align-items: flex-start;
  }
  .result {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .open {
    grid-column: 2;
    justify-self: start;
  }
  .result h2 {
    font-size: 16px;
  }
  .floating-feedback {
    right: 12px;
    bottom: 12px;
  }
  footer .shell {
    padding-bottom: 68px;
  }
}
