:root {
  --ink: #17212b;
  --muted: #667085;
  --paper: #f7f4ed;
  --panel: rgba(255, 255, 255, 0.92);
  --line: rgba(23, 33, 43, 0.08);
  --accent: #c56a34;
  --accent-soft: #f3d9c9;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(197, 106, 52, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(80, 122, 104, 0.12), transparent 32%),
    linear-gradient(180deg, #f8f4ee 0%, #f1eee7 100%);
  min-height: 100vh;
}

h1, h2, h3, .brand-mark {
  font-family: "Fraunces", serif;
}

.brand-mark {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.glass-nav {
  background: rgba(247, 244, 237, 0.86);
  backdrop-filter: blur(12px);
}

.panel-card,
.hero-panel,
.metric-card,
.soft-card,
.insight-card,
.list-chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 18px 38px rgba(23, 33, 43, 0.06);
}

.hero-panel {
  padding: 2rem;
}

.metric-card,
.soft-card,
.insight-card {
  padding: 1rem 1.1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-card strong {
  font-size: 1.6rem;
  font-weight: 700;
}

.metric-card.compact strong {
  font-size: 1rem;
}

.metric-card span,
.soft-row span,
.timeline-meta,
.eyebrow {
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.soft-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.soft-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-feed {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  border-left: 2px solid var(--accent-soft);
  padding-left: 1rem;
}

.small-list {
  padding-left: 1rem;
  margin-bottom: 0;
}

.search-shell {
  min-width: min(100%, 360px);
}

.list-chip {
  display: block;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}

.list-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.small-link {
  color: var(--accent);
  text-decoration: none;
}

.summary-sidebar {
  top: 1rem;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.type-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 232, 0.95));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 18px 38px rgba(23, 33, 43, 0.06);
}

.finder-shell {
  background: linear-gradient(180deg, rgba(197, 106, 52, 0.08), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1rem;
}

.guidebook-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
  background: #17212b;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(23, 33, 43, 0.2);
}

.guide-entry .soft-card strong {
  display: block;
}

.bucket-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  font-size: 0.9rem;
  overflow: hidden;
}

.bucket-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.bucket-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.bucket-chip input:checked + span {
  background: rgba(197, 106, 52, 0.16);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(197, 106, 52, 0.26);
}

.bucket-chip:hover span {
  background: rgba(197, 106, 52, 0.08);
}

.bucket-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bucket-group-card {
  padding: 1rem 1.05rem;
}

.bucket-group-head p {
  line-height: 1.4;
}

.bucket-summary-stack {
  display: grid;
  gap: 0.75rem;
}

.compact-details summary {
  font-weight: 600;
}

@media (max-width: 767px) {
  main.container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .panel-card,
  .hero-panel,
  .metric-card,
  .soft-card,
  .insight-card,
  .list-chip,
  .type-card {
    border-radius: 1rem;
  }

  .panel-card,
  .hero-panel {
    padding: 1rem !important;
  }

  .btn {
    min-height: 44px;
  }

  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px;
  }

  textarea.form-control {
    min-height: 110px;
  }

  .bucket-group-grid {
    grid-template-columns: 1fr;
  }

  .navbar .btn.btn-sm {
    min-height: 38px;
  }

  .guidebook-fab {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.72rem 0.95rem;
  }
}

@media (max-width: 991px) {
  .summary-sidebar {
    position: static !important;
  }
}
