:root {
  --webster-blue: #024890;
  --webster-blue-hover: #012f5e;
  --webster-gold: #f5b706;
  --link-blue: #0077cc;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --text: #1f2933;
  --muted: #5d6876;
  --border: #cfd8e3;
  --font-ui: Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-muted);
  color: var(--text);
  font-family: var(--font-ui);
}

.topbar {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  background: var(--webster-blue);
  color: white;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.year-form {
  display: flex;
  gap: 0.5rem;
  align-items: end;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

input,
button {
  min-height: 2.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font: inherit;
}

input {
  padding: 0 0.75rem;
}

button {
  padding: 0 0.9rem;
  border: 0;
  background: var(--webster-gold);
  color: #1f2933;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #d99f00;
}

.layout {
  display: grid;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.section-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--webster-blue);
}

.lookup {
  max-width: 42rem;
}

.lookup-row {
  display: flex;
  gap: 0.5rem;
}

.lookup-row input {
  flex: 1;
}

.lookup-results {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.lookup-results li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.status {
  min-height: 1.5rem;
  color: var(--muted);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--webster-gold);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .topbar,
  .section-header,
  .year-form,
  .lookup-row {
    align-items: stretch;
    flex-direction: column;
  }
}
