:root {
  --rw-bg: #06080c;
  --rw-panel: #10151d;
  --rw-panel-2: #171d27;
  --rw-border: #2c3542;
  --rw-text: #edf1f7;
  --rw-muted: #a8b2c2;
  --rw-tan: #9d9477;
  --rw-tan-2: #b2a88b;
  --rw-tan-dark: #7e775f;
  --rw-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

body {
  background:
    radial-gradient(circle at top center, rgba(157, 148, 119, 0.08) 0%, rgba(157, 148, 119, 0) 28%),
    linear-gradient(180deg, #04060a 0%, #07101a 100%);
}

.site-header {
  background: rgba(7, 10, 15, 0.94);
  border-bottom: 1px solid rgba(157, 148, 119, 0.18);
}

.header-inner {
  align-items: center;
}

.rw-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rw-brand-mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(157, 148, 119, 0.1));
}

.rw-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rw-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-tan);
}

.site-title {
  color: var(--rw-text);
}

.site-subtitle {
  color: var(--rw-muted);
}

.nav-link {
  border-color: rgba(157, 148, 119, 0.18);
  color: var(--rw-muted);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(157, 148, 119, 0.08);
  border-color: rgba(157, 148, 119, 0.4);
  color: var(--rw-text);
}

.nav-link.active {
  background: rgba(157, 148, 119, 0.14);
  border-color: rgba(157, 148, 119, 0.48);
  color: var(--rw-text);
}

.hero-card,
.info-panel,
.role-tile,
.quick-card,
.search-card,
.info-card,
.saved-item,
.kpi-card {
  border-color: rgba(157, 148, 119, 0.16);
  box-shadow: var(--rw-shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 22, 29, 0.98) 0%, rgba(17, 22, 29, 0.96) 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -20px;
  width: 280px;
  height: 280px;
  background: url("../assets/rw-logo.png") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}

.eyebrow,
.rw-kicker {
  color: var(--rw-tan);
}

.hero-title,
.section-header h3,
.info-panel h3,
.info-card h4,
.saved-item h4 {
  color: var(--rw-text);
}

.hero-text,
.meta-line,
.search-note,
.section-header p,
.role-tile p,
.quick-card p,
.info-card p,
.saved-item p,
.empty-state,
.footer-inner {
  color: var(--rw-muted);
}

.tile-tag,
.card-tag {
  background: rgba(157, 148, 119, 0.08);
  border-color: rgba(157, 148, 119, 0.24);
  color: var(--rw-tan-2);
}

.button-primary {
  background: var(--rw-tan);
  color: #0a0d12;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--rw-tan-2);
}

.button-secondary {
  border-color: rgba(157, 148, 119, 0.22);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(157, 148, 119, 0.08);
  border-color: rgba(157, 148, 119, 0.42);
}

.filter-chip {
  border-color: rgba(157, 148, 119, 0.22);
  color: var(--rw-muted);
}

.filter-chip.active {
  background: rgba(157, 148, 119, 0.12);
  border-color: rgba(157, 148, 119, 0.46);
  color: var(--rw-text);
}

.filter-chip[type="button"]:hover,
.filter-chip[role="button"]:hover {
  background: rgba(157, 148, 119, 0.08);
  border-color: rgba(157, 148, 119, 0.38);
}

.text-link {
  color: var(--rw-tan-2);
}

.text-link:hover,
.text-link:focus-visible {
  color: #d0c7a8;
}

.search-input,
.note-box,
.direction-select,
input,
select,
textarea {
  border-color: rgba(157, 148, 119, 0.16);
}

.search-input:focus,
.note-box:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(157, 148, 119, 0.36);
  border-color: rgba(157, 148, 119, 0.44);
}

.hero-sequence {
  color: var(--rw-tan-2);
}

.saved-direction {
  border-color: rgba(157, 148, 119, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.note-entry p {
  margin: 0;
  white-space: pre-wrap;
}

.inline-actions.wrap {
  flex-wrap: wrap;
}

.footer-inner {
  border-top-color: transparent;
}

@media (max-width: 920px) {
  .hero-card::after {
    width: 200px;
    height: 200px;
    right: -35px;
    top: 10px;
  }
}

@media (max-width: 640px) {
  .rw-brand {
    align-items: flex-start;
  }

  .rw-brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero-card::after {
    opacity: 0.04;
    width: 170px;
    height: 170px;
    right: -30px;
    top: 18px;
  }
}

.hero-copy .hero-actions {
  margin-top: 1rem;
}