/* sailboss cross-regatta hub */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #0a0c10; color: #e6ebf2;
             font: 14px/1.5 system-ui, -apple-system, "Inter", "Segoe UI", sans-serif;
             min-height: 100%; }
a { color: inherit; text-decoration: none; }

#hub-root { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.hh-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0 12px;
  border-bottom: 1px solid #1a2030;
  margin-bottom: 28px;
}
.hh-brand {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font: 700 22px/1 system-ui, -apple-system, sans-serif;
}
.hh-mark { font-size: 18px; }
.hh-title { color: #f1c40f; letter-spacing: -0.01em; }
.hh-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.hh-tab {
  padding: 6px 12px;
  border-radius: 6px;
  font: 13px/1.2 system-ui, -apple-system, sans-serif;
  color: #8b94a3;
  border: 1px solid transparent;
}
.hh-tab:hover { color: #cfd6df; background: #161c24; }
.hh-tab.active {
  color: #f1c40f;
  background: #2a2310;
  border-color: #f1c40f;
}

.hh-main { padding-bottom: 60px; }

.hh-eyebrow {
  font: 11px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f7886;
  margin-bottom: 16px;
}

/* ── Feed ────────────────────────────────────────────────────────────── */
.hh-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hh-card {
  background: linear-gradient(180deg, #161c24, #11161d);
  border: 1px solid #2c333d;
  border-radius: 10px;
  padding: 20px 22px;
}
.hh-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.hh-card-headline {
  font: 700 19px/1.3 system-ui, -apple-system, sans-serif;
  margin: 0 0 6px 0;
  color: #f5f7fb;
}
.hh-card-subhead {
  font: 13px/1.4 system-ui, -apple-system, sans-serif;
  color: #8b94a3;
  margin: 0 0 14px 0;
}
.hh-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hh-cta {
  padding: 7px 14px;
  border-radius: 5px;
  font: 600 13px/1.2 system-ui, -apple-system, sans-serif;
  border: 1px solid #2c333d;
  color: #cfd6df;
  background: #1f2630;
}
.hh-cta:hover { background: #2a323d; border-color: #f1c40f; color: #f1c40f; }
.hh-cta.primary {
  background: #f1c40f;
  color: #11161d;
  border-color: #f1c40f;
}
.hh-cta.primary:hover { background: #f5d041; color: #11161d; }

.hh-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: #1a2030;
  border: 1px solid #2c333d;
  color: #cfd6df;
  font: 11px/1.4 system-ui, -apple-system, sans-serif;
}
.hh-pill.featured,
.hh-pill.featured-tag {
  background: #2a2310;
  border-color: #f1c40f;
  color: #f1c40f;
}
.hh-card-date {
  color: #6f7886;
  font: 11px/1.4 ui-monospace, monospace;
  margin-left: auto;
}

/* ── Directory ───────────────────────────────────────────────────────── */
.hh-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hh-chip {
  padding: 5px 10px;
  border-radius: 4px;
  background: #161c24;
  border: 1px solid #2c333d;
  color: #8b94a3;
  font: 12px/1.2 system-ui, -apple-system, sans-serif;
}
.hh-chip:hover { color: #cfd6df; }
.hh-chip.active {
  background: #2a2310;
  border-color: #f1c40f;
  color: #f1c40f;
}

.hh-dir-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hh-dir-row {
  display: block;
  padding: 14px 16px;
  background: #161c24;
  border: 1px solid #2c333d;
  border-radius: 8px;
  transition: border-color 0.12s ease;
}
.hh-dir-row:hover { border-color: #f1c40f; }
.hh-dir-title {
  font: 600 15px/1.3 system-ui, -apple-system, sans-serif;
  color: #f5f7fb;
  margin-bottom: 4px;
}
.hh-dir-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font: 12px/1.4 system-ui, -apple-system, sans-serif;
  color: #8b94a3;
}
.hh-dir-date { font-family: ui-monospace, monospace; font-size: 11px; }

/* ── Search ──────────────────────────────────────────────────────────── */
.hh-search-form { margin-bottom: 20px; }
.hh-search-input {
  width: 100%;
  background: #11161d;
  border: 1px solid #2c333d;
  color: #e6ebf2;
  font: 15px/1.4 system-ui, -apple-system, sans-serif;
  padding: 12px 14px;
  border-radius: 8px;
  outline: none;
}
.hh-search-input:focus { border-color: #f1c40f; }

.hh-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hh-boat-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  padding: 10px 14px;
  background: #161c24;
  border: 1px solid #2c333d;
  border-radius: 6px;
  align-items: center;
}
.hh-boat-id { display: flex; gap: 12px; align-items: baseline; }
.hh-boat-sail { font: 700 14px/1.2 ui-monospace, monospace; color: #f1c40f; }
.hh-boat-name { font: 13px/1.2 system-ui, -apple-system, sans-serif; color: #cfd6df; }
.hh-boat-regattas { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-boat-regatta {
  font: 11px/1.4 system-ui, -apple-system, sans-serif;
  padding: 2px 8px;
  border-radius: 3px;
  background: #1f2630;
  border: 1px solid #2c333d;
  color: #cfd6df;
}
.hh-boat-regatta:hover { border-color: #f1c40f; color: #f1c40f; }

/* ── Empty states ────────────────────────────────────────────────────── */
.hh-empty,
.hh-empty-inline {
  color: #6f7886;
  font: 13px/1.5 system-ui, -apple-system, sans-serif;
  font-style: italic;
}
.hh-empty {
  padding: 24px;
  text-align: center;
  background: #11161d;
  border: 1px dashed #2c333d;
  border-radius: 8px;
}
.hh-empty code {
  font-family: ui-monospace, monospace;
  background: #1a2030;
  padding: 1px 5px;
  border-radius: 3px;
  color: #f1c40f;
  font-style: normal;
}

@media (max-width: 600px) {
  #hub-root { padding: 0 14px; }
  .hh-card { padding: 16px; }
  .hh-card-headline { font-size: 17px; }
  .hh-boat-row { grid-template-columns: 1fr; }
  .hh-nav { width: 100%; margin-left: 0; }
}
