:root {
  --nexus-navy: #203755;
  --nexus-navy-deep: #182a41;
  --nexus-ink: #0f172a;
  --nexus-blue: #327ba5;
  --nexus-blue-hover: #285f82;
  --nexus-muted: #64748b;
  --nexus-border: #e2e8f0;
  --nexus-page-bg: #f8fafc;
  --nexus-ice: #f3f9fb;
  --nexus-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--nexus-font);
  color: var(--nexus-ink);
  background: var(--nexus-page-bg);
}

a {
  color: var(--nexus-blue);
  text-decoration: none;
}

a:hover {
  color: var(--nexus-blue-hover);
  text-decoration: underline;
}

.nexus-chrome {
  background: var(--nexus-navy);
  color: #e9f2f8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-chrome__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.25rem;
}

.nexus-brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.nexus-brand:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
}

.nexus-brand span {
  font-weight: 400;
  opacity: 0.75;
  margin-left: 0.35rem;
  font-size: 0.85rem;
}

.nexus-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.nexus-nav a {
  color: rgba(233, 242, 248, 0.85);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nexus-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.nexus-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nexus-status {
  font-size: 0.75rem;
  opacity: 0.7;
  white-space: nowrap;
}

.nexus-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.nexus-hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.nexus-hero p {
  margin: 0 0 1rem;
  color: var(--nexus-muted);
  max-width: 40rem;
  line-height: 1.55;
}

.nexus-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .nexus-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.nexus-card {
  background: #fff;
  border: 1px solid var(--nexus-border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nexus-card h2,
.nexus-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.nexus-card p {
  margin: 0 0 0.75rem;
  color: var(--nexus-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.nexus-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexus-card li + li {
  margin-top: 0.35rem;
}

.nexus-card li a {
  font-size: 0.92rem;
}

.nexus-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--nexus-ice);
  color: var(--nexus-navy);
  margin-bottom: 0.5rem;
}

.nexus-ask-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.nexus-ask-bar input {
  flex: 1;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--nexus-border);
  border-radius: 8px;
}

.nexus-ask-bar input:focus {
  outline: 2px solid var(--nexus-blue);
  outline-offset: 1px;
  border-color: var(--nexus-blue);
}

.nexus-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--nexus-blue);
  color: #fff;
  cursor: pointer;
}

.nexus-btn:hover {
  background: var(--nexus-blue-hover);
}

.nexus-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nexus-banner {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.nexus-banner--info {
  background: var(--nexus-ice);
  border: 1px solid #c5e3ef;
  color: var(--nexus-navy);
}

.nexus-banner--warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.nexus-hits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nexus-hit {
  padding: 0.85rem 1rem;
  border: 1px solid var(--nexus-border);
  border-radius: 8px;
  background: #fff;
}

.nexus-hit a {
  font-weight: 600;
}

.nexus-hit small {
  display: block;
  color: var(--nexus-muted);
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

.nexus-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.nexus-form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nexus-muted);
}

.nexus-form-row select,
.nexus-form-row input {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--nexus-border);
  border-radius: 6px;
  min-width: 10rem;
}

.nexus-discussion {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--nexus-border);
}

.nexus-discussion:last-child {
  border-bottom: none;
}

.nexus-discussion h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.nexus-discussion h4 a {
  color: var(--nexus-ink);
}

.nexus-discussion .meta {
  font-size: 0.8rem;
  color: var(--nexus-muted);
}

.nexus-labels {
  margin-top: 0.35rem;
}

.nexus-labels span {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  margin-right: 0.25rem;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--nexus-muted);
}

.nexus-empty {
  color: var(--nexus-muted);
  font-size: 0.92rem;
}

.nexus-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--nexus-muted);
  border-top: 1px solid var(--nexus-border);
}
