/* The frame the Crab Champions wiki, its build planner and the save editor
   share, so the three read as one system: the top row of every page (the
   breadcrumb and the switch between the three, Includes/CrabWiki.php's
   crab_suite_top) and the banner the start pages open with. */

/* The top row. */
.crab-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.crab-topbar .breadcrumb {
  margin: 0;
}

.crab-suite {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
}

.crab-suite-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.crab-suite-link i {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.crab-suite-link:hover {
  background: var(--surface-interactive);
  color: var(--color-text-primary);
}

.crab-suite-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.crab-suite-link.is-active {
  background: rgba(var(--ds-link-rgb), 0.14);
  color: var(--color-text-primary);
}

.crab-suite-link.is-active i {
  color: var(--color-accent-blue);
}

/* A start page's head: below the fixed site header, the top row and the banner. */
.crab-head {
  padding: 7.25rem 0 0;
}

.crab-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(var(--ds-link-rgb), 0.08), transparent 60%),
    var(--color-bg-card);
}

.crab-banner-copy {
  flex: 1 1 26rem;
  min-width: 0;
}

.crab-banner-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.crab-banner-title i {
  font-size: 0.85em;
}

.crab-banner-text {
  max-width: 42rem;
  margin: 0.6rem 0 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.crab-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.crab-banner-actions .btn {
  gap: 0.45rem;
}

@media (max-width: 575.98px) {
  .crab-suite {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .crab-suite-link {
    padding: 0.45rem 0.3rem;
    font-size: 0.78rem;
  }

  .crab-suite-link i {
    display: none;
  }

  .crab-banner-actions,
  .crab-banner-actions .btn {
    width: 100%;
  }

  .crab-banner-actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crab-suite-link {
    transition: none;
  }
}
