:root {
  --bedc-red: #ed1c24;
  --bedc-yellow: #f6df16;
  --bedc-green: #78be20;
  --ink: #151515;
  --muted: #5f6268;
  --line: #dfe3e7;
  --paper: #ffffff;
  --soft: #f6f8f4;
  --focus: #17693f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(110deg, rgba(120, 190, 32, 0.12), transparent 36%),
    linear-gradient(250deg, rgba(237, 28, 36, 0.08), transparent 34%),
    #fbfcfa;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 32px 0 26px;
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(
      90deg,
      var(--bedc-red) 0 28%,
      var(--bedc-yellow) 28% 60%,
      var(--bedc-green) 60% 100%
    )
    1;
}

.brand-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  width: 144px;
  height: auto;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--focus);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro {
  max-width: 680px;
  margin: 0;
  color: #33363a;
  font-size: clamp(1rem, 2.1vw, 1.28rem);
  line-height: 1.55;
}

.search-panel {
  margin-top: 28px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(29, 45, 33, 0.08);
}

.search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #222;
  font-size: 0.9rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #bfc8c1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 1.06rem;
  outline: none;
}

input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(120, 190, 32, 0.18);
}

button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: #151515;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

button:hover,
button:focus-visible {
  background: #17693f;
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
}

.results {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.result-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(29, 45, 33, 0.06);
}

.result-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(90deg, rgba(120, 190, 32, 0.14), rgba(246, 223, 22, 0.16));
  border-bottom: 1px solid var(--line);
}

.label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.source {
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.details-grid > div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.details-grid > div:nth-child(3n),
.details-grid > .wide {
  border-right: 0;
}

.wide {
  grid-column: 1 / -1;
}

dt {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

dd {
  min-height: 22px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #181a1d;
  font-weight: 750;
  line-height: 1.45;
}

.empty-state {
  padding: 24px;
  background: var(--soft);
  border: 1px dashed #b8c2b6;
  border-radius: 8px;
  color: #3c413d;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 18px;
  }

  .hero {
    min-height: 220px;
    padding-top: 18px;
  }

  .brand-panel,
  .result-heading,
  .search-toolbar {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .logo {
    width: 126px;
  }

  .search-panel {
    padding: 16px;
  }

  button {
    width: 100%;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .details-grid > div {
    border-right: 0;
  }

  .source {
    max-width: none;
    align-self: flex-start;
  }
}
