:root {
  --deep-horizon: #133354;
  --highcrest: #AE8F63;
  --border: #e5e7eb;
  --text: #1a1a1a;
  --muted: #666;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.site-header {
  background: var(--deep-horizon);
  color: #fff;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  height: 40px;
  width: auto;
  display: block;
}
.site-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
#search-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}
#search-input:focus {
  border-color: var(--deep-horizon);
}
#search-button {
  background: var(--deep-horizon);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}
#search-button:hover { background: #0f2a45; }

.status {
  color: var(--muted);
  padding: 12px 0;
  font-size: 0.95rem;
}

table.results {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
table.results th,
table.results td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.results th {
  font-weight: 600;
  color: var(--deep-horizon);
  background: #fafafa;
}
.col-download {
  width: 140px;
  text-align: right;
}
table.results td.col-download { text-align: right; }
table.results a.download-link {
  color: var(--highcrest);
  text-decoration: none;
  font-weight: 500;
}
table.results a.download-link:hover { text-decoration: underline; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.pagination button {
  background: #fff;
  color: var(--deep-horizon);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}
.pagination button:hover:not(:disabled) {
  border-color: var(--deep-horizon);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.counter {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .site-header h1 { font-size: 1.1rem; }
  .logo { height: 32px; }
  .col-download { width: 110px; }
  table.results th, table.results td { padding: 8px 8px; font-size: 0.95rem; }
}
